Go to the documentation of this file.
30 #ifndef GENAPI_REGISTERT_H
31 #define GENAPI_REGISTERT_H
33 #include "../IRegister.h"
34 #include "GenApi/impl/Log.h"
39 # define _snprintf snprintf
46 # pragma warning ( push )
47 # pragma warning ( disable : 4996 ) // deprecated function
62 std::list<CNodeCallback*> CallbacksToFire;
72 static const char fmt[] =
74 static const int BufferLen(256);
80 for(
int i = 0; i <
Length; i++)
82 const int n =
_snprintf(_pBuffer + BufferLeft,
83 BufferLen - BufferLeft,
84 "%02X", (
unsigned int) pBuffer[i]);
85 #pragma BullseyeCoverage off
89 if (BufferLeft + n >= BufferLen)
92 #pragma BullseyeCoverage on
106 typename Base::PostSetValueFinalizer PostSetValueCaller(
this, CallbacksToFire);
114 Base::InternalCheckError();
120 std::list<CNodeCallback*>::iterator ptrCallback;
121 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
128 std::list<CNodeCallback*>::iterator ptrCallback;
129 for( ptrCallback = CallbacksToFire.begin(); ptrCallback != CallbacksToFire.end(); ptrCallback++ )
148 Base::InternalGet(pBuffer,
Length,
Verify, IgnoreCache );
152 Base::InternalCheckError();
158 static const char fmt[] =
159 "...Get( %" FMT_I64 "d ) = 0x";
161 static const int BufferLen( 256 );
166 for (
int i = 0; i <
Length; i++)
168 const int n =
_snprintf( _pBuffer + BufferLeft,
169 BufferLen - BufferLeft,
170 "%02X", (
unsigned int) pBuffer[i] );
171 #pragma BullseyeCoverage off
176 if (BufferLeft + n >= BufferLen)
179 #pragma BullseyeCoverage on
192 return Base::InternalGetLength(
Verify);
200 return Base::InternalGetAddress(
Verify,
false);
205 # pragma warning ( pop )
210 #endif // GENAPI_REGISTERT_H
Lexical analyzer for CIntSwissKnife.
static bool Exist(const gcstring &LoggerName)
Checks if a category/logger exists First checks the local logger map Finally checks via ILoggerFactor...
@ cbPostOutsideLock
callback is fired on leaving the tree inside the lock-guarded area
Implementation of the IRegister interface.
virtual CLock & GetLock() const =0
Returns the lock which guards the node map.
virtual int64_t GetLength(bool Verify=false)
Implementation of IRegister::GetLength()
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
#define GCLOGINFOPOP(cat,...)
virtual bool CanBeWritten(bool Verify)=0
virtual void Get(uint8_t *pBuffer, int64_t Length, bool Verify=false, bool IgnoreCache=false)
Implementation of IRegister::Get()
#define ACCESS_EXCEPTION_NODE
Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody")
virtual void Set(const uint8_t *pBuffer, int64_t Length, bool Verify=true)
Implementation of IRegister::Set()
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT int64_t int64_t Length
virtual int64_t GetAddress(bool Verify=false)
Retrieves the Address of the register.
virtual bool IsStreamable() const =0
True if the node is streamable.
Definition of macros for cross-platform compatibility.
#define GCLOGINFOPUSH(cat,...)
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11