--- trunk/src/io/DumpWriter.hpp 2005/02/24 20:55:07 376 +++ trunk/src/io/DumpWriter.hpp 2005/09/20 21:22:38 615 @@ -1,4 +1,4 @@ - /* +/* * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. * * The University of Notre Dame grants you ("Licensee") a @@ -63,30 +63,33 @@ namespace oopse { namespace oopse { -/** - * @class DumpWriter DumpWriter.hpp "io/DumpWriter.hpp" - * @todo - */ -class DumpWriter{ + /** + * @class DumpWriter DumpWriter.hpp "io/DumpWriter.hpp" + * @todo + */ + class DumpWriter{ - public: - DumpWriter(SimInfo* info); - DumpWriter(SimInfo* info, const std::string& filename); - ~DumpWriter(); + public: + DumpWriter(SimInfo* info); + DumpWriter(SimInfo* info, const std::string& filename); + ~DumpWriter(); - void writeDumpAndEor(); - void writeDump(); - void writeEor(); + void writeDumpAndEor(); + void writeDump(); + void writeEor(); - private: + private: - void writeFrame(std::ostream& os); - void writeCommentLine(std::ostream& os, Snapshot* s); - SimInfo* info_; - std::string filename_; - std::ofstream dumpFile_; - std::string eorFilename_; -}; + void writeFrame(std::ostream& os); + void writeCommentLine(std::ostream& os, Snapshot* s); + std::ostream* createOStream(const std::string& filename); + + SimInfo* info_; + std::string filename_; + std::ostream* dumpFile_; + std::string eorFilename_; + bool needCompression_; + }; } #endif //#define IO_DUMPWRITER_HPP