This class represents a textual log file. More...
#include <Protocol.h>
Public Member Functions | |
void | SetStreamActivation (unsigned char in_streamsToActivate) |
void | SwitchLogfiles (std::string const &in_postFixNewFileName, std::string const &in_msgClose, std::string const &in_msgOpen) |
Private Member Functions | |
void | WriteHeader (void) |
TestStream & | TS (void) |
unsigned char | AdjustOutputMode (OutputLevel::Enum in_outputLevel, unsigned char in_outputMode) |
Private Attributes | |
std::fstream | m_outF |
std::fstream | m_rptF |
TestStream * | m_pTestStream |
Test output stream which can write to several selected streams. | |
bool | m_footerAlreadyWritten |
OutputLevel::Enum | m_activeOutputLevelForStdOut |
Interface IProtocol | |
| |
virtual void | Write (std::string const &in_text) |
Write arbitrary text (with or without newline chars) to protocol file. | |
virtual void | Writeln (std::string const &in_text) |
Write arbitrary text (preferable without newline chars) to protocol file. | |
virtual void | Write (OutputLevel::Enum in_outputLevel, unsigned char in_outputMode, std::string const &in_text) |
Write arbitrary text (with or without newline chars) to protocol file. | |
virtual void | Writeln (OutputLevel::Enum in_outputLevel, unsigned char in_outputMode, std::string const &in_text) |
Write arbitrary text (preferable without newline chars) to protocol file. | |
virtual void | WriteFooter (unsigned char m=TestToolBox::OutputMode::M_ALL) |
Write footer info to test protocol. | |
void | SetMode (unsigned char in_newMode) |
Select output devices. | |
void | ResetMode (void) |
Redirect output to all existing devices. | |
void | SetOutputLevelForStdOut (OutputLevel::Enum in_outputLevel) |
Select output devices. |
This class represents a textual log file.
void TestToolBox::Protocol::SetStreamActivation | ( | unsigned char | in_streamsToActivate | ) |
Completely activate the streams via bit mask Streams not contained within bitmask will be switched off completely