OTest2
A C++ testing framework
Public Member Functions | Static Public Member Functions | List of all members
OTest2::TestMarkIn Class Referenceabstract

A generic interface of a testmark deserializer. More...

#include <testmarkin.h>

Inheritance diagram for OTest2::TestMarkIn:
Inheritance graph
[legend]

Public Member Functions

 TestMarkIn ()
 Ctor. More...
 
virtual ~TestMarkIn ()
 Dtor. More...
 
 TestMarkIn (const TestMarkIn &)=delete
 
TestMarkInoperator= (const TestMarkIn &)=delete
 
virtual std::string readTypeMark ()=0
 Parse type mark following in the stream. More...
 
virtual std::int64_t readInt ()=0
 Parse integer following in the stream. More...
 
virtual long double readFloat ()=0
 Parse float following in the stream. More...
 
virtual std::string readString ()=0
 Parse string following in the stream. More...
 

Static Public Member Functions

static TestMarkPtr deserialize (TestMarkFactory &factory_, TestMarkIn &deserializer_)
 Deserialize a testmark. More...
 

Detailed Description

A generic interface of a testmark deserializer.

Definition at line 35 of file testmarkin.h.

Constructor & Destructor Documentation

◆ TestMarkIn() [1/2]

OTest2::TestMarkIn::TestMarkIn ( )

Ctor.

Definition at line 29 of file testmarkin.cpp.

◆ ~TestMarkIn()

OTest2::TestMarkIn::~TestMarkIn ( )
virtual

Dtor.

Definition at line 33 of file testmarkin.cpp.

◆ TestMarkIn() [2/2]

OTest2::TestMarkIn::TestMarkIn ( const TestMarkIn )
delete

Member Function Documentation

◆ deserialize()

TestMarkPtr OTest2::TestMarkIn::deserialize ( TestMarkFactory factory_,
TestMarkIn deserializer_ 
)
static

Deserialize a testmark.

Parameters
factory_A factory used for creating of new testmarks
deserializer_A deserializer object
Returns
Deserialized testmark
Exceptions
ExcTestMarkIn

Definition at line 37 of file testmarkin.cpp.

◆ operator=()

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

◆ readFloat()

virtual long double OTest2::TestMarkIn::readFloat ( )
pure virtual

Parse float following in the stream.

Returns
The float value
Exceptions
ExcTestMarkIn

Implemented in OTest2::TestMarkInBin.

◆ readInt()

virtual std::int64_t OTest2::TestMarkIn::readInt ( )
pure virtual

Parse integer following in the stream.

Returns
The integer
Exceptions
ExcTestMarkIn

Implemented in OTest2::TestMarkInBin.

◆ readString()

virtual std::string OTest2::TestMarkIn::readString ( )
pure virtual

Parse string following in the stream.

Returns
The string
Exceptions
ExcTestMarkIn

Implemented in OTest2::TestMarkInBin.

◆ readTypeMark()

virtual std::string OTest2::TestMarkIn::readTypeMark ( )
pure virtual

Parse type mark following in the stream.

Returns
The type mark
Exceptions
ExcTestMarkIn

Implemented in OTest2::TestMarkInBin.


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