IInteger implementation for a SwissKnife used for formula evaluation. More...
#include <IntSwissKnife.h>
Public Member Functions | |
CIntSwissKnifeImpl () | |
Constructor. | |
virtual void | FinalConstruct () |
virtual bool | GetProperty (CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const |
virtual int64_t | GetValueWithInput (int64_t input, bool Verify=false, bool IgnoreCache=false) |
Get feature value usingt m_InputName as hard coded variable name. | |
virtual EInterfaceType | InternalGetPrincipalInterfaceType () const |
Implementation of IBase::GetPrincipalInterfaceType() | |
virtual void | SetProperty (CProperty &Property) |
virtual | ~CIntSwissKnifeImpl () |
Destructor. | |
Protected Member Functions | |
virtual EAccessMode | InternalGetAccessMode () const |
Get the access mode of the node. | |
virtual ECachingMode | InternalGetCachingMode () const |
Get Caching Mode. | |
virtual int64_t | InternalGetInc () const |
Get increment. | |
const int64_autovector_t | InternalGetListOfValidValues () |
Get list of valid value. | |
virtual int64_t | InternalGetMax () const |
Get maximum value allowed. | |
virtual int64_t | InternalGetMin () const |
Get minimum value allowed. | |
virtual ERepresentation | InternalGetRepresentation () const |
Get recommended representation. | |
virtual GENICAM_NAMESPACE::gcstring | InternalGetUnit () |
Get the unit. | |
virtual int64_t | InternalGetValue (bool Verify=false, bool IgnoreCache=false) |
Get feature value. | |
virtual void | InternalSetValue (int64_t, bool) |
Set feature value. | |
Protected Attributes | |
GENICAM_NAMESPACE::gcstring | m_Formula |
the formula evaluated by the swiss knife | |
CIntegerPolyRef | m_Input |
Pointer to the input required when the SwissKnife is used to implement a Converter. | |
GENAPI_NAMESPACE::EInputDirection | m_InputDirection |
Indicates if the SwissKnife is part of a Converter and shows which direction is implemented. | |
GENICAM_NAMESPACE::gcstring | m_InputName |
A hardcoded variable name. | |
CInt64MathParser | m_MathParser |
the parser doing the actual work | |
int64_t | m_Max |
maximum value to be stored in the Register | |
int64_t | m_Min |
minimum value to be stored in the Register | |
ERepresentation | m_Representation |
the representation of this integer node | |
std::map < GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring > | m_Symbolics |
Mapping of the variable's node names to the SYMBOLIC names in the folmulas. | |
GENICAM_NAMESPACE::gcstring | m_Unit |
the physical unit name | |
std::map < GENICAM_NAMESPACE::gcstring, CIntegerPolyRef > | m_Variables |
Mapping of SYMBOLIC names to the references of the variables. |
IInteger implementation for a SwissKnife used for formula evaluation.
Definition at line 54 of file IntSwissKnife.h.
Constructor.
virtual GENAPI_NAMESPACE::CIntSwissKnifeImpl::~CIntSwissKnifeImpl | ( | ) | [virtual] |
Destructor.
virtual void GENAPI_NAMESPACE::CIntSwissKnifeImpl::FinalConstruct | ( | ) | [virtual] |
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual bool GENAPI_NAMESPACE::CIntSwissKnifeImpl::GetProperty | ( | CNodeDataMap * | pNodeDataMap, |
CPropertyID::EProperty_ID_t | PropertyID, | ||
CNodeData::PropertyVector_t & | PropertyList | ||
) | const [virtual] |
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::GetValueWithInput | ( | int64_t | input, |
bool | Verify = false , |
||
bool | IgnoreCache = false |
||
) | [virtual] |
Get feature value usingt m_InputName as hard coded variable name.
This is a helper for the implementation of the converter
virtual EAccessMode GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetAccessMode | ( | ) | const [protected, virtual] |
Get the access mode of the node.
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual ECachingMode GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetCachingMode | ( | ) | const [protected, virtual] |
Get Caching Mode.
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetInc | ( | ) | const [inline, protected, virtual] |
Get increment.
Definition at line 115 of file IntSwissKnife.h.
const int64_autovector_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetListOfValidValues | ( | ) | [inline, protected] |
Get list of valid value.
Definition at line 109 of file IntSwissKnife.h.
virtual int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetMax | ( | ) | const [inline, protected, virtual] |
Get maximum value allowed.
Definition at line 103 of file IntSwissKnife.h.
virtual int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetMin | ( | ) | const [inline, protected, virtual] |
Get minimum value allowed.
Definition at line 97 of file IntSwissKnife.h.
virtual EInterfaceType GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetPrincipalInterfaceType | ( | ) | const [inline, virtual] |
Implementation of IBase::GetPrincipalInterfaceType()
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
Definition at line 66 of file IntSwissKnife.h.
virtual ERepresentation GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetRepresentation | ( | ) | const [inline, protected, virtual] |
Get recommended representation.
Definition at line 121 of file IntSwissKnife.h.
virtual GENICAM_NAMESPACE::gcstring GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetUnit | ( | ) | [inline, protected, virtual] |
Get the unit.
Definition at line 130 of file IntSwissKnife.h.
virtual int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalGetValue | ( | bool | Verify = false , |
bool | IgnoreCache = false |
||
) | [protected, virtual] |
Get feature value.
virtual void GENAPI_NAMESPACE::CIntSwissKnifeImpl::InternalSetValue | ( | int64_t | , |
bool | |||
) | [inline, protected, virtual] |
Set feature value.
Definition at line 86 of file IntSwissKnife.h.
virtual void GENAPI_NAMESPACE::CIntSwissKnifeImpl::SetProperty | ( | CProperty & | Property | ) | [virtual] |
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
the formula evaluated by the swiss knife
Definition at line 159 of file IntSwissKnife.h.
Pointer to the input required when the SwissKnife is used to implement a Converter.
Definition at line 184 of file IntSwissKnife.h.
GENAPI_NAMESPACE::EInputDirection GENAPI_NAMESPACE::CIntSwissKnifeImpl::m_InputDirection [protected] |
Indicates if the SwissKnife is part of a Converter and shows which direction is implemented.
Definition at line 177 of file IntSwissKnife.h.
A hardcoded variable name.
This is a helper for the implementation of the converter
Definition at line 181 of file IntSwissKnife.h.
the parser doing the actual work
Definition at line 168 of file IntSwissKnife.h.
int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::m_Max [protected] |
maximum value to be stored in the Register
Definition at line 156 of file IntSwissKnife.h.
int64_t GENAPI_NAMESPACE::CIntSwissKnifeImpl::m_Min [protected] |
minimum value to be stored in the Register
Definition at line 153 of file IntSwissKnife.h.
the representation of this integer node
Definition at line 171 of file IntSwissKnife.h.
std::map<GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring> GENAPI_NAMESPACE::CIntSwissKnifeImpl::m_Symbolics [protected] |
Mapping of the variable's node names to the SYMBOLIC names in the folmulas.
Definition at line 162 of file IntSwissKnife.h.
the physical unit name
Definition at line 174 of file IntSwissKnife.h.
std::map<GENICAM_NAMESPACE::gcstring, CIntegerPolyRef> GENAPI_NAMESPACE::CIntSwissKnifeImpl::m_Variables [protected] |
Mapping of SYMBOLIC names to the references of the variables.
Definition at line 165 of file IntSwissKnife.h.