29 #ifndef GENAPI_PORTIMPL_H 30 #define GENAPI_PORTIMPL_H 40 # pragma warning( push ) 41 # pragma warning( disable : 4251 ) // enApi::CPortImpl::m_ptrPort' : class 'GenApi::CPointer<T>' needs to have dll-interface 42 # pragma warning( disable : 4275 ) // DLL interface (this is a bug) 43 # pragma warning( disable : 4068 ) // unknown pragma; refers to BullsEyeCoverage 82 virtual void Read(
void *pBuffer, int64_t Address, int64_t Length) = 0;
85 virtual void Write(
const void *pBuffer, int64_t Address, int64_t Length) = 0;
115 virtual void Replay( IPortWriteList *pPortRecorder,
bool Invalidate =
true )
118 pPortRecorder->Replay(
this);
125 void InvalidateNode()
128 m_ptrPort->InvalidateNode();
139 # pragma warning(pop) 141 #endif // ifndef GENAPI_PORTIMPL_H virtual void SetPortImpl(IPort *pPort)
Sets pointer the real port implementation; this function may called only once.
Definition: PortImpl.h:92
Common types used in the public GenApi interface.
bool IsValid() const
true if the pointer is valid
Definition: Pointer.h:109
virtual ~CPortImpl()
Destructor.
Definition: PortImpl.h:65
enum GENAPI_NAMESPACE::_EYesNo EYesNo
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPortConstruct
Interface for ports.
Definition: IPortConstruct.h:50
no
Definition: Types.h:141
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
CPortImpl()
Constructor.
Definition: PortImpl.h:60
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPort
Interface for ports.
Definition: IPort.h:55
Definition of interface IPort.
virtual EAccessMode GetAccessMode() const =0
Get the access mode of the node.
Definition of interface IPortConstruct.
virtual EYesNo GetSwapEndianess()
Determines if the port adapter must perform an endianess swap.
Definition: PortImpl.h:99
Standard GenICam Exceptions.
Definition of template CPointer.
virtual void Read(void *pBuffer, int64_t Address, int64_t Length)=0
Reads a chunk of bytes from the port.
declspec's to be used for GenApi Windows dll
Standard implementation for a port !
Definition: PortImpl.h:56
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPortReplay
Interface for replaying write commands on a port.
Definition: IPortRecorder.h:56
virtual void Replay(IPortWriteList *pPortRecorder, bool Invalidate=true)
sends the commands to the camera.
Definition: PortImpl.h:115
Definition: ChunkAdapter.h:37
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.