29#ifndef GENAPI_PORTIMPL_H
30#define GENAPI_PORTIMPL_H
40# pragma warning( push )
41# pragma warning( disable : 4251 )
42# pragma warning( disable : 4275 )
43# pragma warning( disable : 4068 )
46namespace GENAPI_NAMESPACE
56 class CPortImpl :
public IPortConstruct,
public IPortReplay
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();
Standard GenICam Exceptions.
declspec's to be used for GenApi Windows dll
Definition of interface IPortConstruct.
Definition of interface IPort.
Definition of template CPointer.
Common types used in the public GenApi interface.
bool IsValid() const
true if the pointer is valid
Definition Pointer.h:109
virtual EYesNo GetSwapEndianess()
Determines if the port adapter must perform an endianess swap.
Definition PortImpl.h:99
CPortImpl()
Constructor.
Definition PortImpl.h:60
virtual void Read(void *pBuffer, int64_t Address, int64_t Length)=0
Reads a chunk of bytes from the port.
virtual void SetPortImpl(IPort *pPort)
Sets pointer the real port implementation; this function may called only once.
Definition PortImpl.h:92
virtual ~CPortImpl()
Destructor.
Definition PortImpl.h:65
virtual void Replay(IPortWriteList *pPortRecorder, bool Invalidate=true)
sends the commands to the camera.
Definition PortImpl.h:115
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.
virtual EAccessMode GetAccessMode() const =0
Get the access mode of the node.
enum GENAPI_NAMESPACE::_EYesNo EYesNo
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
@ No
no
Definition Types.h:141