/***************************************************************************
		Copyright (C) 2002-2015 Kentaro Kitagawa
		                   kitag@issp.u-tokyo.ac.jp
		
		This program is free software; you can redistribute it and/or
		modify it under the terms of the GNU Library General Public
		License as published by the Free Software Foundation; either
		version 2 of the License, or (at your option) any later version.
		
		You should have received a copy of the GNU Library General 
		Public License and a list of authors along with this program; 
		see the files COPYING and AUTHORS.
***************************************************************************/
#ifndef XRUBYWRITER_H_
#define XRUBYWRITER_H_

#include "xnode.h"

class XRubyWriter  {
public:
    XRubyWriter(const shared_ptr<XNode> &root, std::ofstream &ofs);
    ~XRubyWriter();
    void write();
private:
    void write(const shared_ptr<XNode> &node,
			   const Snapshot &shot, bool ghost, int level);
    shared_ptr<XNode> m_root;
    std::ofstream &m_ofs;    
};


#endif /*XRUBYWRITER_H_*/
