FACT++  1.0
WindowLog::WindowLog ( )
inline

Default constructor which initializes the streamer and sets the device which is used for the output

Switch on backlog Switch on screen output

Definition at line 100 of file WindowLog.h.

100  : std::ostream(this), fPPtr(fBase), fEPtr(fBase+fgBufferSize), fWindow(0), fIsNull(false), fEnableBacklog(true),
101  fQueueFile(std::bind(&WindowLog::WriteFile, this, std::placeholders::_1))
102  {
103  //fLogFile.rdbuf()->pubsetbuf(0,0); // Switch off buffering
104  setp(&fBuffer, &fBuffer+1);
105  *this << '\0';
106  }
char fBuffer
Definition: WindowLog.h:58
Queue< std::string > fQueueFile
Mutex securing output to fWindow.
Definition: WindowLog.h:78
bool WriteFile(const std::string &)
Definition: WindowLog.cc:139
bool fEnableBacklog
Switch to toggle off physical output to the screen.
Definition: WindowLog.h:71
char * fPPtr
Buffer to store the data in.
Definition: WindowLog.h:60
static const int fgBufferSize
Definition: WindowLog.h:56
WINDOW * fWindow
Pointer to end of buffer.
Definition: WindowLog.h:63
const char * fEPtr
Pointer to present position in buffer.
Definition: WindowLog.h:61
bool fIsNull
Stream for redirection to a log-file.
Definition: WindowLog.h:70
char fBase[fgBufferSize+1]
Definition: WindowLog.h:59