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);
71 Base::InternalCheckError();
80 std::list<CNodeCallback*>::iterator ptrCallback;
81 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
88 std::list<CNodeCallback*>::iterator ptrCallback;
89 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
117 Base::InternalCheckError();
145 Base::InternalGetMaxLength()
147 Base::InternalGetValue().size();
158 #endif // GENAPI_STRINGT_H virtual GENICAM_NAMESPACE::gcstring operator()()
Get node value.
virtual GENICAM_NAMESPACE::gcstring operator*()
Get node value.
virtual int64_t GetMaxLength()
Retrieves the maximum length of the string in bytes.
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.
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") ...
Definition of macros for cross-platform compatibility.
interface GENAPI_DECL_ABSTRACT bool Verify
#define GCLOGINFOPUSH(cat,...)
Implementation of the IString interface.
A string class which is a clone of std::string.
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
Part of the generic device API.
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.