xdotwriter.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 XDOTWRITER_H_
15 #define XDOTWRITER_H_
16 
17 #include "xnode.h"
18 
19 class XDotWriter {
20 public:
21  XDotWriter(const shared_ptr<XNode> &root, std::ofstream &ofs);
22  ~XDotWriter();
23  void write();
24 private:
25  void write(const shared_ptr<XNode> &node, const Snapshot &shot);
26  shared_ptr<XNode> m_root;
27  std::ofstream &m_ofs;
28  std::deque<shared_ptr<XNode> > m_nodes;
29  int m_unnamedcnt;
30 };
31 
32 
33 #endif /*XDOTWRITER_H_*/

Generated for KAME4 by  doxygen 1.8.3