openDAQ
Open data acquisition platform
IScalingCalcPrivate Struct Referenceabstract

Internal functions used by openDAQ core. This interface should never be used in client SDK or module code. More...

+ Inheritance diagram for IScalingCalcPrivate:
+ Collaboration diagram for IScalingCalcPrivate:

Detailed Description

Internal functions used by openDAQ core. This interface should never be used in client SDK or module code.

Public Member Functions

virtual void *INTERFACE_FUNC scaleData (void *data, SizeT sampleCount) const =0
 Scales the packet data. More...
 
virtual void INTERFACE_FUNC scaleData (void *data, SizeT sampleCount, void **output) const =0
 Scales the packet data. More...
 
virtual Bool INTERFACE_FUNC hasScalingCalc () const =0
 Checks whether the Scaling Calculator is available for packet or not. 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

◆ hasScalingCalc()

virtual Bool INTERFACE_FUNC hasScalingCalc ( ) const
pure virtual

Checks whether the Scaling Calculator is available for packet or not.

Returns
True if the Scaling Calculator is initialized within the implementation; false otherwise.

◆ scaleData() [1/2]

virtual void* INTERFACE_FUNC scaleData ( void *  data,
SizeT  sampleCount 
) const
pure virtual

Scales the packet data.

Parameters
dataPointer to the packet data.
sampleCountThe number of samples in the packet.
Returns
A pointer to the scaled data.

◆ scaleData() [2/2]

virtual void INTERFACE_FUNC scaleData ( void *  data,
SizeT  sampleCount,
void **  output 
) const
pure virtual

Scales the packet data.

Parameters
dataPointer to the packet data.
sampleCountThe number of samples in the packet.
[out]Apointer to the scaled data.