CPUnit 0.95 (beta)
The REAL C++ port of JUnit.
cpunit::ErrorReportFormat Class Reference

#include <cpunit_ErrorReportFormat.hpp>

List of all members.

Public Member Functions

 ErrorReportFormat ()
 ErrorReportFormat (const std::string &format)
 ErrorReportFormat (const ErrorReportFormat &o)
 ~ErrorReportFormat ()
ErrorReportFormatoperator= (const ErrorReportFormat &o)
std::string format (const ExecutionReport &r) const

Private Types

enum  Fragment {
  PATH, TEST_NAME, TEST_TIME, FILE,
  LINE, MESSAGE, ERROR_TYPE, NEWLINE,
  TABULATOR
}

Private Member Functions

void parse (const std::string &)
void handle_fragment_identifier (const char)
std::string format (const ExecutionReport &r, const Fragment f) const

Private Attributes

std::vector< std::string > msg_parts
std::vector< Fragmentfragments

Detailed Description

Definition at line 41 of file cpunit_ErrorReportFormat.hpp.


Member Enumeration Documentation

Enumerator:
PATH 
TEST_NAME 
TEST_TIME 
FILE 
LINE 
MESSAGE 
ERROR_TYPE 
NEWLINE 
TABULATOR 

Definition at line 42 of file cpunit_ErrorReportFormat.hpp.


Constructor & Destructor Documentation

cpunit::ErrorReportFormat::ErrorReportFormat ( )

Definition at line 39 of file cpunit_ErrorReportFormat.cpp.

cpunit::ErrorReportFormat::ErrorReportFormat ( const std::string &  format)

Definition at line 42 of file cpunit_ErrorReportFormat.cpp.

cpunit::ErrorReportFormat::ErrorReportFormat ( const ErrorReportFormat o)

Definition at line 46 of file cpunit_ErrorReportFormat.cpp.

cpunit::ErrorReportFormat::~ErrorReportFormat ( )

Definition at line 51 of file cpunit_ErrorReportFormat.cpp.


Member Function Documentation

std::string cpunit::ErrorReportFormat::format ( const ExecutionReport r,
const Fragment  f 
) const [private]

Definition at line 74 of file cpunit_ErrorReportFormat.cpp.

std::string cpunit::ErrorReportFormat::format ( const ExecutionReport r) const

Definition at line 64 of file cpunit_ErrorReportFormat.cpp.

void cpunit::ErrorReportFormat::handle_fragment_identifier ( const char  c) [private]

Definition at line 121 of file cpunit_ErrorReportFormat.cpp.

cpunit::ErrorReportFormat & cpunit::ErrorReportFormat::operator= ( const ErrorReportFormat o)

Definition at line 55 of file cpunit_ErrorReportFormat.cpp.

void cpunit::ErrorReportFormat::parse ( const std::string &  format) [private]

Definition at line 100 of file cpunit_ErrorReportFormat.cpp.


Member Data Documentation

Definition at line 56 of file cpunit_ErrorReportFormat.hpp.

std::vector<std::string> cpunit::ErrorReportFormat::msg_parts [private]

Definition at line 55 of file cpunit_ErrorReportFormat.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines