This class stores expected profiler results for one time type (net, call, gross, ...). More...
#include <CTestProfilerStatistics.h>
Public Types | |
| enum | EProfilerTimeSectionId { E_SECTION_MIN_TIME , E_SECTION_MIN_START_TIME , E_SECTION_MIN_END_TIME , E_SECTION_MAX_TIME , E_SECTION_MAX_START_TIME , E_SECTION_MAX_END_TIME , E_SECTION_TOTAL_TIME , E_SECTION_AVERAGE_TIME } |
| Ids of test specification sections. More... | |
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 |
| CTestProfilerTime () | |
| CTestProfilerTime (const CTestBaseSPtr &parent) | |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| 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) |
| CTestObject::ETestObjType | getTestObjType () const |
| Returns type of this object, which is CTestObject::ETestBase. | |
| std::string | getTime (EProfilerTimeSectionId profilerStatSectionId, int idx) |
| Returns expected interval boundary for the given time type. | |
| 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. | |
| 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 | setTime (EProfilerTimeSectionId profilerStatSectionId, const std::string &time, int idx) |
| Sets time for the given section. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
| ~CTestProfilerTime () | |
Static Public Member Functions | |
| static double | a2d (const std::string &strNum) |
| Converts string to double. | |
| static CTestProfilerTimeSPtr | 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 time type (net, call, gross, ...).
Ids of test specification sections.
| isys::CTestProfilerTime::CTestProfilerTime | ( | ) |
| isys::CTestProfilerTime::CTestProfilerTime | ( | const CTestBaseSPtr & | parent | ) |
| isys::CTestProfilerTime::~CTestProfilerTime | ( | ) |
|
static |
Converts string to double.
| strNum | string number, which may contain underscores for better readability, and may have time unit appended: ns, us, ms, s. If there is no unit appended, ns is assumed. Underscore is not allowed as the first character. |
|
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.
|
inherited |
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
|
inherited |
Returns value of enum type.
|
inherited |
Returns parent.
|
inherited |
Returns section ID for the given section name.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| std::string isys::CTestProfilerTime::getTime | ( | EProfilerTimeSectionId | profilerStatSectionId, |
| int | idx ) |
Returns expected interval boundary for the given time type.
| profilerStatSectionId | ID of profiler time section. |
| idx | should be 0 for lower boundary, 1 for upper boundary |
|
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.
|
virtualinherited |
|
inherited |
Sets value of enum type.
|
virtualinherited |
Sets style of the mapping for complete object.
|
inherited |
Sets parent.
| void isys::CTestProfilerTime::setTime | ( | EProfilerTimeSectionId | profilerStatSectionId, |
| const std::string & | time, | ||
| int | idx ) |
Sets time for the given section.
|
virtualinherited |
Returns object data as YAML string.