Standard implementation for a port ! More...
#include <PortImpl.h>
Public Member Functions | |
CPortImpl () | |
Constructor. | |
virtual EAccessMode | GetAccessMode () const =0 |
Get the access mode of the node. | |
virtual EYesNo | GetSwapEndianess () |
Determines if the port adapter must perform an endianess swap. | |
void | InvalidateNode () |
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. | |
virtual void | SetPortImpl (IPort *pPort) |
Sets pointer the real port implementation; this function may called only once. | |
virtual void | Write (const void *pBuffer, int64_t Address, int64_t Length)=0 |
Writes a chunk of bytes to the port. | |
virtual | ~CPortImpl () |
Destructor. | |
Private Attributes | |
CNodePtr | m_ptrPort |
Pointer to the node holding a reference to this implementation. |
Standard implementation for a port !
Definition at line 59 of file PortImpl.h.
GENAPI_NAMESPACE::CPortImpl::CPortImpl | ( | ) | [inline] |
Constructor.
Definition at line 63 of file PortImpl.h.
virtual GENAPI_NAMESPACE::CPortImpl::~CPortImpl | ( | ) | [inline, virtual] |
Destructor.
Definition at line 68 of file PortImpl.h.
virtual EAccessMode GENAPI_NAMESPACE::CPortImpl::GetAccessMode | ( | ) | const [pure virtual] |
Get the access mode of the node.
Driver closed => NI, Driver open => RW, analysing a struct, RO
Implemented in GENAPI_NAMESPACE::CTestPortStruct< CDataStruct >.
virtual EYesNo GENAPI_NAMESPACE::CPortImpl::GetSwapEndianess | ( | ) | [inline, virtual] |
Determines if the port adapter must perform an endianess swap.
Definition at line 102 of file PortImpl.h.
void GENAPI_NAMESPACE::CPortImpl::InvalidateNode | ( | ) | [inline] |
Definition at line 128 of file PortImpl.h.
virtual void GENAPI_NAMESPACE::CPortImpl::Read | ( | void * | pBuffer, |
int64_t | Address, | ||
int64_t | Length | ||
) | [pure virtual] |
Reads a chunk of bytes from the port.
Implemented in GENAPI_NAMESPACE::CTestPortStruct< CDataStruct >.
virtual void GENAPI_NAMESPACE::CPortImpl::Replay | ( | IPortWriteList * | pPortRecorder, |
bool | Invalidate = true |
||
) | [inline, virtual] |
sends the commands to the camera.
the default implementation just walks the list and issues each command using the WriteRegister method. Depending on the capabilities of the transport layer the implementation can however use a special command which sends all register write commands as one package.
Definition at line 118 of file PortImpl.h.
virtual void GENAPI_NAMESPACE::CPortImpl::SetPortImpl | ( | IPort * | pPort | ) | [inline, virtual] |
Sets pointer the real port implementation; this function may called only once.
Definition at line 95 of file PortImpl.h.
virtual void GENAPI_NAMESPACE::CPortImpl::Write | ( | const void * | pBuffer, |
int64_t | Address, | ||
int64_t | Length | ||
) | [pure virtual] |
Writes a chunk of bytes to the port.
Implemented in GENAPI_NAMESPACE::CTestPortStruct< CDataStruct >.
Pointer to the node holding a reference to this implementation.
Definition at line 136 of file PortImpl.h.