29 #ifndef GENAPI_IFLOAT_H 30 #define GENAPI_IFLOAT_H 37 # pragma warning ( push ) 38 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 51 GENICAM_INTERFACE GENAPI_DECL_ABSTRACT
IFloat :
virtual public IValue 58 virtual void SetValue(
double Value,
bool Verify =
true) = 0;
69 virtual double GetValue(
bool Verify =
false,
bool IgnoreCache =
false) = 0;
78 virtual double GetMin() = 0;
81 virtual double GetMax() = 0;
90 virtual double GetInc() = 0;
108 virtual void ImposeMin(
double Value) = 0;
111 virtual void ImposeMax(
double Value) = 0;
121 #ifndef DOXYGEN_IGNORE 129 class CFloatRefT :
public CValueRefT<T>
131 typedef CValueRefT<T> ref;
139 virtual void SetValue(
double Value,
bool Verify =
true)
143 ref::m_Ptr->SetValue(Value, Verify);
151 return ref::m_Ptr->operator=(Value);
155 virtual double GetValue(
bool Verify =
false,
bool IgnoreCache =
false)
159 return ref::m_Ptr->GetValue(Verify, IgnoreCache);
167 return ref::m_Ptr->operator()();
175 return ref::m_Ptr->operator*();
183 return ref::m_Ptr->GetMin();
191 return ref::m_Ptr->GetMax();
199 return ref::m_Ptr->HasInc();
205 return ref::m_Ptr->GetIncMode();
213 return ref::m_Ptr->GetInc();
221 return ref::m_Ptr->GetListOfValidValues(bounded);
229 return ref::m_Ptr->GetRepresentation();
237 return ref::m_Ptr->GetUnit();
245 return ref::m_Ptr->GetDisplayNotation();
253 return ref::m_Ptr->GetDisplayPrecision();
257 IInteger *GetIntAlias()
261 return dynamic_cast<IInteger*
>(ref::m_Ptr->GetNode()->GetCastAlias());
265 IEnumeration *GetEnumAlias()
269 return dynamic_cast<IEnumeration*
>(ref::m_Ptr->GetNode()->GetCastAlias());
277 ref::m_Ptr->ImposeMin(Value);
285 ref::m_Ptr->ImposeMax(Value);
299 # pragma warning ( pop ) 302 #endif // ifndef GENAPI_IFLOAT_H enum GENAPI_NAMESPACE::_EIncMode EIncMode
virtual EIncMode GetIncMode()=0
Get increment mode.
Common types used in the public GenApi interface.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
Definition: IFloat.h:58
virtual void ImposeMin(double Value)=0
Restrict minimum value.
virtual bool operator()() const
Get node value.
Definition: IBoolean.h:77
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation
Vector of doubles with reference counting.
Definition: Autovector.h:74
virtual double GetMin()=0
Get minimum value allowed.
virtual double GetInc()=0
Get the constant increment if there is any.
virtual GENICAM_NAMESPACE::gcstring operator*()=0
Get string node value.
virtual void ImposeMax(double Value)=0
Restrict maximum value.
virtual IBoolean & operator=(bool Value)
Set node value.
Definition: IBoolean.h:62
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
Definition: GCException.h:252
virtual bool HasInc()=0
True if the float has a constant increment.
virtual GENICAM_NAMESPACE::gcstring GetUnit() const =0
Get the physical unit name.
CFloatRefT< IFloat > CFloatRef
Definition: IFloat.h:292
virtual ERepresentation GetRepresentation()=0
Get recommended representation.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
Definition: IEnumeration.h:58
virtual double_autovector_t GetListOfValidValues(bool bounded=true)=0
Get list of valid value.
virtual int64_t GetDisplayPrecision() const =0
Get the precision to be used when converting the float to a string.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
Definition: IValue.h:59
A string class which is a clone of std::string.
Definition: GCString.h:50
virtual EDisplayNotation GetDisplayNotation() const =0
Get the way the float should be converted to a string.
GENICAM_INTERFACE IInteger
Interface for integer properties.
Definition: IFloat.h:112
virtual bool GetValue(bool Verify=false, bool IgnoreCache=false) const =0
Get node value.
declspec's to be used for GenApi Windows dll
enum GENAPI_NAMESPACE::_EDisplayNotation EDisplayNotation
Definition of the interface IValue.
Definition: ChunkAdapter.h:37
virtual double GetMax()=0
Get maximum value allowed.