tfel
Loading...
Searching...
No Matches
tfel::check::PCTextDriver Struct Reference
Inheritance diagram for tfel::check::PCTextDriver:
tfel::check::PCILogDriver

Public Member Functions

 PCTextDriver ()
 default constructor
 PCTextDriver (const bool)
 default constructor
 PCTextDriver (std::ostream &, const bool=false)
 default constructor
 PCTextDriver (const std::string &, const bool=false)
 default constructor
void addMessage (const std::string &) override
 Append a message to log. Append a message to log (to be implemented by inherited class).
void reportSkippedTest (const std::string &) override
 report that a test has been skipped
void addTestResult (const std::string &, const std::string &, const std::string &, const float, bool, const std::string &="") override
 add a test result to log. Append a test result to log (to be implemented by inherited class).
 ~PCTextDriver () override
 destructor
Public Member Functions inherited from tfel::check::PCILogDriver
 PCILogDriver ()
 constructor
 PCILogDriver (std::ostream &)
 constructor
 PCILogDriver (const std::string &)
 constructor
 PCILogDriver (PCILogDriver &&) noexcept
 move constructor
 PCILogDriver (const PCILogDriver &)
 copy constructor
virtual void terminate ()
 terminate driver use.
virtual ~PCILogDriver ()
 destructor

Additional Inherited Members

Protected Member Functions inherited from tfel::check::PCILogDriver
std::ostream & getStream ()
 get current ostream

Constructor & Destructor Documentation

◆ PCTextDriver() [1/3]

tfel::check::PCTextDriver::PCTextDriver ( const bool )
explicit

default constructor

Parameters
[in]buse terminal colors

◆ PCTextDriver() [2/3]

tfel::check::PCTextDriver::PCTextDriver ( std::ostream & ,
const bool = false )
explicit

default constructor

Parameters
[in]osexternal stream
[in]buse terminal colors
Note
user is responsible of keeping the stream alive

◆ PCTextDriver() [3/3]

tfel::check::PCTextDriver::PCTextDriver ( const std::string & ,
const bool = false )
explicit

default constructor

Parameters
[in]foutput file
[in]buse terminal colors

Member Function Documentation

◆ addMessage()

void tfel::check::PCTextDriver::addMessage ( const std::string & )
overridevirtual

Append a message to log. Append a message to log (to be implemented by inherited class).

Parameters
[in]messagea message to send to log.

Implements tfel::check::PCILogDriver.

◆ addTestResult()

void tfel::check::PCTextDriver::addTestResult ( const std::string & testname,
const std::string & step,
const std::string & command,
const float time,
bool success,
const std::string & message = "" )
overridevirtual

add a test result to log. Append a test result to log (to be implemented by inherited class).

Parameters
testnamea string message explaining the test
stepa string describing the current step
commanda string describing the test command
timea float, test time execution
successa bool test success
messagea string message explaining the test result

Implements tfel::check::PCILogDriver.

◆ reportSkippedTest()

void tfel::check::PCTextDriver::reportSkippedTest ( const std::string & )
overridevirtual

report that a test has been skipped

Parameters
[in]ddescription of the test

Implements tfel::check::PCILogDriver.


The documentation for this struct was generated from the following file: