AsciiWriter.hh

Go to the documentation of this file.
00001 
00007 #ifndef ASCII_WRITER_h
00008 #define ASCII_WRITER_h
00009 
00010 #include "ChannelModule.hh"
00011 #include <fstream>
00012 
00017 class AsciiWriter : public ChannelModule{
00018 public:
00019   AsciiWriter();
00020   ~AsciiWriter();
00021   
00022   int Initialize();
00023   int Finalize();
00024   int Process(ChannelData* chdata);
00025   
00026   static const std::string GetDefaultName(){ return "AsciiWriter"; }
00027   
00029   std::string GetDefaultFilename(){ return "out.txt"; }
00031   const std::string& GetFilename(){ return _filename; }
00033   void SetFilename(const std::string& s){ _filename = s; }
00034 private:
00035   std::ofstream _fout;     
00036   std::string _filename;   
00037   bool _wrote_header;      
00038 };
00039 
00040 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 20 Jun 2014 for daqman by  doxygen 1.6.1