31 #ifndef GENAPI_PORTIMPL_H 32 #define GENAPI_PORTIMPL_H 42 # pragma warning( push ) 43 # pragma warning( disable : 4251 ) // enApi::CPortImpl::m_ptrPort' : class 'GenApi::CPointer<T>' needs to have dll-interface 44 # pragma warning( disable : 4275 ) // DLL interface (this is a bug) 45 # pragma warning( disable : 4068 ) // unknown pragma; refers to BullsEyeCoverage 120 pPortRecorder->Replay(
this);
141 # pragma warning(pop) 143 #endif // ifndef GENAPI_PORTIMPL_H virtual EAccessMode GetAccessMode() const =0
Get the access mode of the node.
Common types used in the public GenApi interface.
virtual void Read(void *pBuffer, int64_t Address, int64_t Length)=0
Reads a chunk of bytes from the port.
virtual void Replay(IPortWriteList *pPortRecorder, bool Invalidate=true)
sends the commands to the camera.
interface GENAPI_DECL_ABSTRACT IPortReplay
Interface for replaying write commands on a port.
CNodePtr m_ptrPort
Pointer to the node holding a reference to this implementation.
virtual ~CPortImpl()
Destructor.
interface GENAPI_DECL_ABSTRACT IPort
Interface for ports.
virtual EYesNo GetSwapEndianess()
Determines if the port adapter must perform an endianess swap.
interface GENAPI_DECL_ABSTRACT bool Invalidate
interface GENAPI_DECL_ABSTRACT int64_t Address
enum GENAPI_NAMESPACE::_EYesNo EYesNo
Defines the choices of a Yes/No alternatives.
Definition of interface IPort.
Definition of interface IPortConstruct.
interface GENAPI_DECL_ABSTRACT int64_t int64_t Length
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.
Definition of template CPointer.
virtual void SetPortImpl(IPort *pPort)
Sets pointer the real port implementation; this function may called only once.
bool IsValid() const
true if the pointer is valid
interface GENAPI_DECL_ABSTRACT IPortConstruct
Interface for ports.
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
declspec's to be used for GenApi Windows dll
Standard implementation for a port !
interface GENAPI_DECL_ABSTRACT IPortWriteList
Part of the generic device API.