winIDEA SDK
isys::CTestStackUsage Class Reference

Description

This class defines expected values for stack usage during test.

#include <CTestStackUsage.h>

Inheritance diagram for isys::CTestStackUsage:
isys::CTestBase

Public Types

enum  ETestStackUsageSections
 Ids of test specification sections.
 

Public Member Functions

 CTestStackUsage ()
 Default ctor.
 
 CTestStackUsage (const CTestBaseSPtr &parent)
 Initializes new instance. More...
 
bool isMerged () const
 Returns true, if the CTestSpecification section containing this object is merged. More...
 
std::string getMinUsedSize ()
 Returns min stack size - at least that amount of stack is expected to be used during test.
 
std::string getMaxUsedSize ()
 Returns max stack size - at most that amount of stack is expected to be used during test.
 
void setMinUsedSize (int minSize)
 Sets max stack size - at most that amount of stack is expected to be used during test.
 
void setMaxUsedSize (int maxSize)
 Sets min stack size - at least that amount of stack is expected to be used during test.
 
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 CTestStackUsageSPtr 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

◆ CTestStackUsage()

isys::CTestStackUsage::CTestStackUsage ( const CTestBaseSPtr parent)

Initializes new instance.

Parameters
parentan instance of parent CTestSpecification class.

Member Function Documentation

◆ cast()

static CTestStackUsageSPtr isys::CTestStackUsage::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::CTestStackUsage::isMerged ( ) const
virtual

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


Reimplemented from isys::CTestBase.