LRAUV  revA
AllLogWriter.h
Go to the documentation of this file.
1 
10 #ifndef ALLLOGWRITER_H_
11 #define ALLLOGWRITER_H_
12 
13 #include "DecimationLogWriter.h"
14 
15 
21 {
22 public:
23 
25  AllLogWriter( LogWriter& outputTo );
26 
28  virtual ~AllLogWriter();
29 
31  virtual unsigned int writeHeader();
32 
34  virtual unsigned int write( const LogEntry* entry, const Unit* unit = NULL );
35 
37  virtual void endCycle();
38 
40  virtual unsigned int writeFooter();
41 
42 private:
43  // Note that the copy constructor below is private and not given a body.
44  // Any attempt to call it will return a compiler error.
45  AllLogWriter( const AllLogWriter& old ); // disallow copy constructor
46 
47 };
48 
49 #endif /*ALLLOGWRITER_H_*/
Contains the DecimationLogWriter class definition.
Base class for a generalized set of "log data destinations," including to files (text or binary)...
Definition: LogWriter.h:25
virtual void endCycle()
Do what needs to be done at the end of the cycle.
Definition: AllLogWriter.cpp:42
virtual unsigned int writeFooter()
Write the log footer, if any.
Definition: AllLogWriter.cpp:48
AllLogWriter(LogWriter &outputTo)
Constructor.
Definition: AllLogWriter.cpp:16
Base class for a generalized set of "log data destinations," including to files (text or binary)...
Definition: AllLogWriter.h:20
Base class for a generalized set of "log data destinations," including to files (text or binary)...
Definition: DecimationLogWriter.h:22
One "entry" in a LogQueue.
Definition: LogEntry.h:33
virtual unsigned int write(const LogEntry *entry, const Unit *unit=NULL)
Write the given LogEntry - should lock the writeMutex_.
Definition: AllLogWriter.cpp:34
virtual unsigned int writeHeader()
Write the log header, if any.
Definition: AllLogWriter.cpp:25
virtual ~AllLogWriter()
Destructor.
Definition: AllLogWriter.cpp:21
Code that represents an engineering unit.
Definition: Unit.h:24