OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval Class Reference

More...

#include <Interval.h>

Inheritance diagram for OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval:
Inheritance graph

Public Member Functions

 StringInterval ()
 Initializes a new instance of the StringInterval class. More...
 
 StringInterval (const std::string &regExp, 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...
 

Detailed Description

A StringInterval is an Interval and represents a set of strings described by a regular expression.

Constructor & Destructor Documentation

◆ StringInterval() [1/2]

OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval::StringInterval ( )

Initializes a new instance of the StringInterval class.

◆ StringInterval() [2/2]

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.

Parameters
regExpA regular expression
semanticThe semantics of how values inside the interval are interpreted
labelThe label to categorize the interval

Member Function Documentation

◆ GetRegExp()

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.

Returns
A regular expression

◆ ToLiteralString()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::StringInterval::ToLiteralString ( ) const
overridevirtual

Gets literal string.

Returns
Literal string.

Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.


The documentation for this class was generated from the following file: