31 #ifndef GENAPI_IFLOAT_H 32 #define GENAPI_IFLOAT_H 39 # pragma warning ( push ) 40 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 60 virtual void SetValue(
double Value,
bool Verify =
true) = 0;
71 virtual double GetValue(
bool Verify =
false,
bool IgnoreCache =
false) = 0;
80 virtual double GetMin() = 0;
83 virtual double GetMax() = 0;
92 virtual double GetInc() = 0;
110 virtual void ImposeMin(
double Value) = 0;
113 virtual void ImposeMax(
double Value) = 0;
123 #ifndef DOXYGEN_IGNORE 232 return ref::m_Ptr->GetListOfValidValues(bounded);
277 return dynamic_cast<IInteger*
>(
ref::m_Ptr->GetNode()->GetCastAlias());
286 return dynamic_cast<IEnumeration*
>(
ref::m_Ptr->GetNode()->GetCastAlias());
320 # pragma warning ( pop ) 323 #endif // ifndef GENAPI_IFLOAT_H virtual EIncMode GetIncMode()=0
Get increment mode.
virtual void SetValue(double Value, bool Verify=true)
Set node value.
virtual IFloat & operator=(double Value)
Set node value.
#define GENICAM_INTERFACE
virtual ERepresentation GetRepresentation()
Get recommended representation.
Common types used in the public GenApi interface.
virtual void ImposeMin(double Value)
Restrict minimum value.
virtual int64_t GetDisplayPrecision() const
Get the precision to be used when converting the float to a string.
virtual double_autovector_t GetListOfValidValues(bool bounded=true)
Get list of valid value.
IEnumeration * GetEnumAlias()
gets the interface of an alias node.
virtual GENICAM_NAMESPACE::gcstring GetUnit() const =0
Get the physical unit name.
GENICAM_INTERFACE IInteger
Interface for integer properties.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
virtual double GetMin()
Get minimum value allowed.
virtual int64_t GetDisplayPrecision() const =0
Get the precision to be used when converting the float to a string.
virtual double_autovector_t GetListOfValidValues(bool bounded=true)=0
Get list of valid value.
virtual double GetInc()
Get the constant increment if there is any.
IInteger * GetIntAlias()
gets the interface of an alias node.
virtual bool HasInc()
True if the float has a constant increment.
virtual bool GetValue(bool Verify=false, bool IgnoreCache=false) const =0
Get node value.
virtual void operator=(bool Value)
Set node value.
Vector of doubles with reference counting.
virtual ERepresentation GetRepresentation()=0
Get recommended representation.
virtual bool operator()() const
Get node value.
virtual EIncMode GetIncMode()
virtual void ImposeMin(double Value)=0
Restrict minimum value.
virtual void ImposeMax(double Value)=0
Restrict maximum value.
virtual double GetMax()
Get maximum value allowed.
CFloatRefT< IFloat > CFloatRef
Reference to an IFloat pointer.
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation
recommended representation of a node value
enum GENAPI_NAMESPACE::_EDisplayNotation EDisplayNotation
typedef for float notation
virtual EDisplayNotation GetDisplayNotation() const =0
Get the way the float should be converted to a string.
virtual double GetMin()=0
Get minimum value allowed.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
virtual double GetValue(bool Verify=false, bool IgnoreCache=false)
Get node value.
T * m_Ptr
Pointer to the implementation the reference references to.
virtual double GetInc()=0
Get the constant increment if there is any.
virtual double operator()()
Get node value.
virtual GENICAM_NAMESPACE::gcstring operator*()=0
Get string node value.
A string class which is a clone of std::string.
virtual void ImposeMax(double Value)
Restrict maximum value.
virtual double operator*()
Get node value.
virtual double GetMax()=0
Get maximum value allowed.
enum GENAPI_NAMESPACE::_EIncMode EIncMode
typedef for increment mode
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
declspec's to be used for GenApi Windows dll
Definition of the interface IValue.
virtual GENICAM_NAMESPACE::gcstring GetUnit() const
Get unit.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
Lexical analyzer for CIntSwissKnife.
virtual EDisplayNotation GetDisplayNotation() const
Get the way the float should be converted to a string.
virtual bool HasInc()=0
True if the float has a constant increment.