31 #ifndef GENAPI_IPORT_H 32 #define GENAPI_IPORT_H 40 # pragma warning ( push ) 41 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 54 interface GENAPI_DECL_ABSTRACT
IPort :
virtual public IBase 67 #ifndef DOXYGEN_IGNORE 88 return ref::m_Ptr->Read(pBuffer, Address, Length);
97 return ref::m_Ptr->Write(pBuffer, Address, Length);
113 # pragma warning ( pop ) 116 #endif // ifndef GENAPI_IPORT_H Definition of interface IBase.
Common types used in the public GenApi interface.
interface GENAPI_DECL_ABSTRACT IPort
Interface for ports.
CPortRefT< IPort > CPortRef
Reference to an IEnumEntry pointer.
interface GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
interface GENAPI_DECL_ABSTRACT int64_t Address
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)
Writes a chunk of bytes to the port.
interface GENAPI_DECL_ABSTRACT int64_t int64_t Length
virtual void Read(void *pBuffer, int64_t Address, int64_t Length)
Reads a chunk of bytes from the port.
declspec's to be used for GenApi Windows dll
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.
Part of the generic device API.