00001 // 00002 // Pibero Djawotho <pibero@iucf.indiana.edu> 00003 // Indiana University 00004 // Feb 19, 2006 00005 // 00006 00007 #ifndef JanEventWriter_hh 00008 #define JanEventWriter_hh 00009 00010 // C++ STL 00011 #include <string> 00012 #include <fstream> 00013 00014 // Local 00015 class JanEvent; 00016 00017 class JanEventWriter { 00018 public: 00019 JanEventWriter(const string& filename = "/dev/stdout"); 00020 ~JanEventWriter(); 00021 00022 ostream& operator()(const JanEvent& event); 00023 00024 private: 00025 ofstream& out; 00026 }; 00027 00028 #endif
1.5.9