31 #ifndef GENAPI_STRINGT_H 32 #define GENAPI_STRINGT_H 34 #include "../IString.h" 36 #include "GenApi/impl/Log.h" 45 template<
class Base >
53 std::list<CNodeCallback*> CallbacksToFire;
56 typename Base::EntryMethodFinalizer E(
this,
meSetValue );
64 typename Base::PostSetValueFinalizer PostSetValueCaller(
this, CallbacksToFire);
68 Base::InternalSetValue(Value,
Verify);
74 Base::InternalCheckError();
79 std::list<CNodeCallback*>::iterator ptrCallback;
80 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
87 std::list<CNodeCallback*>::iterator ptrCallback;
88 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
116 Base::InternalCheckError();
144 Base::InternalGetMaxLength(
Verify )
146 Base::InternalGetValue(
Verify ).size();
157 #endif // GENAPI_STRINGT_H GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
virtual GENICAM_NAMESPACE::gcstring operator()()
Get node value.
virtual GENICAM_NAMESPACE::gcstring operator*()
Get node value.
virtual IString & operator=(const GENICAM_NAMESPACE::gcstring &Value)
Set node value.
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
virtual void SetValue(const GENICAM_NAMESPACE::gcstring &Value, bool Verify=true)
Set node value.
virtual int64_t GetMaxLength(bool Verify=false)
Retrieves the maximum length of the string in bytes.
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") ...
Definition of macros for cross-platform compatibility.
#define GCLOGINFOPUSH(cat,...)
Implementation of the IString interface.
A string class which is a clone of std::string.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IString
Interface for string properties.
bool IsWritable(EAccessMode AccessMode)
Tests if writable.
virtual GENICAM_NAMESPACE::gcstring GetValue(bool Verify=false, bool IgnoreCache=false)
Get node value.
#define GCLOGINFOPOP(cat,...)
virtual const char * c_str(void) const
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.