IFloat implementation for a register. More...
#include <FltReg.h>
Public Member Functions | |
CFltRegImpl () | |
Constructor. | |
virtual bool | GetProperty (CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const |
virtual void | SetProperty (CProperty &Property) |
Protected Member Functions | |
virtual EDisplayNotation | InternalGetDisplayNotation () const |
Get the way the float should be converted to a string. | |
virtual int64_t | InternalGetDisplayPrecision () const |
Get the precision to be used when converting the float to a string. | |
virtual double | InternalGetInc () |
Get the constant increment if there is any. | |
virtual int64_t | InternalGetLength () |
Retrieves the Length of the register [Bytes]. | |
virtual const double_autovector_t | InternalGetListOfValidValues () |
Get list of valid value. | |
virtual double | InternalGetMax () |
Get maximum value allowed. | |
virtual double | InternalGetMin () |
Get minimum value allowed. | |
virtual EInterfaceType | InternalGetPrincipalInterfaceType () const |
Implementation of IBase::GetPrincipalInterfaceType() | |
virtual ERepresentation | InternalGetRepresentation () const |
Get recommended representation. | |
virtual GENICAM_NAMESPACE::gcstring | InternalGetUnit () const |
Get the unit. | |
virtual double | InternalGetValue (bool Verify=false, bool IgnoreCache=false) |
Get node value. | |
virtual bool | InternalHasInc () |
True if the float has a constant increment. | |
virtual void | InternalSetValue (double dblValue, bool Verify=true) |
Set node value. | |
void | ReadReg (uint8_t *ValueBytes, bool Verify=false, bool IgnoreCache=false) |
helper to handle the register access incl. swapping | |
void | WriteReg (uint8_t *pValueBytes, bool Verify=true) |
helper to handle the register access incl. swapping | |
Protected Attributes | |
EDisplayNotation | m_DisplayNotation |
the printf format specifier used to convert the float number to a string | |
int64_t | m_DisplayPrecision |
the precision the float is converted with to a string | |
EEndianess | m_Endianess |
endianess of the register | |
ERepresentation | m_Representation |
The float's reprsentation. | |
GENICAM_NAMESPACE::gcstring | m_Unit |
the physical unit name |
Constructor.
virtual bool GENAPI_NAMESPACE::CFltRegImpl::GetProperty | ( | CNodeDataMap * | pNodeDataMap, |
CPropertyID::EProperty_ID_t | PropertyID, | ||
CNodeData::PropertyVector_t & | PropertyList | ||
) | const [virtual] |
Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.
virtual EDisplayNotation GENAPI_NAMESPACE::CFltRegImpl::InternalGetDisplayNotation | ( | ) | const [inline, protected, virtual] |
virtual int64_t GENAPI_NAMESPACE::CFltRegImpl::InternalGetDisplayPrecision | ( | ) | const [inline, protected, virtual] |
virtual double GENAPI_NAMESPACE::CFltRegImpl::InternalGetInc | ( | ) | [inline, protected, virtual] |
virtual int64_t GENAPI_NAMESPACE::CFltRegImpl::InternalGetLength | ( | ) | [protected, virtual] |
Retrieves the Length of the register [Bytes].
Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.
virtual const double_autovector_t GENAPI_NAMESPACE::CFltRegImpl::InternalGetListOfValidValues | ( | ) | [inline, protected, virtual] |
virtual double GENAPI_NAMESPACE::CFltRegImpl::InternalGetMax | ( | ) | [protected, virtual] |
Get maximum value allowed.
virtual double GENAPI_NAMESPACE::CFltRegImpl::InternalGetMin | ( | ) | [protected, virtual] |
Get minimum value allowed.
virtual EInterfaceType GENAPI_NAMESPACE::CFltRegImpl::InternalGetPrincipalInterfaceType | ( | ) | const [inline, protected, virtual] |
Implementation of IBase::GetPrincipalInterfaceType()
Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.
virtual ERepresentation GENAPI_NAMESPACE::CFltRegImpl::InternalGetRepresentation | ( | ) | const [inline, protected, virtual] |
virtual GENICAM_NAMESPACE::gcstring GENAPI_NAMESPACE::CFltRegImpl::InternalGetUnit | ( | ) | const [inline, protected, virtual] |
virtual double GENAPI_NAMESPACE::CFltRegImpl::InternalGetValue | ( | bool | Verify = false , |
bool | IgnoreCache = false |
||
) | [protected, virtual] |
Get node value.
virtual bool GENAPI_NAMESPACE::CFltRegImpl::InternalHasInc | ( | ) | [inline, protected, virtual] |
virtual void GENAPI_NAMESPACE::CFltRegImpl::InternalSetValue | ( | double | dblValue, |
bool | Verify = true |
||
) | [protected, virtual] |
Set node value.
void GENAPI_NAMESPACE::CFltRegImpl::ReadReg | ( | uint8_t * | ValueBytes, |
bool | Verify = false , |
||
bool | IgnoreCache = false |
||
) | [protected] |
helper to handle the register access incl. swapping
virtual void GENAPI_NAMESPACE::CFltRegImpl::SetProperty | ( | CProperty & | Property | ) | [virtual] |
Reimplemented from GENAPI_NAMESPACE::CRegisterImpl.
void GENAPI_NAMESPACE::CFltRegImpl::WriteReg | ( | uint8_t * | pValueBytes, |
bool | Verify = true |
||
) | [protected] |
helper to handle the register access incl. swapping
EEndianess GENAPI_NAMESPACE::CFltRegImpl::m_Endianess [mutable, protected] |
ERepresentation GENAPI_NAMESPACE::CFltRegImpl::m_Representation [mutable, protected] |