winIDEA SDK
isys::CTestPersistentVars Class Reference

Description

This section defines types and values of persistent variables.

These variables exist on target between tests and can be used to preserve values from one test to be used in anoter test. It is also possible to specify persistent variables to be deleted.

#include <CTestPersistentVars.h>

Inheritance diagram for isys::CTestPersistentVars:
isys::CTestBase

Public Types

enum  EPersistVarsSections
 Ids of test specification sections.
 

Public Member Functions

 CTestPersistentVars (const CTestBaseSPtr &parent)
 Initializes new instance. More...
 
bool isMerged () const
 Returns true, if the CTestSpecification section containing this object is merged. More...
 
virtual bool isEmpty () const
 This method returns true, if the object contains no data.
 
virtual void serialize (const isys::IEmitterSPtr &emitter)
 Sends contents of this class to emitter.
 
virtual std::string toString ()
 Returns object data as YAML string.
 

Static Public Member Functions

static CTestPersistentVarsSPtr cast (CTestBaseSPtr &testBase)
 Casts the given object to this class. More...
 

Protected Member Functions

void setStaticTagsAsConst ()
 This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ...
 

Constructor & Destructor Documentation

◆ CTestPersistentVars()

isys::CTestPersistentVars::CTestPersistentVars ( const CTestBaseSPtr parent)

Initializes new instance.

Parameters
parentan instance of parent CTestVariables class.

Member Function Documentation

◆ cast()

static CTestPersistentVarsSPtr isys::CTestPersistentVars::cast ( 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.

◆ isMerged()

bool isys::CTestPersistentVars::isMerged ( ) const
virtual

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


Reimplemented from isys::CTestBase.