tfel
Loading...
Searching...
No Matches
tfel::check::PCLogger Struct Reference

Public Types

using Driver = std::shared_ptr<PCILogDriver>
 a simple alias

Public Member Functions

 PCLogger ()
 default constructor
 PCLogger (const Driver &)
 PCLogger (PCLogger &&) noexcept
 move constructor
 PCLogger (const PCLogger &)
 copy constructor
PCLogger & operator= (PCLogger &&) noexcept
 move assignement
PCLogger & operator= (const PCLogger &)
 standard assignement
virtual ~PCLogger ()
 destructor
void addDriver (Driver logDriver)
 Add a driver (an output format) to PCLogger.
void addMessage (const std::string &message)
 add a log message to all log outputs
void reportSkippedTest (const std::string &)
 report that a test has been skipped
void addSimpleTestResult (const std::string &testname, const bool success, const std::string &message="")
 add a simple test result to all log outputs
void addTestResult (const std::string &testname, const std::string &step, const std::string &command, const float time, const bool success, const std::string &message="")
 add a test result to all log outputs
void terminate ()

Constructor & Destructor Documentation

◆ PCLogger()

tfel::check::PCLogger::PCLogger ( const Driver & )
explicit
Parameters
[in]logDriver

Member Function Documentation

◆ addDriver()

void tfel::check::PCLogger::addDriver ( Driver logDriver)

Add a driver (an output format) to PCLogger.

Parameters
logDrivera PCILogDriver object.
See also
PCILogDriver Exemple : PCLogger log; ... log.addDriver(new PCTextDriver())

◆ addMessage()

void tfel::check::PCLogger::addMessage ( const std::string & message)

add a log message to all log outputs

Parameters
messagea message to send to log.

◆ addSimpleTestResult()

void tfel::check::PCLogger::addSimpleTestResult ( const std::string & testname,
const bool success,
const std::string & message = "" )

add a simple test result to all log outputs

Parameters
testnamea string message explaining the test
successa bool test success
messagea string message explaining the test result

◆ addTestResult()

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

add a test result to all log outputs

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

◆ reportSkippedTest()

void tfel::check::PCLogger::reportSkippedTest ( const std::string & )

report that a test has been skipped

Parameters
[in]ddescription of the test

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