Spinnaker C++
4.0.0.116
Public Member Functions | Protected Attributes | List of all members
CTestPortStruct< CDataStruct > Class Template Reference

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

Inheritance diagram for CTestPortStruct< CDataStruct >:
CPortImpl

Public Member Functions

 CTestPortStruct (int64_t BaseAddress=0)
 
virtual EAccessMode GetAccessMode () const
 Get the access mode of the node. More...
 
virtual EInterfaceType GetPrincipalInterfaceType () const
 Get the type of the main interface of a node. More...
 
virtual void Read (void *pBuffer, int64_t Address, int64_t Length)
 Reads a chunk of bytes from the port. More...
 
virtual void Write (const void *pBuffer, int64_t Address, int64_t Length)
 Writes a chunk of bytes to the port. More...
 
void MemSet (const char FillValue)
 
void ResetStatistics ()
 Resets the read/write statistics. More...
 
int64_t GetNumReads ()
 Returns the number of reads since lastReset Statistics. More...
 
int64_t GetNumWrites ()
 Returns the number of writes since lastReset Statistics. More...
 
- Public Member Functions inherited from CPortImpl
 CPortImpl ()
 Constructor. More...
 
virtual ~CPortImpl ()
 Destructor. More...
 
virtual void SetPortImpl (IPort *pPort)
 Sets pointer the real port implementation; this function may called only once. More...
 
virtual EYesNo GetSwapEndianess ()
 Determines if the port adapter must perform an endianness swap. More...
 
virtual void Replay (IPortWriteList *pPortRecorder, bool Invalidate=true)
 sends the commands to the camera. More...
 
void InvalidateNode ()
 

Protected Attributes

int64_t m_NumReads
 Number of reads since last reset. More...
 
int64_t m_NumWrites
 Number of writes since last reset. More...
 
int64_t m_BaseAddress
 the base address used for the struct More...
 
- Protected Attributes inherited from CPortImpl
CNodePtr m_ptrPort
 Pointer to the node holding a reference to this implementation. More...
 

Detailed Description

template<class CDataStruct>
class Spinnaker::GenApi::CTestPortStruct< CDataStruct >

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

Constructor & Destructor Documentation

CTestPortStruct ( int64_t  BaseAddress = 0)
inline

Member Function Documentation

virtual EAccessMode GetAccessMode ( ) const
inlinevirtual

Get the access mode of the node.

Implements CPortImpl.

int64_t GetNumReads ( )
inline

Returns the number of reads since lastReset Statistics.

int64_t GetNumWrites ( )
inline

Returns the number of writes since lastReset Statistics.

virtual EInterfaceType GetPrincipalInterfaceType ( ) const
inlinevirtual

Get the type of the main interface of a node.

void MemSet ( const char  FillValue)
inline
virtual void Read ( void *  pBuffer,
int64_t  Address,
int64_t  Length 
)
inlinevirtual

Reads a chunk of bytes from the port.

Implements CPortImpl.

void ResetStatistics ( )
inline

Resets the read/write statistics.

virtual void Write ( const void *  pBuffer,
int64_t  Address,
int64_t  Length 
)
inlinevirtual

Writes a chunk of bytes to the port.

Implements CPortImpl.

Member Data Documentation

int64_t m_BaseAddress
protected

the base address used for the struct

int64_t m_NumReads
protected

Number of reads since last reset.

int64_t m_NumWrites
protected

Number of writes since last reset.


The documentation for this class was generated from the following file:
Contact Support Spinnaker® SDK Programmer's Guide and API Reference