1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#pragma once
#include <cstdio>
#include <memory>
#include <string>
#include "MaeParserConfig.hpp"
namespace schrodinger
{
namespace mae
{
class Block;
class EXPORT_MAEPARSER Writer
{
private:
std::shared_ptr<std::ostream> m_out = nullptr;
void write_opening_block();
public:
Writer() = delete;
explicit Writer(const std::string& fname);
Writer(std::shared_ptr<std::ostream> stream);
void write(const std::shared_ptr<Block>& block);
};
} // namespace mae
} // namespace schrodinger
|