31 #ifndef GENAPI_INTSWISSKNIFE_H 32 #define GENAPI_INTSWISSKNIFE_H 86 #pragma BullseyeCoverage off 91 #pragma BullseyeCoverage on 147 virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList)
const;
148 virtual void Parse();
164 std::map<GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring>
m_Symbolics;
167 std::map<GENICAM_NAMESPACE::gcstring, CIntegerPolyRef>
m_Variables;
199 #endif // GENAPI_INTSWISSKNIFE_H GENICAM_NAMESPACE::gcstring m_Unit
the physical unit name
Definition of the ValueT class template.
virtual int64_t InternalGetInc() const
Get increment.
Parser and evaluator for CIntSwissKnife.
GENICAM_NAMESPACE::gcstring m_InputName
A hard-coded variable name.
virtual int64_t InternalGetMin() const
Get minimum value allowed.
GENICAM_INTERFACE IInteger
Interface for integer properties.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
virtual ~CIntSwissKnifeImpl()
Destructor.
Decimal number in an edit control.
virtual int64_t GetValueWithInput(int64_t input, bool Verify=false, bool IgnoreCache=false)
Get feature value using m_InputName as hard coded variable name.
int64_t m_Max
maximum value to be stored in the Register
Implementation of the IBase interface.
Definition of the NodeT class template.
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation
recommended representation of a node value
virtual int64_t InternalGetMax() const
Get maximum value allowed.
enum GENAPI_NAMESPACE::_ECachingMode ECachingMode
caching mode of a register
virtual void InternalSetValue(int64_t, bool)
Set feature value.
Vector of integers with reference counting.
IInteger implementation for a SwissKnife used for formula evaluation.
virtual void FinalConstruct()
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") ...
CIntegerPolyRef m_Input
Pointer to the input required when the SwissKnife is used to implement a Converter.
std::map< GENICAM_NAMESPACE::gcstring, CIntegerPolyRef > m_Variables
Mapping of SYMBOLIC names to the references of the variables.
Definition of the IntegerT class template.
Definition of polymorphical smart pointer.
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 formulas.
Definition of the BaseT class template.
virtual EAccessMode InternalGetAccessMode() const
Get the access mode of the node.
Standard implementation for the INode and the ISelector interface.
virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const
GENICAM_NAMESPACE::gcstring m_Formula
the formula evaluated by the swiss knife
CInt64MathParser m_MathParser
the parser doing the actual work
GENAPI_NAMESPACE::EInputDirection m_InputDirection
Indicates if the SwissKnife is part of a Converter and shows which direction is implemented.
A string class which is a clone of std::string.
CStrMap m_VariableMap
the vairble used by th parser
virtual int64_t InternalGetValue(bool Verify=false, bool IgnoreCache=false)
Get feature value.
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
const int64_autovector_t InternalGetListOfValidValues()
Get list of valid value.
enum GENAPI_NAMESPACE::_EInputDirection EInputDirection
typedef for link type
int64_t m_Min
minimum value to be stored in the Register
A reference to an int64 which can bei either an int64 variable, or a pointer to an IInteger...
Definition of CInt64MathParser.
virtual ERepresentation InternalGetRepresentation() const
Get recommended representation.
CIntSwissKnifeImpl()
Constructor.
virtual GENICAM_NAMESPACE::gcstring InternalGetUnit()
Get the unit.
virtual EInterfaceType InternalGetPrincipalInterfaceType() const
Implementation of IBase::GetPrincipalInterfaceType()
Lexical analyzer for CIntSwissKnife.
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
typedef for interface type
virtual void SetProperty(CProperty &Property)
virtual ECachingMode InternalGetCachingMode() const
Get Caching Mode.