winIDEA SDK
Loading...
Searching...
No Matches
isys::CTestAnalyzer Class Reference

This class contains specification for analyzer document. More...

#include <CTestAnalyzer.h>

Inheritance diagram for isys::CTestAnalyzer:
isys::CTestBase

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

 CTestAnalyzer (const CTestBaseSPtr &parent)
 Initializes new instance.
CTestAnalyzerCoverageSPtr getCoverage (bool isConst)
 Returns coverage configuration.
std::string getDocumentFileName ()
 Returns name of the document to contain trace results.
EOpenMode getOpenMode ()
 Returns open mode.
CTestAnalyzerProfilerSPtr getProfiler (bool isConst)
 Returns profiler configuration.
ERunMode getRunMode ()
 Returns run mode.
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.
bool isEmpty () const override
 This method returns true, if the object contains no data.
bool isMerged () const override
 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.
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 setOpenMode (EOpenMode openMode)
 Sets open mode for document.
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.
std::string toString () override
 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, ...

Detailed Description

This class contains specification for analyzer document.

 

Member Enumeration Documentation

◆ EOpenMode

Open modes for analyzer file.

Enumerator
EUpdate 

When document is opened, data is not erased.

The document must exist.

EWrite 

When document is opened, data is erased, configuration is kept.

If the doc. does not exist, it is created.

EAppend 

When document is opened, data is preserved, start will append new recording to existing data.

Currently available only for coverage, and only when profiler analysis is not performed.

◆ ERunMode

Run modes.

Enumerator
M_OFF 

analyzer will not be configured or started

M_START 

start analyzer

Constructor & Destructor Documentation

◆ CTestAnalyzer()

isys::CTestAnalyzer::CTestAnalyzer ( const CTestBaseSPtr & parent)

Initializes new instance.

Parameters
parentan instance of parent CTestSpecification class. Used only when parsing YAML declaration. Can be specified as NULL if the object is not initialized by parser.
Since
9.12.288

Member Function Documentation

◆ cast()

CTestAnalyzerSPtr isys::CTestAnalyzer::cast ( const CTestBaseSPtr & testBase)
static

Casts the given object to this class.

Returns NULL if input is NULL.

Exceptions
IllegalArgumentExceptionif input object is not instance of this class.

◆ getCoverage()

CTestAnalyzerCoverageSPtr isys::CTestAnalyzer::getCoverage ( bool isConst)

Returns coverage configuration.

Since
9.12.288

◆ getDocumentFileName()

std::string isys::CTestAnalyzer::getDocumentFileName ( )

Returns name of the document to contain trace results.

Since
9.12.288

◆ getOpenMode()

EOpenMode isys::CTestAnalyzer::getOpenMode ( )

Returns open mode.

Since
9.12.288

◆ getProfiler()

CTestAnalyzerProfilerSPtr isys::CTestAnalyzer::getProfiler ( bool isConst)

Returns profiler configuration.

Since
9.12.288

◆ getRunMode()

ERunMode isys::CTestAnalyzer::getRunMode ( )

Returns run mode.

Since
9.12.288

◆ getTrace()

CTestAnalyzerTraceSPtr isys::CTestAnalyzer::getTrace ( bool isConst)

Returns trace configuration.

Since
9.12.288

◆ getTriggerName()

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.

Since
9.12.288

◆ isCloseAfterTest()

iconnect::ETristate isys::CTestAnalyzer::isCloseAfterTest ( )

Returns true, if the document should be closed after test.

Since
9.12.288

◆ isEmpty()

bool isys::CTestBase::isEmpty ( ) const
overrideinherited

This method returns true, if the object contains no data.

Since
9.12.288

◆ isMerged()

bool isys::CTestAnalyzer::isMerged ( ) const
overridevirtual

Returns true, if the CTestSpecification section containing this object is merged.


Since
9.12.288

Reimplemented from isys::CTestBase.

◆ isPredefinedTrigger()

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.

Since
9.12.288

◆ isSaveAfterTest()

iconnect::ETristate isys::CTestAnalyzer::isSaveAfterTest ( )

Returns true, if the document should be saved after test.

Since
9.12.288

◆ isSlowRun()

iconnect::ETristate isys::CTestAnalyzer::isSlowRun ( )

Returns E_TRUE, if slow run should be used for analyzer.

Since
9.12.288

◆ serialize()

virtual void isys::CTestBase::serialize ( const isys::IEmitterSPtr & emitter)
virtualinherited

Sends contents of this class to emitter.

Since
9.12.288

Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.

◆ setCloseAfterTest()

void isys::CTestAnalyzer::setCloseAfterTest ( iconnect::ETristate isClose)

Sets close operation for trace document after test.

Since
9.12.288

◆ setDocumentFileName()

void isys::CTestAnalyzer::setDocumentFileName ( const std::string & docFileName)

Sets the name of the trace document.

Since
9.12.288

◆ setOpenMode()

void isys::CTestAnalyzer::setOpenMode ( EOpenMode openMode)

Sets open mode for document.

Since
9.12.288

◆ setPredefinedTrigger()

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.

Since
9.12.288

◆ setRunMode()

void isys::CTestAnalyzer::setRunMode ( ERunMode mode)

Sets run mode.

Since
9.12.288

◆ setSaveAfterTest()

void isys::CTestAnalyzer::setSaveAfterTest ( iconnect::ETristate isSave)

Sets save operation for trace document after test.

Since
9.12.288

◆ setSlowRun()

void isys::CTestAnalyzer::setSlowRun ( iconnect::ETristate isSlowRun)

If parameter is true, then slow run is used for analyzer.

Since
9.12.288

◆ setTriggerName()

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.

Since
9.12.288

◆ toString()

std::string isys::CTestBase::toString ( )
overrideinherited

Returns object data as YAML string.

Since
9.12.288