This class stores result for stack usage. More...
#include <CTestResult.h>
Public Member Functions | |
| virtual void | assign (const CTestObjectSPtr &base) |
| Assigns members of base to this. | |
| bool | containsSection (int section) const |
| Returns true, if the specified section exists for this object. | |
| virtual CTestObjectSPtr | copy () const |
| Creates a deep copy of this object. | |
| CTestBaseSPtr | createInstance (const CTestBaseSPtr &parent) const |
| CStackUsageResult () | |
| CStackUsageResult (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| int | getApplicationUsage () |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| int | getMaxExpectedSize () |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| int | getSectionId (const std::string §ionName) |
| Returns section ID for the given section name. | |
| CTestBaseSPtr | getTestBase (int section, bool isConst) |
| CTestBaseListSPtr | getTestBaseList (int section, bool isConst) |
| int | getTestIDEAUsage () |
| CTestObject::ETestObjType | getTestObjType () const |
| Returns type of this object, which is CTestObject::ETestBase. | |
| int | getUsageBeforeTest () |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| bool | isError () |
| Returns true, if more stack usage was used than expected. | |
| bool | isSectionEmpty (int sectionId) |
| Returns true, if the given section is empty. | |
| virtual bool | isSerializedAsList (bool isParsing) |
| Returns true if object should be serialized as list, for example CTestFunction. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| virtual void | setComment (int section, int idx, const std::string &nlComment, const std::string &eolComment) |
| void | setEnumTagValue (int section, int enumValue) |
| Sets value of enum type. | |
| virtual void | setMainMapStyle (isys::IEmitter::EYamlStyle mappingStyle) |
| Sets style of the mapping for complete object. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| void | setValues (ADDRESS_64 minExpSize, ADDRESS_64 maxExpSize, ADDRESS_64 stackUsedBeforeTest, ADDRESS_64 testUsage, ADDRESS_64 appUsage) |
| Sets measured values of stack usage. | |
| 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. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class stores result for stack usage.
| isys::CStackUsageResult::CStackUsageResult | ( | ) |
| isys::CStackUsageResult::CStackUsageResult | ( | const CTestBaseSPtr & | parent | ) |
|
virtualinherited |
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
|
inherited |
Returns true, if the specified section exists for this object.
|
virtualinherited |
Creates a deep copy of this object.
Parent is set.
|
virtual |
Implements isys::CTestBase.
| int isys::CStackUsageResult::getApplicationUsage | ( | ) |
|
inherited |
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
|
inherited |
Returns value of enum type.
| int isys::CStackUsageResult::getMaxExpectedSize | ( | ) |
|
inherited |
Returns parent.
|
inherited |
Returns section ID for the given section name.
|
inherited |
|
inherited |
| int isys::CStackUsageResult::getTestIDEAUsage | ( | ) |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| int isys::CStackUsageResult::getUsageBeforeTest | ( | ) |
|
virtualinherited |
This method returns true, if the object contains no data.
| bool isys::CStackUsageResult::isError | ( | ) |
Returns true, if more stack usage was used than expected.
|
inherited |
Returns true, if the given section is empty.
|
virtualinherited |
Returns true if object should be serialized as list, for example CTestFunction.
Reimplemented in isys::CTestFunction.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
|
virtualinherited |
|
inherited |
Sets value of enum type.
|
virtualinherited |
Sets style of the mapping for complete object.
|
inherited |
Sets parent.
| 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.
| minExpSize | defines minimal expected stack size to be used, currently ignored |
| maxExpSize | defines maximal expected stack size to be used. |
| stackUsedBeforeTest | amount of stack used before test |
| testUsage | amount of stack used for test, for example if test script puts some data on stack before test. |
| appUsage | amount of stack used by code under test |
|
virtualinherited |
Returns object data as YAML string.