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

Storage of test marks. More...

#include <testmarkstorage.h>

Classes

struct  Impl
 

Public Member Functions

 TestMarkStorage (TestMarkFactory *factory_, const std::string &storage_file_)
 Ctor. More...
 
virtual ~TestMarkStorage ()
 Dtor. More...
 
 TestMarkStorage (const TestMarkStorage &)=delete
 
TestMarkStorageoperator= (const TestMarkStorage &)=delete
 
void setTestMark (const std::string &key_, TestMarkPtr test_mark_)
 Set new or reset old test mark. More...
 
TestMarkPtr getTestMark (const std::string &key_) const
 Get test mark. More...
 

Detailed Description

Storage of test marks.

Definition at line 34 of file testmarkstorage.h.

Constructor & Destructor Documentation

◆ TestMarkStorage() [1/2]

OTest2::TestMarkStorage::TestMarkStorage ( TestMarkFactory factory_,
const std::string &  storage_file_ 
)
explicit

Ctor.

Parameters
factory_A factory of storage marks. The ownership is not taken.
storage_file_Name of the storage file

Definition at line 188 of file testmarkstorage.cpp.

◆ ~TestMarkStorage()

OTest2::TestMarkStorage::~TestMarkStorage ( )
virtual

Dtor.

Definition at line 195 of file testmarkstorage.cpp.

◆ TestMarkStorage() [2/2]

OTest2::TestMarkStorage::TestMarkStorage ( const TestMarkStorage )
delete

Member Function Documentation

◆ getTestMark()

TestMarkPtr OTest2::TestMarkStorage::getTestMark ( const std::string &  key_) const

Get test mark.

Parameters
key_Key of the test mark
Returns
The test mark or null pointer if the key is not found.

Definition at line 208 of file testmarkstorage.cpp.

◆ operator=()

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

◆ setTestMark()

void OTest2::TestMarkStorage::setTestMark ( const std::string &  key_,
TestMarkPtr  test_mark_ 
)

Set new or reset old test mark.

Parameters
key_Key of the test mark
test_mark_The test mark

Definition at line 199 of file testmarkstorage.cpp.


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