xrubywriter.h
1 /***************************************************************************
2  Copyright (C) 2002-2015 Kentaro Kitagawa
3  kitagawa@phys.s.u-tokyo.ac.jp
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  You should have received a copy of the GNU Library General
11  Public License and a list of authors along with this program;
12  see the files COPYING and AUTHORS.
13 ***************************************************************************/
14 #ifndef XRUBYWRITER_H_
15 #define XRUBYWRITER_H_
16 
17 #include "xnode.h"
18 
19 class XRubyWriter {
20 public:
21  XRubyWriter(const shared_ptr<XNode> &root, std::ofstream &ofs);
22  ~XRubyWriter();
23  void write();
24 private:
25  void write(const shared_ptr<XNode> &node,
26  const Snapshot &shot, bool ghost, int level);
27  shared_ptr<XNode> m_root;
28  std::ofstream &m_ofs;
29 };
30 
31 
32 #endif /*XRUBYWRITER_H_*/

Generated for KAME4 by  doxygen 1.8.3