LRAUV  revA
TextLogWriter.h
Go to the documentation of this file.
1 
10 #ifndef TEXTLOGWRITER_H_
11 #define TEXTLOGWRITER_H_
12 
13 #include "LogWriter.h"
14 
15 class OutStream;
16 
25 class TextLogWriter : public LogWriter
26 {
27 public:
33  TextLogWriter( bool withDirectory = false );
34 
40  TextLogWriter( OutStream &stream, bool withDirectory = false );
41 
43  virtual ~TextLogWriter();
44 
46  virtual unsigned int writeHeader();
47 
49  virtual unsigned int write( const LogEntry *entry, const Unit* unit = NULL );
50 
51 private:
52 
54 
55 };
56 
57 #endif /*TEXTLOGWRITER_H_*/
Base class for a generalized set of "log data destinations," including to files (text or binary)...
Definition: LogWriter.h:25
Contains the LogWriter class definition.
virtual ~TextLogWriter()
Destructor.
Definition: TextLogWriter.cpp:36
One "entry" in a LogQueue.
Definition: LogEntry.h:33
bool withDirectory_
Definition: TextLogWriter.h:53
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
virtual unsigned int write(const LogEntry *entry, const Unit *unit=NULL)
Write an entry to the text log.
Definition: TextLogWriter.cpp:57
virtual unsigned int writeHeader()
Start the text log.
Definition: TextLogWriter.cpp:40
TextLogWriter(bool withDirectory=false)
Default Constructor Assumes that the stream will be assigned later via setOutStream() ...
Definition: TextLogWriter.cpp:20
Code that represents an engineering unit.
Definition: Unit.h:24
Defines a simple LogWriter that takes LogEntries and serializes them as text values to a stream...
Definition: TextLogWriter.h:25