31 #ifndef GENAPI_IREGISTER_H 32 #define GENAPI_IREGISTER_H 39 # pragma warning ( push ) 40 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 84 #ifndef DOXYGEN_IGNORE 105 return ref::m_Ptr->Set(pBuffer, Length,
Verify);
114 return ref::m_Ptr->Get(pBuffer, Length,
Verify, IgnoreCache);
123 return ref::m_Ptr->GetLength();
132 return ref::m_Ptr->GetAddress();
148 # pragma warning ( pop ) 151 #endif // ifndef GENAPI_IREGISTER_H Common types used in the public GenApi interface.
virtual int64_t GetAddress()
Retrieves the Address of the register.
virtual void Get(uint8_t *pBuffer, int64_t Length, bool Verify=false, bool IgnoreCache=false)
Fills a buffer with the register's contents.
interface GENAPI_DECL_ABSTRACT IRegister
Interface for registers.
CRegisterRefT< IRegister > CRegisterRef
Reference to an IRegister pointer.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
virtual void Set(const uint8_t *pBuffer, int64_t Length, bool Verify=true)
Set the register's contents.
virtual int64_t GetLength()=0
Retrieves the Length of the register [Bytes].
interface GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
interface GENAPI_DECL_ABSTRACT bool Verify
interface GENAPI_DECL_ABSTRACT int64_t int64_t Length
virtual int64_t GetAddress()=0
Retrieves the Address of the register.
virtual int64_t GetLength()
Retrieves the Length of the register [Bytes].
declspec's to be used for GenApi Windows dll
virtual void Get(uint8_t *pBuffer, int64_t Length, bool Verify=false, bool IgnoreCache=false)=0
Fills a buffer with the register's contents.
Definition of the interface IValue.
Part of the generic device API.