29#ifndef GENAPI_IVALUE_H
30#define GENAPI_IVALUE_H
40# pragma warning ( push )
41# pragma warning ( disable : 4251 )
44namespace GENAPI_NAMESPACE
46 GENICAM_INTERFACE
INode;
56 GENICAM_INTERFACE GENAPI_DECL_ABSTRACT
IValue :
virtual public IBase
92 template <
class T,
class I=T>
93 class CValueRefT :
public CBaseRefT<T,I>
95 typedef CBaseRefT<T, I> ref;
103 virtual INode* GetNode()
107 return ref::m_Ptr->GetNode();
115 return ref::m_Ptr->ToString(Verify, IgnoreCache);
125 ref::m_Ptr->FromString(ValueStr, Verify);
129 virtual bool IsValueCacheValid()
const
133 return ref::m_Ptr->IsValueCacheValid();
146# pragma warning ( pop )
Standard GenICam Exceptions.
Portable string implementation.
declspec's to be used for GenApi Windows dll
Definition of interface IBase.
virtual INode * GetNode(const GENICAM_NAMESPACE::gcstring &Name) const =0
Retrieves the node from the central map by Name.
Definition of interface INode and types NodeList_t and CallbackHandleType:
virtual void FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, bool Verify=true)=0
Set content of the node as string.
virtual bool IsValueCacheValid() const =0
Checks if the value comes from cache or is requested from another node.
Common types used in the public GenApi interface.
A string class which is a clone of std::string.
Definition GCString.h:51
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
Definition GCException.h:252
CValueRefT< IValue > CValueRef
Definition IValue.h:139
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
Definition IBase.h:53
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
Definition IValue.h:59
GENICAM_INTERFACE INode
Interface common to all nodes.
Definition ICategory.h:49