29#ifndef GENAPI_CHUNKADAPTER_H
30#define GENAPI_CHUNKADAPTER_H
37namespace GENAPI_NAMESPACE
91 CChunkAdapter(INodeMap* pNodeMap = NULL, int64_t MaxChunkCacheSize = -1);
Declaration of the CChunkPort class.
virtual IBoolean & operator=(bool Value)
Set node value.
Definition IBoolean.h:62
Definition of interface INodeMap.
Common types used in the public GenApi interface.
Connects a chunked buffer to a node map.
Definition ChunkAdapter.h:56
void AttachNodeMap(INodeMap *pNodeMap)
Attaches to a node map and retrieves the chunk ports.
virtual void AttachBuffer(uint8_t *pBuffer, int64_t BufferLength, AttachStatistics_t *pAttachStatistics=NULL)=0
Attaches a buffer to the matching ChunkPort.
void ClearCaches()
Clears the chunk caches.
std::vector< CChunkPort * > * m_ppChunkPorts
An array of attached ChunkPorts.
Definition ChunkAdapter.h:95
virtual ~CChunkAdapter()
Destructor.
void DetachBuffer()
Detaches a buffer.
virtual bool CheckBufferLayout(uint8_t *pBuffer, int64_t BufferLength)=0
Checks if a buffer contains chunks in a known format.
void DetachNodeMap()
Detaches from the node map.
CChunkAdapter(INodeMap *pNodeMap=NULL, int64_t MaxChunkCacheSize=-1)
Serves as default constructor.
void UpdateBuffer(uint8_t *pBaseAddress)
Updates the base address of the buffer.
int64_t m_MaxChunkCacheSize
the maximum size of a chunk to be cached
Definition ChunkAdapter.h:99
Definition ChunkAdapter.h:44
int NumChunks
Number of chunks found in the buffer.
Definition ChunkAdapter.h:46
int NumChunkPorts
Number of chunk ports found in the node map.
Definition ChunkAdapter.h:45
int NumAttachedChunks
Number of chunks from the buffer attached to a chunk port.
Definition ChunkAdapter.h:47