OTest2
A C++ testing framework
|
Generic interface of a repeater of a testing object (this repeater is not a part of the OTest2 API) More...
#include <objectrepeater.h>
Public Member Functions | |
ObjectRepeater () | |
Ctor. More... | |
virtual | ~ObjectRepeater () |
Dtor. More... | |
ObjectRepeater (const ObjectRepeater &)=delete | |
ObjectRepeater & | operator= (const ObjectRepeater &)=delete |
virtual bool | hasNextRun (const Context &context_) const =0 |
Check whether next run of the object is planned. More... | |
virtual void | modifyObjectPath (const Context &context_, ObjectPath &path_) const =0 |
Change current object path. More... | |
virtual ObjectScenarioPtr | createObject (const Context &context_, const std::string &name_, ObjectPtr parent_)=0 |
Create the testing object. More... | |
Generic interface of a repeater of a testing object (this repeater is not a part of the OTest2 API)
Definition at line 38 of file objectrepeater.h.
OTest2::ObjectRepeater::ObjectRepeater | ( | ) |
Ctor.
Definition at line 24 of file objectrepeater.cpp.
|
virtual |
Dtor.
Definition at line 28 of file objectrepeater.cpp.
|
delete |
|
pure virtual |
Create the testing object.
context_ | The OTest2 context |
name_ | Name of the object |
parent_ | Parent object of the created object |
Implemented in OTest2::ObjectRepeaterOnce, OTest2::ObjectRepeaterMultiNested< Parent_, Object_, Repeater_ >, and OTest2::ObjectRepeaterMultiRoot< Object_, Repeater_ >.
|
pure virtual |
Check whether next run of the object is planned.
context_ | The otest2 context |
Implemented in OTest2::ObjectRepeaterMultiNested< Parent_, Object_, Repeater_ >, OTest2::ObjectRepeaterOnce, and OTest2::ObjectRepeaterMultiRoot< Object_, Repeater_ >.
|
pure virtual |
Change current object path.
This method changes current object path to distinguish different runs of the testing object. Usually the some object's parameters are set.
[in] | context_ | The OTest2 context |
[in,out] | path_ | The modified object path |
Implemented in OTest2::ObjectRepeaterMultiNested< Parent_, Object_, Repeater_ >, OTest2::ObjectRepeaterMultiRoot< Object_, Repeater_ >, and OTest2::ObjectRepeaterOnce.
|
delete |