31 #ifndef GENAPI_VALUET_H 32 #define GENAPI_VALUET_H 35 #include "../IValue.h" 37 #include "GenApi/impl/Log.h" 68 Base::InternalCheckError();
79 std::list<CNodeCallback*> CallbacksToFire;
89 GCLOGINFO( Base::m_pValueLog,
"FromString = '%s' ", ValueStr.
c_str() );
92 typename Base::PostSetValueFinalizer PostSetValueCaller(
this, CallbacksToFire);
96 Base::InternalFromString(ValueStr,
Verify);
100 Base::InternalCheckError();
103 std::list<CNodeCallback*>::iterator ptrCallback;
104 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
111 std::list<CNodeCallback*>::iterator ptrCallback;
112 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
122 return Base::InternalIsValueCacheValid();
130 #endif // GENAPI_VALUET_H virtual bool CanBeWritten(bool Verify)=0
virtual const char * c_str(void) const
#define GCLOGINFO(cat,...)
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
virtual bool IsValueCacheValid() const
Checks if the value comes from cache or is requested from another node.
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
virtual GENICAM_NAMESPACE::gcstring ToString(bool Verify=false, bool IgnoreCache=false)
Implementation of IValue::ToString()
virtual void FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, bool Verify=true)
Implementation of IValue::FromString()
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") ...
#define GCLOGINFOPUSH(cat,...)
virtual bool IsStreamable() const =0
True if the node is streamable.
Implementation helpers for CNodeCallbackDefines a bunch of templates for creating callback-functors t...
A string class which is a clone of std::string.
#define GCLOGINFOPOP(cat,...)
Lexical analyzer for CIntSwissKnife.
callback is fired on leaving the tree inside the lock-guarded area
virtual CLock & GetLock() const =0
Returns the lock which guards the node map.
Implementation of the IValue interface.