#include <CTestTrace.h>
Public Types | |
| enum | EAnalyzerSectionId |
| Ids of test specification sections. | |
| enum | ERunMode { M_OFF , M_START , M_RESUME } |
| Trace modes. More... | |
Public Member Functions | |
| CTestTrace (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| std::string | getDocumentFileName () |
| Returns name of the document to contain trace results. | |
| std::string | getExportFileName () |
| Returns the export file name. | |
| std::string | getExportFormat () |
| Returns the export format type. | |
| std::string | getOpenMode () |
| Returns one of the open mode strings: "r", "w", or "a". | |
| ERunMode | getRunMode () |
| Returns run mode. | |
| std::string | getTriggerName () |
| Returns the name of the trigger to be used for trace start. | |
| 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 | isSaveAfterTest () |
| Returns true, if the document should be saved after test. | |
| 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. | |
| void | setDocumentFileName (const std::string &docFileName) |
| Sets the name of the trace document. | |
| void | setExportFileName (const std::string &exportFileName) |
| Sets the export file name. | |
| void | setExportFormat (const std::string &exportFormat) |
| Sets export format for the trace document. | |
| void | setOpenMode (const std::string &openMode) |
| Sets open mode for document. | |
| 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. | |
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 trace recording during test execution.
Trace modes.
| Enumerator | |
|---|---|
| M_OFF | trace will not be configured or started |
| M_START | start trace |
| M_RESUME | Deprecated: use open mode Resumes session, currently supported only for coverage. Method setRunMode(M_RESUME) throws an exception if called on trace or profiler document. |
| isys::CTestTrace::CTestTrace | ( | 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. |
| std::string isys::CTestTrace::getExportFormat | ( | ) |
Returns the export format type.
See CAnalyzerDocController for possible values.
| std::string isys::CTestTrace::getTriggerName | ( | ) |
Returns the name of the trigger to be used for trace start.
The trigger should be defined in winIDEA GUI.
| void isys::CTestTrace::setExportFormat | ( | const std::string & | exportFormat | ) |
Sets export format for the trace document.
See CAnalyzerDocController for possible values.
| void isys::CTestTrace::setOpenMode | ( | const std::string & | openMode | ) |
Sets open mode for document.
| openMode | can be one of:
|
| void isys::CTestTrace::setTriggerName | ( | const std::string & | triggerName | ) |
Sets name of the trigger to be used for trace start.
The trigger must be defined in winIDEA GUI.