TestToolBox::Protocol Class Reference

This class represents a textual log file. More...

#include <Protocol.h>

Inheritance diagram for TestToolBox::Protocol:
Inheritance graph
[legend]
Collaboration diagram for TestToolBox::Protocol:
Collaboration graph
[legend]

List of all members.

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)
TestStreamTS (void)
unsigned char AdjustOutputMode (OutputLevel::Enum in_outputLevel, unsigned char in_outputMode)

Private Attributes

std::fstream m_outF
std::fstream m_rptF
TestStreamm_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.

Detailed Description

This class represents a textual log file.

See also:
Protocol.h (File documentation)
Using Protocol (Usage documentation)

Member Function Documentation

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


The documentation for this class was generated from the following file:
Generated on Fri May 27 22:57:11 2011 for TestToolBox by  doxygen 1.6.3