openDAQ
Open data acquisition platform
INumber Struct Referenceabstract

Represents either a float or an int number. More...

+ Inheritance diagram for INumber:
+ Collaboration diagram for INumber:

Detailed Description

Represents either a float or an int number.

Number is used if data type of the number is not strictly defined, i.e. it can accept a float or an int.

Public Member Functions

virtual ErrCode INTERFACE_FUNC getFloatValue (Float *value)=0
 Gets a value stored in the object as a floating point value. More...
 
virtual ErrCode INTERFACE_FUNC getIntValue (Int *value)=0
 Gets a value stored in the object as an integer value. More...
 
- Public Member Functions inherited from IBaseObject
virtual ErrCode INTERFACE_FUNC borrowInterface (const IntfID &intfID, void **obj) const =0
 Returns another interface which is supported by the object without incrementing the reference count. More...
 
virtual ErrCode INTERFACE_FUNC dispose ()=0
 Disposes all references held by the object. More...
 
virtual ErrCode INTERFACE_FUNC getHashCode (SizeT *hashCode)=0
 Returns hash code of the object. More...
 
virtual ErrCode INTERFACE_FUNC equals (IBaseObject *other, Bool *equal) const =0
 Compares object to another object for equality. More...
 
virtual ErrCode INTERFACE_FUNC toString (CharPtr *str)=0
 Returns a string representation of the object. More...
 
- Public Member Functions inherited from IUnknown
virtual ErrCode INTERFACE_FUNC queryInterface (const IntfID &intfID, void **obj)=0
 Returns another interface which is supported by the object and increments the reference count. More...
 
virtual int INTERFACE_FUNC addRef ()=0
 Increments the reference count for an interface on an object. More...
 
virtual int INTERFACE_FUNC releaseRef ()=0
 Decrements the reference count for an interface on an object. More...
 

Member Function Documentation

◆ getFloatValue()

virtual ErrCode INTERFACE_FUNC getFloatValue ( Float *  value)
pure virtual

Gets a value stored in the object as a floating point value.

Parameters
[out]valueStored value as a floating point.
Returns
OPENDAQ_SUCCESS if succeeded, error code otherwise.

◆ getIntValue()

virtual ErrCode INTERFACE_FUNC getIntValue ( Int *  value)
pure virtual

Gets a value stored in the object as an integer value.

Parameters
[out]valueStored value as an integer.
Returns
OPENDAQ_SUCCESS if succeeded, error code otherwise.