This class contains specification for analyzer document. More...
#include <CTestAnalyzer.h>
Public Types | |
| enum | EAnalyzerSectionId |
| Ids of test specification sections. | |
| enum | EOpenMode { EUpdate , EWrite , EAppend } |
| Open modes for analyzer file. More... | |
| enum | ERunMode { M_OFF , M_START } |
| Run modes. More... | |
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. | |
| virtual CTestBaseSPtr | createInstance (const CTestBaseSPtr &parent) const |
| CTestAnalyzer (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| CTestAnalyzerCoverageSPtr | getCoverage (bool isConst) |
| Returns coverage configuration. | |
| std::string | getDocumentFileName () |
| Returns name of the document to contain trace results. | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| EOpenMode | getOpenMode () |
| Returns open mode. | |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| CTestAnalyzerProfilerSPtr | getProfiler (bool isConst) |
| Returns profiler configuration. | |
| ERunMode | getRunMode () |
| Returns run mode. | |
| 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. | |
| CTestAnalyzerTraceSPtr | getTrace (bool isConst) |
| Returns trace configuration. | |
| std::string | getTriggerName () |
| Returns the name of the trigger to be used for trace start. | |
| iconnect::ETristate | isCloseAfterTest () |
| Returns true, if the document should be closed after test. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| virtual bool | isMerged () const |
| Returns true, if the CTestSpecification section containing this object is merged. | |
| iconnect::ETristate | isPredefinedTrigger () |
| Returns E_TRUE, if existing trigger from trd file should be used. | |
| iconnect::ETristate | isSaveAfterTest () |
| Returns true, if the document should be saved after test. | |
| 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. | |
| iconnect::ETristate | isSlowRun () |
| Returns E_TRUE, if slow run should be used for analyzer. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| void | setCloseAfterTest (iconnect::ETristate isClose) |
| Sets close operation for trace document after test. | |
| virtual void | setComment (int section, int idx, const std::string &nlComment, const std::string &eolComment) |
| void | setDocumentFileName (const std::string &docFileName) |
| Sets the name of the trace document. | |
| 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 | setOpenMode (EOpenMode openMode) |
| Sets open mode for document. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| void | setPredefinedTrigger (iconnect::ETristate isPredefinedTrigger) |
| If isPredefinedTrigger == E_TRUE, then analyzer trigger is not modified by testIDEA. | |
| void | setRunMode (ERunMode mode) |
| Sets run mode. | |
| void | setSaveAfterTest (iconnect::ETristate isSave) |
| Sets save operation for trace document after test. | |
| void | setSlowRun (iconnect::ETristate isSlowRun) |
If parameter is true, then slow run is used for analyzer. | |
| void | setTriggerName (const std::string &triggerName) |
| Sets name of the trigger to be used for trace start. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
Static Public Member Functions | |
| static CTestAnalyzerSPtr | 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 contains specification for analyzer document.
Open modes for analyzer file.
| isys::CTestAnalyzer::CTestAnalyzer | ( | const CTestBaseSPtr & | parent | ) |
Initializes new instance.
| parent | an instance of parent CTestSpecification class. Used only when parsing YAML declaration. Can be specified as NULL if the object is not initialized by parser. |
|
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 |
Implements isys::CTestBase.
|
inherited |
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
| CTestAnalyzerCoverageSPtr isys::CTestAnalyzer::getCoverage | ( | bool | isConst | ) |
Returns coverage configuration.
| std::string isys::CTestAnalyzer::getDocumentFileName | ( | ) |
Returns name of the document to contain trace results.
|
inherited |
Returns value of enum type.
| EOpenMode isys::CTestAnalyzer::getOpenMode | ( | ) |
Returns open mode.
|
inherited |
Returns parent.
| CTestAnalyzerProfilerSPtr isys::CTestAnalyzer::getProfiler | ( | bool | isConst | ) |
Returns profiler configuration.
| ERunMode isys::CTestAnalyzer::getRunMode | ( | ) |
Returns run mode.
|
inherited |
Returns section ID for the given section name.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| CTestAnalyzerTraceSPtr isys::CTestAnalyzer::getTrace | ( | bool | isConst | ) |
Returns trace configuration.
| std::string isys::CTestAnalyzer::getTriggerName | ( | ) |
Returns the name of the trigger to be used for trace start.
The trigger should be defined in winIDEA GUI.
| iconnect::ETristate isys::CTestAnalyzer::isCloseAfterTest | ( | ) |
Returns true, if the document should be closed after test.
|
virtualinherited |
This method returns true, if the object contains no data.
|
virtual |
Returns true, if the CTestSpecification section containing this object is merged.
Reimplemented from isys::CTestBase.
| iconnect::ETristate isys::CTestAnalyzer::isPredefinedTrigger | ( | ) |
Returns E_TRUE, if existing trigger from trd file should be used.
testIDEA does not modify trigger settings in such case.
| iconnect::ETristate isys::CTestAnalyzer::isSaveAfterTest | ( | ) |
Returns true, if the document should be saved after test.
|
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.
| iconnect::ETristate isys::CTestAnalyzer::isSlowRun | ( | ) |
Returns E_TRUE, if slow run should be used for analyzer.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
| void isys::CTestAnalyzer::setCloseAfterTest | ( | iconnect::ETristate | isClose | ) |
Sets close operation for trace document after test.
|
virtualinherited |
| void isys::CTestAnalyzer::setDocumentFileName | ( | const std::string & | docFileName | ) |
Sets the name of the trace document.
|
inherited |
Sets value of enum type.
|
virtualinherited |
Sets style of the mapping for complete object.
| void isys::CTestAnalyzer::setOpenMode | ( | EOpenMode | openMode | ) |
Sets open mode for document.
|
inherited |
Sets parent.
| void isys::CTestAnalyzer::setPredefinedTrigger | ( | iconnect::ETristate | isPredefinedTrigger | ) |
If isPredefinedTrigger == E_TRUE, then analyzer trigger is not modified by testIDEA.
User has to define it in trd file in advance.
| void isys::CTestAnalyzer::setRunMode | ( | ERunMode | mode | ) |
Sets run mode.
| void isys::CTestAnalyzer::setSaveAfterTest | ( | iconnect::ETristate | isSave | ) |
Sets save operation for trace document after test.
| void isys::CTestAnalyzer::setSlowRun | ( | iconnect::ETristate | isSlowRun | ) |
If parameter is true, then slow run is used for analyzer.
| void isys::CTestAnalyzer::setTriggerName | ( | const std::string & | triggerName | ) |
Sets name of the trigger to be used for trace start.
The trigger must be defined in winIDEA GUI.
|
virtualinherited |
Returns object data as YAML string.