LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
TEST Class Reference

#include <tutil.h>

Public Member Functions

 TEST (const std::string &tname, std::ostream &stream=std::cout)
 
 ~TEST ()
 
void LOG (const std::string &msg)
 
template<class V1 , class V2 >
void operator() (const V1 &v1, const V2 &v2, const std::string name)
 
void FAILED (const std::string &msg)
 

Private Attributes

std::string _testname
 
std::ostream_out
 

Detailed Description

Definition at line 7 of file tutil.h.

Constructor & Destructor Documentation

TEST::TEST ( const std::string tname,
std::ostream stream = std::cout 
)
inline

Definition at line 11 of file tutil.h.

References _out, _testname, and std::endl().

TEST::~TEST ( )
inline

Definition at line 16 of file tutil.h.

References _out, _testname, and std::endl().

Member Function Documentation

void TEST::FAILED ( const std::string msg)
inline

Definition at line 42 of file tutil.h.

References _out, _testname, std::endl(), and std::stringstream::str().

Referenced by main(), and operator()().

void TEST::LOG ( const std::string msg)
inline

Definition at line 21 of file tutil.h.

References _out, _testname, and std::endl().

Referenced by main().

template<class V1 , class V2 >
void TEST::operator() ( const V1 &  v1,
const V2 &  v2,
const std::string  name 
)
inline

Definition at line 26 of file tutil.h.

References FAILED(), and std::stringstream::str().

Member Data Documentation

std::ostream& TEST::_out
private

Definition at line 62 of file tutil.h.

Referenced by FAILED(), LOG(), TEST(), and ~TEST().

std::string TEST::_testname
private

Definition at line 61 of file tutil.h.

Referenced by FAILED(), LOG(), TEST(), and ~TEST().


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