00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __N3AnaBase__foo_io_h
00016 #define __N3AnaBase__foo_io_h 1
00017
00018 #include <iostream>
00019 #include <fstream>
00020
00021 #include <boost/archive/text_oarchive.hpp>
00022
00023 #include <N3AnaBase/foo.h>
00024 #include <N3AnaBase/event/ana_event.h>
00025
00026 namespace nemo3 {
00027
00028 class foo_io
00029 {
00030 private:
00031
00032 std::ofstream * __ofs;
00033
00034 boost::archive::text_oarchive * __oa;
00035
00036 public:
00037
00038 foo_io ();
00039
00040 virtual ~foo_io ();
00041
00042 void open_writer (const std::string & filename_);
00043
00044 void close_writer ();
00045
00046 void store (const foo &);
00047
00048 void store_event (const ana_event &);
00049
00050 };
00051
00052 }
00053
00054 #endif // __N3AnaBase__foo_io_h
00055
00056