winIDEA SDK
isys::CTestEvalAssignStep Class Reference

Description

This class defines stub assignments for one stub call.

#include <CTestEvalAssignStep.h>

Inheritance diagram for isys::CTestEvalAssignStep:
isys::CTestBase

Public Types

enum  EStepSectionIds
 Ids of test specification sections. More...
 

Public Member Functions

std::string getStepIdx ()
 Returns index of the step to use on the next call. More...
 
void setStepIdx (int stepIdx)
 Sets step index. More...
 
CSequenceAdapter getExpectedExpressions (bool isConst)
 Returns expressions, which should evaluate to true.
 
CMapAdapter getAssignments (bool isConst)
 Returns assignments to variables, registers, ...
 
CSequenceAdapter getScriptParams (bool isConst)
 Returns parameters for script function.
 
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 CTestEvalAssignStepSPtr cast (const 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, ...
 

Member Enumeration Documentation

◆ EStepSectionIds

Ids of test specification sections.

The order of IDs determines the order of serialized tags.

Member Function Documentation

◆ cast()

static CTestEvalAssignStepSPtr isys::CTestEvalAssignStep::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.

◆ getStepIdx()

std::string isys::CTestEvalAssignStep::getStepIdx ( )

Returns index of the step to use on the next call.

Negative values are indices from the end. If empty string is returned, the next step should be executed in the next call, unless the current step is the last step - in this case the last step is executed.

◆ setStepIdx()

void isys::CTestEvalAssignStep::setStepIdx ( int  stepIdx)

Sets step index.

See also
getStepIdx