Port attachable to a chunk in a buffer. More...
#include <ChunkPort.h>
 
 | Public Member Functions | |
| CChunkPort (IPort *pPort=NULL) | |
| Constructor; can attach to a port. | |
| ~CChunkPort () | |
| Destructor; detaches from the port. | |
| virtual EAccessMode | GetAccessMode () const | 
| Get the access mode of the node. | |
| virtual 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. | |
| virtual void | SetPortImpl (IPort *pPort) | 
| Called from the port node to give the chunk port a pointer to itself. | |
| virtual EYesNo | GetSwapEndianess () | 
| Determines if the port adapter must perform an endianness swap. | |
| void | InvalidateNode () | 
| bool | AttachPort (::Spinnaker::GenApi::IPort *pPort) | 
| Attaches the ChunkPort to the Port. | |
| void | DetachPort () | 
| Detaches the ChunkPort to the Port. | |
| void | AttachChunk (uint8_t *pBaseAddress, int64_t ChunkOffset, int64_t Length, bool Cache) | 
| Attaches the Chunk to the ChunkPort. | |
| void | DetachChunk () | 
| Detaches the Chunk from the ChunkPort. | |
| int | GetChunkIDLength () | 
| Gets the ChunkID length. | |
| bool | CheckChunkID (uint8_t *pChunkIDBuffer, int ChunkIDLength) | 
| Checks if a ChunkID matches. | |
| bool | CheckChunkID (uint64_t ChunkID) | 
| Checks if a ChunkID matches, version using uint64_t ID representation. | |
| void | UpdateBuffer (uint8_t *pBaseAddress) | 
| Updates the base address of the chunk. | |
| void | ClearCache () | 
| Clears the chunk cache. | |
| Protected Attributes | |
| CNodePtr | m_pPort | 
| std::shared_ptr< PortAdapter > | m_pPortAdapter | 
| void * | m_pChunkPort | 
Port attachable to a chunk in a buffer.
| CChunkPort | ( | IPort * | pPort = NULL | ) | 
Constructor; can attach to a port.
| ~CChunkPort | ( | ) | 
Destructor; detaches from the port.
| void AttachChunk | ( | uint8_t * | pBaseAddress, | 
| int64_t | ChunkOffset, | ||
| int64_t | Length, | ||
| bool | Cache | ||
| ) | 
Attaches the Chunk to the ChunkPort.
| bool AttachPort | ( | ::Spinnaker::GenApi::IPort * | pPort | ) | 
Attaches the ChunkPort to the Port.
| bool CheckChunkID | ( | uint64_t | ChunkID | ) | 
Checks if a ChunkID matches, version using uint64_t ID representation.
| bool CheckChunkID | ( | uint8_t * | pChunkIDBuffer, | 
| int | ChunkIDLength | ||
| ) | 
Checks if a ChunkID matches.
| void ClearCache | ( | ) | 
Clears the chunk cache.
| void DetachChunk | ( | ) | 
Detaches the Chunk from the ChunkPort.
| void DetachPort | ( | ) | 
Detaches the ChunkPort to the Port.
| 
 | virtual | 
Get the access mode of the node.
| int GetChunkIDLength | ( | ) | 
Gets the ChunkID length.
| 
 | virtual | 
Get the type of the main interface of a node.
| 
 | inlinevirtual | 
Determines if the port adapter must perform an endianness swap.
| void InvalidateNode | ( | ) | 
| 
 | virtual | 
Reads a chunk of bytes from the port.
| 
 | virtual | 
Called from the port node to give the chunk port a pointer to itself.
| void UpdateBuffer | ( | uint8_t * | pBaseAddress | ) | 
Updates the base address of the chunk.
| 
 | virtual | 
Writes a chunk of bytes to the port.
| 
 | protected | 
| 
 | protected | 
| 
 | protected |