Go to the documentation of this file.
31 #ifndef GENAPI_SWISSKNIFE_H
32 #define GENAPI_SWISSKNIFE_H
34 #include "../IFloat.h"
96 #pragma BullseyeCoverage off
101 #pragma BullseyeCoverage on
126 #pragma BullseyeCoverage off
133 #pragma BullseyeCoverage on
181 virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList)
const;
182 virtual void Parse();
200 std::map<GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring>
m_Symbolics;
241 #endif // GENAPI_SWISSKNIFE_H
Lexical analyzer for CIntSwissKnife.
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
@ PureNumber
Decimal number in an edit control.
Specialized SwissKnife for float nodes.
Vector of doubles with reference counting.
enum GENAPI_NAMESPACE::_EDisplayNotation EDisplayNotation
typedef for float notation
A reference to a float which can be either a double variable, or a pointer to an IFloat,...
virtual ECachingMode InternalGetCachingMode() const
Get Caching Mode.
Standard implementation for the INode and the ISelector interface.
A string class which is a clone of std::string.
Definition of CMathParser.
@ _UndefinedRepresentation
Definition of the NodeT class template.
virtual double InternalGetInc()
Get the constant increment if there is any.
GENICAM_NAMESPACE::gcstring m_Formula
the formula evaluated by the swiss knife
CStrMap m_VariableMap
the vairble used by th parser
virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const
GENICAM_NAMESPACE::gcstring m_Name
The name of the node.
Implementation of the IBase interface.
@ intfIFloat
IFloat interface.
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation
recommended representation of a node value
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
CSwissKnifeImpl()
Constructor.
Expression parser and evaluator of CSwissKnife.
double m_Max
maximum value to be stored in the Register
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
typedef for interface type
std::map< GENICAM_NAMESPACE::gcstring, CFloatPolyRef > m_Variables
Mapping of SYMBOLIC names to the references of the variables.
virtual double InternalGetMin()
enum GENAPI_NAMESPACE::_EInputDirection EInputDirection
typedef for link type
GENICAM_NAMESPACE::gcstring m_Unit
the physical unit name
Definition of the BaseT class template.
ERepresentation m_Representation
the node's representation
Definition of the FloatT class template.
EDisplayNotation m_DisplayNotation
the printf format specifier used to convert the float number to a string
virtual double GetValueWithInput(double input, bool Verify=false, bool IgnoreCache=false)
Get feature value using m_InputName as hard coded variable name.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
CMathParser m_MathParser
the parser doing the actual work
const virtual double_autovector_t InternalGetListOfValidValues()
Get list of valid value.
int64_t m_DisplayPrecision
the precision the float is converted with to a string
virtual int64_t InternalGetDisplayPrecision() const
Get the precision to be used when converting the float to a string.
virtual double InternalGetMax()
virtual void SetProperty(CProperty &Property)
virtual ~CSwissKnifeImpl()
Destructor.
virtual GENICAM_NAMESPACE::gcstring InternalGetUnit() const
#define LOGICAL_ERROR_EXCEPTION_NODE
Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")
virtual ERepresentation InternalGetRepresentation()
virtual bool InternalHasInc()
True if the float has a constant increment.
virtual const char * c_str(void) const
virtual EAccessMode InternalGetAccessMode() const
Get the access mode of the node.
GENAPI_NAMESPACE::EInputDirection m_InputDirection
Indicates if the SwissKnife is part of a Converter and shows which direction is implemented.
virtual void InternalSetValue(double, bool)
enum GENAPI_NAMESPACE::_ECachingMode ECachingMode
caching mode of a register
Definition of the ValueT class template.
GENICAM_NAMESPACE::gcstring m_InputName
A hard-coded variable name.
virtual double InternalGetValue(bool Verify=false, bool IgnoreCache=false)
virtual EDisplayNotation InternalGetDisplayNotation() const
Get the way the float should be converted to a string.
double m_Min
minimum value to be stored in the Register
CFloatPolyRef m_Input
Pointer to the input required when the SwissKnife is used to implement a Converter.
std::map< GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring > m_Symbolics
Mapping of the variable's node names to the SYMBOLIC names in the formulas.
virtual void FinalConstruct()
virtual EInterfaceType InternalGetPrincipalInterfaceType() const
Implementation of IBase::GetPrincipalInterfaceType()
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:12