This is a base class for all data objects in itest. More...
#include <CTestBase.h>
Public Member Functions | |
| virtual void | assign (const CTestObjectSPtr &base) |
| Assigns members of base to this. | |
| bool | containsSection (int section) const |
| Returns true, if the specified section exists for this object. | |
| virtual CTestObjectSPtr | copy () const |
| Creates a deep copy of this object. | |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| int | getSectionId (const std::string §ionName) |
| Returns section ID for the given section name. | |
| CTestBaseSPtr | getTestBase (int section, bool isConst) |
| CTestBaseListSPtr | getTestBaseList (int section, bool isConst) |
| CTestObject::ETestObjType | getTestObjType () const |
| Returns type of this object, which is CTestObject::ETestBase. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| bool | isSectionEmpty (int sectionId) |
| Returns true, if the given section is empty. | |
| virtual bool | isSerializedAsList (bool isParsing) |
| Returns true if object should be serialized as list, for example CTestFunction. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| virtual void | setComment (int section, int idx, const std::string &nlComment, const std::string &eolComment) |
| void | setEnumTagValue (int section, int enumValue) |
| Sets value of enum type. | |
| virtual void | setMainMapStyle (isys::IEmitter::EYamlStyle mappingStyle) |
| Sets style of the mapping for complete object. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
| virtual | ~CTestBase () |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This is a base class for all data objects in itest.
It may contain other objects of derived types, lists of derived types, scalars, mappings and lists.
|
virtual |
|
virtual |
| bool isys::CTestBase::containsSection | ( | int | section | ) | const |
Returns true, if the specified section exists for this object.
|
virtual |
Creates a deep copy of this object.
Parent is set.
| std::string isys::CTestBase::getClassName | ( | ) | const |
|
virtual |
virtual CTestSpecificationSPtr getContainerTestSpec();
| int isys::CTestBase::getEnumTagValue | ( | int | section | ) |
Returns value of enum type.
| CTestBaseSPtr isys::CTestBase::getParent | ( | ) | const |
Returns parent.
| int isys::CTestBase::getSectionId | ( | const std::string & | sectionName | ) |
Returns section ID for the given section name.
| CTestBaseSPtr isys::CTestBase::getTestBase | ( | int | section, |
| bool | isConst ) |
| CTestBaseListSPtr isys::CTestBase::getTestBaseList | ( | int | section, |
| bool | isConst ) |
| CTestObject::ETestObjType isys::CTestBase::getTestObjType | ( | ) | const |
Returns type of this object, which is CTestObject::ETestBase.
|
virtual |
This method returns true, if the object contains no data.
| bool isys::CTestBase::isSectionEmpty | ( | int | sectionId | ) |
Returns true, if the given section is empty.
|
virtual |
Returns true if object should be serialized as list, for example CTestFunction.
Reimplemented in isys::CTestFunction.
|
virtual |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
|
virtual |
| void isys::CTestBase::setEnumTagValue | ( | int | section, |
| int | enumValue ) |
Sets value of enum type.
|
virtual |
Sets style of the mapping for complete object.
| void isys::CTestBase::setParent | ( | CTestBaseSPtr | parent | ) |
Sets parent.
|
virtual |
Returns object data as YAML string.