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 53 interface GENAPI_DECL_ABSTRACT
IFloat :
virtual public IValue 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 144 return ref::m_Ptr->SetValue(Value,
Verify);
153 return ref::m_Ptr->operator=(Value);
162 return ref::m_Ptr->GetValue(
Verify, IgnoreCache);
171 return ref::m_Ptr->operator()();
180 return ref::m_Ptr->operator*();
189 return ref::m_Ptr->GetMin();
198 return ref::m_Ptr->GetMax();
207 return ref::m_Ptr->HasInc();
214 return ref::m_Ptr->GetIncMode();
223 return ref::m_Ptr->GetInc();
232 return ref::m_Ptr->GetListOfValidValues(bounded);
241 return ref::m_Ptr->GetRepresentation();
250 return ref::m_Ptr->GetUnit();
259 return ref::m_Ptr->GetDisplayNotation();
268 return ref::m_Ptr->GetDisplayPrecision();
277 return dynamic_cast<IInteger*
>(ref::m_Ptr->GetNode()->GetCastAlias());
286 return dynamic_cast<IEnumeration*
>(ref::m_Ptr->GetNode()->GetCastAlias());
295 return ref::m_Ptr->ImposeMin(Value);
304 return ref::m_Ptr->ImposeMax(Value);
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.
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.
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.
interface GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
interface GENAPI_DECL_ABSTRACT IInteger
Interface for integer properties.
interface GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
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")
virtual double GetValue(bool Verify=false, bool IgnoreCache=false)
Get node value.
interface GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
interface GENAPI_DECL_ABSTRACT bool Verify
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
declspec's to be used for GenApi Windows dll
Definition of the interface IValue.
virtual GENICAM_NAMESPACE::gcstring GetUnit() const
Get unit.
Part of the generic device API.
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.