File: Writer.hpp

package info (click to toggle)
schroedinger-maeparser 1.3.3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 356 kB
  • sloc: cpp: 4,182; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (5)
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