GenApi  3.5.1
Public Member Functions | Protected Attributes | List of all members
CTestPortStruct< CDataStruct > Class Template Reference

Implements a register spaces based on a C++ struct.

Inherits CDataStruct, and CPortImpl.

Public Member Functions

virtual GENAPI_NAMESPACE::EAccessMode GetAccessMode () const
 Get the access mode of the node.
 
virtual GENAPI_NAMESPACE::EInterfaceType GetPrincipalInterfaceType () const
 Get the type of the main interface of a node.
 
virtual void Read (void *pBuffer, int64_t Address, int64_t Length)
 Reads a chunk of bytes from the port.
 
virtual void Write (const void *pBuffer, int64_t Address, int64_t Length)
 Writes a chunk of bytes to the port.
 
void ResetStatistics ()
 Resets the read/write statistics.
 
int64_t GetNumReads ()
 Returns the number of reads since lastReset Statistics.
 
int64_t GetNumWrites ()
 Returns the number of writes since lastReset Statistics.
 
- Public Member Functions inherited from CPortImpl
 CPortImpl ()
 Constructor.
 
virtual ~CPortImpl ()
 Destructor.
 
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 endianess swap.
 
virtual void Replay (IPortWriteList *pPortRecorder, bool Invalidate=true)
 sends the commands to the camera. More...
 

Protected Attributes

int64_t m_NumReads
 Number of reads since last reset.
 
int64_t m_NumWrites
 Number of writes since last reset.
 
int64_t m_BaseAddress
 the base address used for the struct