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