Standard implementation for a port. More...
#include <PortImpl.h>
Public Member Functions | |
CPortImpl () | |
Constructor. | |
virtual | ~CPortImpl () |
Destructor. | |
virtual EAccessMode | GetAccessMode () const =0 |
Get the access mode of the node. | |
virtual void | Read (void *pBuffer, int64_t Address, int64_t Length)=0 |
Reads a chunk of bytes from the port. | |
virtual void | Write (const void *pBuffer, int64_t Address, int64_t Length)=0 |
Writes a chunk of bytes to the port. | |
virtual void | SetPortImpl (IPort *pPort) |
Sets pointer the real port implementation; this function may called only once. | |
virtual EYesNo | GetSwapEndianess () |
Determines if the port adapter must perform an endianness swap. | |
virtual void | Replay (IPortWriteList *pPortRecorder, bool Invalidate=true) |
sends the commands to the camera. | |
void | InvalidateNode () |
Protected Attributes | |
CNodePtr | m_ptrPort |
Pointer to the node holding a reference to this implementation. | |
Standard implementation for a port.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
pure virtual |
Get the access mode of the node.
Driver closed => NI, Driver open => RW, analyzing a struct, RO
Implemented in CTestPortStruct< CDataStruct >, and CRegisterPortImpl.
|
inlinevirtual |
Determines if the port adapter must perform an endianness swap.
|
inline |
|
pure virtual |
Reads a chunk of bytes from the port.
Implemented in CRegisterPortImpl, and CTestPortStruct< CDataStruct >.
|
inlinevirtual |
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.
|
inlinevirtual |
Sets pointer the real port implementation; this function may called only once.
Reimplemented in CRegisterPortImpl.
|
pure virtual |
Writes a chunk of bytes to the port.
Implemented in CRegisterPortImpl, and CTestPortStruct< CDataStruct >.
|
protected |
Pointer to the node holding a reference to this implementation.