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

An ordinary case object scheduled by the CmdFirstState, CmdRunState and CmdState commands. More...

#include <caseordinary.h>

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

Public Member Functions

 CaseOrdinary (const CaseOrdinary &)=delete
 
CaseOrdinaryoperator= (const CaseOrdinary &)=delete
 
 CaseOrdinary (const Context &context_)
 Ctor. More...
 
virtual ~CaseOrdinary ()
 Dtor. More...
 
virtual StatePtr getFirstState () const =0
 Get the initial state. More...
 
virtual StatePtr getState (const std::string &name_) const =0
 Get state with specified name_. More...
 
- Public Member Functions inherited from OTest2::Case
 Case ()
 Ctor. More...
 
virtual ~Case ()
 Dtor. More...
 
 Case (const Case &)=delete
 
Caseoperator= (const Case &)=delete
 
- Public Member Functions inherited from OTest2::ObjectScenario
 ObjectScenario ()
 Dtor. More...
 
virtual ~ObjectScenario ()
 Dtor. More...
 
 ObjectScenario (const ObjectScenario &)=delete
 
ObjectScenariooperator= (const ObjectScenario &)=delete
 
virtual bool startUpObject (const Context &context_, int index_)=0
 Execute start-up function at specified index. More...
 
virtual void scheduleBody (const Context &context_, ScenarioPtr scenario_, ObjectPtr me_)=0
 Schedule body of the testing object. More...
 
virtual void tearDownObject (const Context &context_, int index_)=0
 Execute tear-down function at specified index. More...
 
- Public Member Functions inherited from OTest2::Object
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object ()
 Ctor. More...
 
virtual ~Object ()
 Dtor. More...
 
virtual std::string getName () const =0
 Get object's name. More...
 

Detailed Description

An ordinary case object scheduled by the CmdFirstState, CmdRunState and CmdState commands.

Definition at line 37 of file caseordinary.h.

Constructor & Destructor Documentation

◆ CaseOrdinary() [1/2]

OTest2::CaseOrdinary::CaseOrdinary ( const CaseOrdinary )
delete

◆ CaseOrdinary() [2/2]

OTest2::CaseOrdinary::CaseOrdinary ( const Context context_)
explicit

Ctor.

Parameters
context_The otest2 context

Definition at line 24 of file caseordinary.cpp.

◆ ~CaseOrdinary()

OTest2::CaseOrdinary::~CaseOrdinary ( )
virtual

Dtor.

Definition at line 29 of file caseordinary.cpp.

Member Function Documentation

◆ getFirstState()

virtual StatePtr OTest2::CaseOrdinary::getFirstState ( ) const
pure virtual

Get the initial state.

Returns
The state or nullptr if the case doesn't contain any one.

Implemented in OTest2::CaseGenerated.

◆ getState()

virtual StatePtr OTest2::CaseOrdinary::getState ( const std::string &  name_) const
pure virtual

Get state with specified name_.

Parameters
name_Name of the state
Returns
The state or null pointer

Implemented in OTest2::CaseGenerated.

◆ operator=()

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

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