All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
include/N3AnaBase/foo_io.h
00001 // -*- mode: c++; -*- 
00002 /* foo_io.h
00003  * Author(s):     Francois Mauger <mauger@lpccaen.in2p3.fr>
00004  * Creation date: 2008-10-30
00005  * Last modified: 2008-10-30
00006  * 
00007  * License: 
00008  * 
00009  * Description: 
00010  * 
00011  * History: 
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     //int * __oa;
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 } // end of namespace nemo3
00053 
00054 #endif // __N3AnaBase__foo_io_h
00055 
00056 // end of foo_io.h