00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #pragma once
00016
00017 namespace TestToolBox
00018 {
00019
00020 namespace OutputMode
00021 {
00022 const unsigned char M_NULL = 0x00;
00023 const unsigned char M_STDOUT = 0x01;
00024 const unsigned char M_OUTFILE = 0x02;
00025 const unsigned char M_RPTFILE = 0x04;
00026 const unsigned char M_ALL = M_STDOUT | M_OUTFILE | M_RPTFILE;
00027 };
00028
00029 struct IProtocol;
00030
00031
00032
00033
00034 struct IProtocol
00035 {
00036
00037
00038 virtual void Write(
00039 std::string const & in_text) = 0;
00040
00041
00042
00043 virtual void Writeln(
00044 std::string const & in_text = "") = 0;
00045
00046
00047
00048 virtual void Writeln(
00049 OutputLevel::Enum in_outputLevel,
00050 unsigned char in_outputMode,
00051 std::string const & in_text = "") = 0;
00052
00053
00054 virtual void WriteFooter(unsigned char in_outputMode = TestToolBox::OutputMode::M_ALL) = 0;
00055
00056
00057 virtual void SetMode (
00058 unsigned char in_newMode) = 0;
00059
00060
00061 virtual void ResetMode (void) = 0;
00062 };
00063
00064
00065 };
00066