OTX-Runtime for C++
|
|
A RangedString is a RangedObject and represents a String value which can have one or more intervals. More...
#include <RangedObject.h>
Public Member Functions | |
RangedString (const std::string &value, std::vector< std::shared_ptr< StringInterval >> interval) | |
Initializes a new instance of the RangedString class. More... | |
RangedString (const std::string &value, std::vector< std::shared_ptr< StringInterval >> interval, bool isValueWritten) | |
Initializes a new instance of the RangedString class. More... | |
std::vector< std::shared_ptr< StringInterval > > & | GetInterval () |
Gets List of StringIntervalLiteral of the RangedString. More... | |
std::string | GetValue () const |
Gets the String value of the RangedString. More... | |
bool | IsInRange () const override |
Checks if the value is in range. More... | |
std::string | ToLiteralString () const override |
Gets literal string. More... | |
Public Member Functions inherited from OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject | |
virtual bool | IsValueWritten () const |
A value is considered written if one of the set value actions is called. Overwriting with the same value as the current value counts as written. The initialization of the ranged object with a value does not count as written. More... | |
A RangedString is a RangedObject and represents a String value which can have one or more intervals.
OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedString::RangedString | ( | const std::string & | value, |
std::vector< std::shared_ptr< StringInterval >> | interval, | ||
bool | isValueWritten | ||
) |
Initializes a new instance of the RangedString class.
value | The value |
interval | The List of StringInterval |
isValueWritten | A value is considered written if one of the set value actions is called. Overwriting with the same value as the current value counts as written. The initialization of the ranged object with a value does not count as written. |
OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedString::RangedString | ( | const std::string & | value, |
std::vector< std::shared_ptr< StringInterval >> | interval | ||
) |
Initializes a new instance of the RangedString class.
value | The value |
interval | The List of StringInterval |
std::vector<std::shared_ptr<StringInterval> >& OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedString::GetInterval | ( | ) |
Gets List of StringIntervalLiteral of the RangedString.
std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedString::GetValue | ( | ) | const |
Gets the String value of the RangedString.
|
overridevirtual |
Checks if the value is in range.
Implements OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject.
|
overridevirtual |
Gets literal string.
Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.