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

Testmark deserializer based on a binary stream. More...

#include <testmarkinbin.h>

Inheritance diagram for OTest2::TestMarkInBin:
Inheritance graph
[legend]
Collaboration diagram for OTest2::TestMarkInBin:
Collaboration graph
[legend]

Public Member Functions

 TestMarkInBin ()
 Ctor. More...
 
virtual ~TestMarkInBin ()
 Dtor. More...
 
virtual std::string readTypeMark () override
 Parse type mark following in the stream. More...
 
virtual std::int64_t readInt () override
 Parse integer following in the stream. More...
 
virtual long double readFloat () override
 Parse float following in the stream. More...
 
virtual std::string readString () override
 Parse string following in the stream. More...
 
- Public Member Functions inherited from OTest2::TestMarkIn
 TestMarkIn ()
 Ctor. More...
 
virtual ~TestMarkIn ()
 Dtor. More...
 
 TestMarkIn (const TestMarkIn &)=delete
 
TestMarkInoperator= (const TestMarkIn &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from OTest2::TestMarkIn
static TestMarkPtr deserialize (TestMarkFactory &factory_, TestMarkIn &deserializer_)
 Deserialize a testmark. More...
 

Detailed Description

Testmark deserializer based on a binary stream.

Definition at line 35 of file testmarkinbin.h.

Constructor & Destructor Documentation

◆ TestMarkInBin()

OTest2::TestMarkInBin::TestMarkInBin ( )

Ctor.

Definition at line 35 of file testmarkinbin.cpp.

◆ ~TestMarkInBin()

OTest2::TestMarkInBin::~TestMarkInBin ( )
virtual

Dtor.

Definition at line 39 of file testmarkinbin.cpp.

Member Function Documentation

◆ readFloat()

long double OTest2::TestMarkInBin::readFloat ( )
overridevirtual

Parse float following in the stream.

Returns
The float value
Exceptions
ExcTestMarkIn

Implements OTest2::TestMarkIn.

Definition at line 92 of file testmarkinbin.cpp.

◆ readInt()

std::int64_t OTest2::TestMarkInBin::readInt ( )
overridevirtual

Parse integer following in the stream.

Returns
The integer
Exceptions
ExcTestMarkIn

Implements OTest2::TestMarkIn.

Definition at line 66 of file testmarkinbin.cpp.

◆ readString()

std::string OTest2::TestMarkInBin::readString ( )
overridevirtual

Parse string following in the stream.

Returns
The string
Exceptions
ExcTestMarkIn

Implements OTest2::TestMarkIn.

Definition at line 110 of file testmarkinbin.cpp.

◆ readTypeMark()

std::string OTest2::TestMarkInBin::readTypeMark ( )
overridevirtual

Parse type mark following in the stream.

Returns
The type mark
Exceptions
ExcTestMarkIn

Implements OTest2::TestMarkIn.

Definition at line 55 of file testmarkinbin.cpp.


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