OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::TestMarkFactory Class Reference

A factory of testmark objects used for deserialization. More...

#include <testmarkfactory.h>

Classes

struct  Impl
 

Public Member Functions

 TestMarkFactory (const TestMarkFactory &)=delete
 
TestMarkFactoryoperator= (const TestMarkFactory &)=delete
 
 TestMarkFactory ()
 Ctor. More...
 
 ~TestMarkFactory ()
 Dtor. More...
 
TestMarkPtr createMark (const std::string &typemark_)
 Create new empty testmark. More...
 
template<typename Mark_ >
void registerMark ()
 Register a testmark type. More...
 

Detailed Description

A factory of testmark objects used for deserialization.

Definition at line 45 of file testmarkfactory.h.

Constructor & Destructor Documentation

◆ TestMarkFactory() [1/2]

OTest2::TestMarkFactory::TestMarkFactory ( const TestMarkFactory )
delete

◆ TestMarkFactory() [2/2]

OTest2::TestMarkFactory::TestMarkFactory ( )

Ctor.

The constructor automatically registers the standard testmark classes

Definition at line 65 of file testmarkfactory.cpp.

◆ ~TestMarkFactory()

OTest2::TestMarkFactory::~TestMarkFactory ( )

Dtor.

Definition at line 78 of file testmarkfactory.cpp.

Member Function Documentation

◆ createMark()

TestMarkPtr OTest2::TestMarkFactory::createMark ( const std::string &  typemark_)

Create new empty testmark.

Parameters
typemark_Type identifier of the testmark
Returns
The testmark
Exceptions
ExcTestMarkIn

Definition at line 82 of file testmarkfactory.cpp.

◆ operator=()

TestMarkFactory& OTest2::TestMarkFactory::operator= ( const TestMarkFactory )
delete

◆ registerMark()

template<typename Mark_ >
void OTest2::TestMarkFactory::registerMark ( )
inline

Register a testmark type.

Template Parameters
Mark_The type of the registered testmark

Definition at line 89 of file testmarkfactory.h.


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