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

Generic parameters of a run of an testing object. More...

#include <parameters.h>

Classes

struct  Impl
 

Public Member Functions

 Parameters (const Parameters &)=delete
 
Parametersoperator= (const Parameters &)=delete
 
 Parameters ()
 Ctor - empty parameters. More...
 
 Parameters (Parameters &&other_) noexcept
 Move ctor. More...
 
 ~Parameters ()
 Dtor. More...
 
void swap (Parameters &other_) noexcept
 Swap contents. More...
 
Parametersoperator= (Parameters &&other_) noexcept
 Move assignment. More...
 
void appendParameter (const std::string &name_, const std::string &value_)
 Append new parameter. More...
 
std::string mixWithName (const std::string &name_) const
 Create one string mixed with a name of a testing object. More...
 

Detailed Description

Generic parameters of a run of an testing object.

Definition at line 30 of file parameters.h.

Constructor & Destructor Documentation

◆ Parameters() [1/3]

OTest2::Parameters::Parameters ( const Parameters )
delete

◆ Parameters() [2/3]

OTest2::Parameters::Parameters ( )

Ctor - empty parameters.

Definition at line 44 of file parameters.cpp.

◆ Parameters() [3/3]

OTest2::Parameters::Parameters ( Parameters &&  other_)
noexcept

Move ctor.

Definition at line 49 of file parameters.cpp.

◆ ~Parameters()

OTest2::Parameters::~Parameters ( )

Dtor.

Definition at line 55 of file parameters.cpp.

Member Function Documentation

◆ appendParameter()

void OTest2::Parameters::appendParameter ( const std::string &  name_,
const std::string &  value_ 
)

Append new parameter.

Parameters
name_Name of the parameter
value_Value

Definition at line 73 of file parameters.cpp.

◆ mixWithName()

std::string OTest2::Parameters::mixWithName ( const std::string &  name_) const

Create one string mixed with a name of a testing object.

This method creates one string containing name of the object and all parameters. Typically, the method is used in the reporters to print an identifier of the object's run.

Parameters
Nameof the testing object
Returns
Mixed string with parameters

Definition at line 80 of file parameters.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Parameters & OTest2::Parameters::operator= ( Parameters &&  other_)
noexcept

Move assignment.

Definition at line 64 of file parameters.cpp.

◆ swap()

void OTest2::Parameters::swap ( Parameters other_)
noexcept

Swap contents.

Definition at line 59 of file parameters.cpp.


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