This class stores expected profiler results for one area. More...
#include <CTestProfilerStatistics.h>
Public Types | |
| enum | EProfilerStatisticsSectionId { } |
| Ids of test specification sections. More... | |
Public Member Functions | |
| virtual void | assign (const CTestObjectSPtr &base) |
| Assigns members of base to this. | |
| void | clearAreaValue () |
| Marks area value as not set. | |
| 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 |
| CTestBaseSPtr | createTestBase (int section, size_t lineNo) const |
| CTestProfilerStatistics () | |
| CTestProfilerStatistics (const CTestBaseSPtr &parent) | |
| std::string | getAreaName () |
| Returns area name. | |
| std::string | getAreaValue () |
| Returns area value. | |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| std::string | getHits (int idx) |
| Returns limit for hits. | |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| std::string | getQualifiedAreaName (const std::string &defaultDownloadFile) |
| Returns area name with default download file appended, if there is currently no download file specified in area name. | |
| std::string | getQualifiedAreaNameForStateVar (const std::string &defaultDownloadFile) |
| Returns area name with default download file appended, if there is currently no download file specified in area name. | |
| 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) |
| CTestObject::ETestObjType | getTestObjType () const |
| Returns type of this object, which is CTestObject::ETestBase. | |
| CTestProfilerTimeSPtr | getTime (EProfilerStatisticsSectionId sectionId, bool isConst) |
| Returns expected time interval for the given time scope. | |
| bool | isAreaValueNumber () |
| Returns true, if area value is set, and it is a number. | |
| bool | isAreaValueSet () |
| Returns true, if value is set, false otherwise. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| 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. | |
| void | setAreaName (const std::string &areaName) |
| Sets area name. | |
| void | setAreaValue (const std::string &value) |
| Sets area value. | |
| 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. | |
| void | setHits (const std::string &limits, int idx) |
| Sets hits number - how many times function was called or state variable changed. | |
| virtual void | setMainMapStyle (isys::IEmitter::EYamlStyle mappingStyle) |
| Sets style of the mapping for complete object. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
| ~CTestProfilerStatistics () | |
Static Public Member Functions | |
| static CTestProfilerStatisticsSPtr | 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 expected profiler results for one area.
| isys::CTestProfilerStatistics::CTestProfilerStatistics | ( | ) |
| isys::CTestProfilerStatistics::CTestProfilerStatistics | ( | const CTestBaseSPtr & | parent | ) |
| isys::CTestProfilerStatistics::~CTestProfilerStatistics | ( | ) |
|
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. |
| void isys::CTestProfilerStatistics::clearAreaValue | ( | ) |
Marks area value as not set.
If it is not set, statistics limits are used for all values not explicitly set in test specification. See YAML test spec, item value in profiler section for example.
|
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.
|
virtual |
Reimplemented from isys::CTestBase.
| std::string isys::CTestProfilerStatistics::getAreaName | ( | ) |
Returns area name.
| std::string isys::CTestProfilerStatistics::getAreaValue | ( | ) |
Returns area value.
|
inherited |
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
|
inherited |
Returns value of enum type.
| std::string isys::CTestProfilerStatistics::getHits | ( | int | idx | ) |
Returns limit for hits.
| idx | should be 0 for lower boundary, 1 for upper boundary |
|
inherited |
Returns parent.
| std::string isys::CTestProfilerStatistics::getQualifiedAreaName | ( | const std::string & | defaultDownloadFile | ) |
Returns area name with default download file appended, if there is currently no download file specified in area name.
| std::string isys::CTestProfilerStatistics::getQualifiedAreaNameForStateVar | ( | const std::string & | defaultDownloadFile | ) |
Returns area name with default download file appended, if there is currently no download file specified in area name.
For state variables '' and area value are appended, if defined.
|
inherited |
Returns section ID for the given section name.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| CTestProfilerTimeSPtr isys::CTestProfilerStatistics::getTime | ( | EProfilerStatisticsSectionId | sectionId, |
| bool | isConst ) |
Returns expected time interval for the given time scope.
| bool isys::CTestProfilerStatistics::isAreaValueNumber | ( | ) |
Returns true, if area value is set, and it is a number.
| bool isys::CTestProfilerStatistics::isAreaValueSet | ( | ) |
Returns true, if value is set, false otherwise.
Returns true after call to setAreaValue().
|
virtualinherited |
This method returns true, if the object contains no data.
|
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.
| void isys::CTestProfilerStatistics::setAreaName | ( | const std::string & | areaName | ) |
Sets area name.
| void isys::CTestProfilerStatistics::setAreaValue | ( | const std::string & | value | ) |
Sets area value.
|
virtualinherited |
|
inherited |
Sets value of enum type.
| void isys::CTestProfilerStatistics::setHits | ( | const std::string & | limits, |
| int | idx ) |
Sets hits number - how many times function was called or state variable changed.
|
virtualinherited |
Sets style of the mapping for complete object.
|
inherited |
Sets parent.
|
virtualinherited |
Returns object data as YAML string.