winIDEA SDK
isys::CStackUsageResult Class Reference

Description

This class stores result for stack usage.

#include <CTestResult.h>

Inheritance diagram for isys::CStackUsageResult:
isys::CTestBase

Public Member Functions

 CStackUsageResult (const CTestBaseSPtr &parent)
 Initializes new instance. More...
 
bool isError ()
 Returns true, if more stack usage was used than expected.
 
void setValues (ADDRESS_64 minExpSize, ADDRESS_64 maxExpSize, ADDRESS_64 stackUsedBeforeTest, ADDRESS_64 testUsage, ADDRESS_64 appUsage)
 Sets measured values of stack usage. 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 CStackUsageResultSPtr 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, ...
 

Constructor & Destructor Documentation

◆ CStackUsageResult()

isys::CStackUsageResult::CStackUsageResult ( const CTestBaseSPtr parent)

Initializes new instance.

Parameters
parentan instance of parent CTestPoint class.

Member Function Documentation

◆ cast()

static CStackUsageResultSPtr isys::CStackUsageResult::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.

◆ setValues()

void isys::CStackUsageResult::setValues ( ADDRESS_64  minExpSize,
ADDRESS_64  maxExpSize,
ADDRESS_64  stackUsedBeforeTest,
ADDRESS_64  testUsage,
ADDRESS_64  appUsage 
)

Sets measured values of stack usage.

Parameters
minExpSizedefines minimal expected stack size to be used, currently ignored
maxExpSizedefines maximal expected stack size to be used.
stackUsedBeforeTestamount of stack used before test
testUsageamount of stack used for test, for example if test script puts some data on stack before test.
appUsageamount of stack used by code under test