winIDEA SDK
|
This class stores expected profiler results for one area.
#include <CTestProfilerStatistics.h>
Public Types | |
enum | EProfilerStatisticsSectionId { } |
Ids of test specification sections. More... | |
Public Member Functions | |
std::string | getAreaName () |
Returns area name. | |
std::string | getAreaValue () |
Returns area value. | |
CTestProfilerTimeSPtr | getTime (EProfilerStatisticsSectionId sectionId, bool isConst) |
Returns expected time interval for the given time scope. | |
std::string | getHits (int idx) |
Returns limit for hits. More... | |
bool | isAreaValueSet () |
Returns true, if value is set, false otherwise. More... | |
bool | isAreaValueNumber () |
Returns true, if area value is set, and it is a number. | |
void | setAreaName (const std::string &areaName) |
Sets area name. | |
void | setAreaValue (const std::string &value) |
Sets area value. | |
void | clearAreaValue () |
Marks area value as not set. More... | |
void | setHits (const std::string &limits, int idx) |
Sets hits number - how many times function was called or state variable changed. | |
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. 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 CTestProfilerStatisticsSPtr | 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, ... | |
|
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.
std::string isys::CTestProfilerStatistics::getHits | ( | int | idx | ) |
Returns limit for hits.
idx | should be 0 for lower boundary, 1 for upper boundary |
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.
bool isys::CTestProfilerStatistics::isAreaValueSet | ( | ) |
Returns true, if value is set, false otherwise.
Returns true
after call to setAreaValue().