29 #ifndef GENAPI_IPORT_H 30 #define GENAPI_IPORT_H 38 # pragma warning ( push ) 39 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 52 GENICAM_INTERFACE GENAPI_DECL_ABSTRACT
IPort :
virtual public IBase 55 virtual void Read(
void *pBuffer, int64_t Address, int64_t Length) = 0;
58 virtual void Write(
const void *pBuffer, int64_t Address, int64_t Length) = 0;
65 #ifndef DOXYGEN_IGNORE 73 class CPortRefT :
public CBaseRefT<T>
75 typedef CBaseRefT<T> ref;
83 virtual void Read(
void *pBuffer, int64_t Address, int64_t Length)
87 ref::m_Ptr->Read(pBuffer, Address, Length);
96 virtual void Write(
const void *pBuffer, int64_t Address, int64_t Length)
100 ref::m_Ptr->Write(pBuffer, Address, Length);
118 # pragma warning ( pop ) 121 #endif // ifndef GENAPI_IPORT_H Definition of interface IBase.
Common types used in the public GenApi interface.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
Definition: GCException.h:252
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPort
Interface for ports.
Definition: IPort.h:55
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
Definition: IBase.h:53
Standard GenICam Exceptions.
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.
declspec's to be used for GenApi Windows dll
CPortRefT< IPort > CPortRef
Definition: IPort.h:111
Definition: ChunkAdapter.h:37