LRAUV  revA
TextTableLogWriter.h
Go to the documentation of this file.
1 
11 #ifndef TEXTTABLELOGWRITER_H_
12 #define TEXTTABLELOGWRITER_H_
13 
14 #include "TableLogWriter.h"
15 
16 class OutStream;
17 
18 class ElementURI;
19 
31 {
32 public:
34  TextTableLogWriter( const char* separator, int varCount, char** varList, char** unitList, bool hideUnits = false, bool interpolate = false );
35 
37  virtual ~TextTableLogWriter();
38 
39  unsigned int writeHeader();
40 
41  unsigned int writeFooter();
42 
43 private:
44  // Note that the copy constructor below is private and not given a body.
45  // Any attempt to call it will return a compiler error.
46  TextTableLogWriter( const TextTableLogWriter& old ); // disallow copy constructor
47 
49  unsigned int writeRow();
50  unsigned int writeToColumn( const DataEntry *dataEntry, const int column );
51 
52  const char* separator_;
53  bool hideUnits_;
54 
56 
57  char buf_[ 80 ];
58 };
59 
60 #endif /*TEXTTABLELOGWRITER_H_*/
unsigned int writeHeader()
Write the log header, if any.
Definition: TextTableLogWriter.cpp:40
unsigned int writeRow()
Definition: TextTableLogWriter.cpp:69
Str * valueStrings_
Definition: TextTableLogWriter.h:55
unsigned int writeToColumn(const DataEntry *dataEntry, const int column)
Definition: TextTableLogWriter.cpp:88
unsigned int writeFooter()
Write the log footer, if any.
Definition: TextTableLogWriter.cpp:58
char buf_[80]
Definition: TextTableLogWriter.h:57
Code unit that represents an atomic unit of data destined for writing in the log file.
Definition: DataEntry.h:43
Defines a LogWriter that generates a text table of values.
Definition: TableLogWriter.h:31
Replacement for standard template class string.
Definition: Str.h:12
virtual ~TextTableLogWriter()
Destructor.
Definition: TextTableLogWriter.cpp:30
Defines a LogWriter that generates a text table of values.
Definition: TextTableLogWriter.h:30
Code unit that represents a unique name for a DataElement.
Definition: ElementURI.h:27
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
bool hideUnits_
Definition: TextTableLogWriter.h:53
TextTableLogWriter(const char *separator, int varCount, char **varList, char **unitList, bool hideUnits=false, bool interpolate=false)
Constructor.
Definition: TextTableLogWriter.cpp:15
const char * separator_
Definition: TextTableLogWriter.h:52
void initializeTextTableLogWriter()
Definition: TextTableLogWriter.cpp:35
Contains the TableLogWriter class definition.