FACT++  1.0
DataWriteRaw Class Reference

#include <DataWriteRaw.h>

+ Inheritance diagram for DataWriteRaw:
+ Collaboration diagram for DataWriteRaw:

Public Types

enum  {
  kEndOfFile = 0, kIdentifier = 1, kRunHeader, kBoardHeader,
  kRunSummary, kEvent
}
 
- Public Types inherited from MessageImp
enum  Severity {
  kMessage = 10, kInfo = 20, kWarn = 30, kError = 40,
  kAlarm = 45, kFatal = 50, kComment = 90, kDebug = 99
}
 Severity of a message. More...
 

Public Member Functions

 DataWriteRaw (const std::string &path, uint64_t night, uint32_t id, MessageImp &imp)
 
 ~DataWriteRaw ()
 
bool Open (const RUN_HEAD &h, const FAD::RunDescription &d)
 
bool WriteEvt (const EVT_CTRL2 &)
 
bool Close (const EVT_CTRL2 &)
 
bool Close ()
 
- Public Member Functions inherited from DataProcessorImp
 DataProcessorImp (const std::string &path, uint64_t night, uint32_t id, MessageImp &imp)
 
virtual ~DataProcessorImp ()
 
const std::string & GetFileName () const
 
std::string GetPath () const
 
uint32_t GetNight () const
 
uint32_t GetRunId () const
 
std::string FormFileName (const std::string &extension)
 
- Public Member Functions inherited from MessageImp
 MessageImp (std::ostream &out=std::cout)
 
virtual ~MessageImp ()
 
virtual void IndicateStateChange (const Time &, const std::string &)
 
void StateChanged (const Time &time, const std::string &server, const std::string &msg, int state)
 
int Update (const std::string &txt, int severity=kMessage)
 
int Update (const char *txt, int severity=kMessage)
 
int Update (const std::ostringstream &str, int severity=kMessage)
 
int Debug (const std::string &str)
 
int Message (const std::string &str)
 
int Info (const std::string &str)
 
int Warn (const std::string &str)
 
int Error (const std::string &str)
 
int Alarm (const std::string &str)
 
int Fatal (const std::string &str)
 
int Comment (const std::string &str)
 
int Debug (const char *txt)
 
int Message (const char *txt)
 
int Info (const char *txt)
 
int Warn (const char *txt)
 
int Error (const char *txt)
 
int Alarm (const char *txt)
 
int Fatal (const char *txt)
 
int Comment (const char *txt)
 
int Debug (const std::ostringstream &str)
 
int Message (const std::ostringstream &str)
 
int Info (const std::ostringstream &str)
 
int Warn (const std::ostringstream &str)
 
int Alarm (const std::ostringstream &str)
 
int Error (const std::ostringstream &str)
 
int Fatal (const std::ostringstream &str)
 
int Comment (const std::ostringstream &str)
 
std::ostream & operator() () const
 
std::ostream & Out () const
 
virtual bool MessageQueueEmpty () const
 

Private Member Functions

void WriteBlockHeader (uint32_t type, uint32_t ver, uint32_t cnt, uint32_t len)
 
template<typename T >
void WriteValue (const T &t)
 

Private Attributes

std::ofstream fOut
 
off_t fPosTail
 
uint32_t fCounter
 

Additional Inherited Members

- Static Public Member Functions inherited from DataProcessorImp
static std::string FormFileName (const std::string &path, uint64_t night, uint32_t runid, const std::string &extension)
 
- Protected Attributes inherited from DataProcessorImp
MessageImpfMsg
 
std::string fFileName
 

Detailed Description

Definition at line 6 of file DataWriteRaw.h.


The documentation for this class was generated from the following files: