OTX-Runtime for C++
|
|
#include <Interval.h>
Public Member Functions | |
StringInterval () | |
Initializes a new instance of the StringInterval class. More... | |
StringInterval (const std::string ®Exp, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="") | |
Initializes a new instance of the StringInterval class. More... | |
std::string | GetRegExp () const |
Gets a regular expression. If the regular expression is omitted, the interval includes all possible strings. In this case, all strings are considered to be inside the interval. More... | |
std::string | ToLiteralString () const override |
Gets literal string. More... | |
Public Member Functions inherited from OpenTestSystem::Otx::Runtime::Api::DataTypes::Interval | |
std::string | GetLabel () const |
Gets the optional label of the interval. If the label is omitted, the label is an empty String. More... | |
IntervalSemantics | GetSemantic () const |
Gets the semantics of how values inside the interval are interpreted. If the type is omitted, the semantic is NONE. More... | |
std::string | GetSemanticAsString () const |
Gets the optional semantics of the interval as a string. If the semantics is omitted, the semantics is "NONE". More... | |
A StringInterval is an Interval and represents a set of strings described by a regular expression.
OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval::StringInterval | ( | ) |
Initializes a new instance of the StringInterval class.
OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval::StringInterval | ( | const std::string & | regExp, |
IntervalSemantics | semantic = IntervalSemantics::None , |
||
const std::string & | label = "" |
||
) |
Initializes a new instance of the StringInterval class.
regExp | A regular expression |
semantic | The semantics of how values inside the interval are interpreted |
label | The label to categorize the interval |
std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval::GetRegExp | ( | ) | const |
Gets a regular expression. If the regular expression is omitted, the interval includes all possible strings. In this case, all strings are considered to be inside the interval.
|
overridevirtual |
Gets literal string.
Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.