OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject Class Referenceabstract

A RangedObject is an otx:ComplexType and represents the abstract base data type for all ranged data types. More...

#include <RangedObject.h>

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

Public Member Functions

virtual bool IsInRange () const =0
 Checks if the value is in range. More...
 
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...
 
- Public Member Functions inherited from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object
virtual API_EXPORTS std::string ToLiteralString () const
 Gets literal string. More...
 

Detailed Description

A RangedObject is an otx:ComplexType and represents the abstract base data type for all ranged data types.

Member Function Documentation

◆ IsInRange()

virtual bool OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject::IsInRange ( ) const
pure virtual

Checks if the value is in range.

Returns
True if the value of the ranged object is inside one of the intervals or if the ranged object has no intervals.

Implemented in OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedString, OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedQuantity, OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedInteger, and OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedFloat.

◆ IsValueWritten()

virtual bool OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject::IsValueWritten ( ) const
virtual

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.

Returns
True if the value of the given ranged object was written at least once

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