This class defines target initialization steps to be performed before running tests. More...
#include <CTestEnvironmentConfig.h>
Public Types | |
| enum | EInitAction { EIAConnectToCore , EIADownload , EIAReset , EIARun , EIADeleteAllBreakpoints , EIACallTargetFunction , EIACallScriptFunction , EIALoadSymbolsOnly , EIAWaitUntilStopped } |
| This enum defines actions, which can be performed during target initialization before tests are run. More... | |
| enum | EInitSequenceSectionIds |
| Ids of test specification sections. | |
Public Member Functions | |
| virtual void | assign (const CTestObjectSPtr &base) |
| Assigns members of base to this. | |
| CInitSequenceAction (const CTestBaseSPtr &parent) | |
| 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. | |
| CTestBaseSPtr | createInstance (const CTestBaseSPtr &parent) const |
| Creates a new empty instance of this class. | |
| CInitSequenceAction::EInitAction | getAction () |
| Returns action to be performed. | |
| std::string | getActionName () |
| Returns action name as human readable string - may be used for logging and debugging. | |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| std::string | getCoreId () |
| Returns ID of the core where action should be performed. | |
| 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. | |
| void | setAction (CInitSequenceAction::EInitAction action) |
| virtual void | setComment (int section, int idx, const std::string &nlComment, const std::string &eolComment) |
| void | setCoreId (const std::string &coreId) |
| 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. | |
Static Public Member Functions | |
| static CInitSequenceActionSPtr | cast (const CTestBaseSPtr &testBase) |
| Casts the given object to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class defines target initialization steps to be performed before running tests.
It supports initialization of multiple cores.
This enum defines actions, which can be performed during target initialization before tests are run.
| isys::CInitSequenceAction::CInitSequenceAction | ( | const CTestBaseSPtr & | parent | ) |
|
virtualinherited |
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
|
inherited |
Returns true, if the specified section exists for this object.
|
virtualinherited |
Creates a deep copy of this object.
Parent is set.
|
virtual |
| CInitSequenceAction::EInitAction isys::CInitSequenceAction::getAction | ( | ) |
Returns action to be performed.
Use CSequenceAdapter to get parameters.
| std::string isys::CInitSequenceAction::getActionName | ( | ) |
Returns action name as human readable string - may be used for logging and debugging.
|
inherited |
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
| std::string isys::CInitSequenceAction::getCoreId | ( | ) |
Returns ID of the core where action should be performed.
|
inherited |
Returns value of enum type.
|
inherited |
Returns parent.
|
inherited |
Returns section ID for the given section name.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
|
virtualinherited |
This method returns true, if the object contains no data.
|
inherited |
Returns true, if the given section is empty.
|
virtualinherited |
Returns true if object should be serialized as list, for example CTestFunction.
Reimplemented in isys::CTestFunction.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
| void isys::CInitSequenceAction::setAction | ( | CInitSequenceAction::EInitAction | action | ) |
|
virtualinherited |
| void isys::CInitSequenceAction::setCoreId | ( | const std::string & | coreId | ) |
|
inherited |
Sets value of enum type.
|
virtualinherited |
Sets style of the mapping for complete object.
|
inherited |
Sets parent.
|
virtualinherited |
Returns object data as YAML string.