Low Level API: Base class for chunk parsers returned by camera objects. More...
#include <pylon/ChunkParser.h>
Public Member Functions | |
virtual bool | HasCRC () const =0 |
Checks if buffer has a CRC attached. More... | |
virtual bool | CheckCRC () const =0 |
Checks CRC sum of buffer. More... | |
void | AttachBuffer (const void *pBuffer, int64_t BufferLength, GenApi::AttachStatistics_t *pAttachStatistics=NULL) |
Pass in a buffer and let the chunk parser analyze it. More... | |
void | DetachBuffer () |
Detaches a buffer from the chunk parser. The buffer will no longer accessed by the chunk parser. More... | |
void | UpdateBuffer (const void *pBaseAddress) |
Pass in a buffer and let the chunk parser update the camera object's parameters. More... | |
GenApi::INodeMap * | GetChunkDataNodeMap () |
Provides access to the chunk data node map that the parser updates. More... | |
void | Destroy () |
Makes the object to destroy itself. More... | |
Protected Member Functions | |
CChunkParser (GenApi::CChunkAdapter *pParser) | |
default constructor - make it protected to prevent this class from instantiation | |
virtual | ~CChunkParser () |
destructor | |
Protected Attributes | |
GenApi::CChunkAdapter * | m_pParser |
Pointer to the GenApi workhorse. | |
Low Level API: Base class for chunk parsers returned by camera objects.
Part implementation of chunk parser of common functionality.
|
virtual |
Pass in a buffer and let the chunk parser analyze it.
Corresponding parameters of the camera object reflecting the chunked data will be updated.
pBuffer | Pointer to the new buffer |
BufferLength | Size of the new buffer in bytes |
pAttachStatistics | (optional) Pointer to a record taking statistic data of the analyzed buffer |
Implements Pylon::IChunkParser.
|
pure virtualinherited |
Checks CRC sum of buffer.
|
virtual |
Makes the object to destroy itself.
This is an alternative to destroying it via the IPylonDevice interface. It is used when the device has been destroyed already.
Implements Pylon::ISelfReliantChunkParser.
|
virtual |
Detaches a buffer from the chunk parser. The buffer will no longer accessed by the chunk parser.
An attached buffer must be detached before freeing it. When attaching a new buffer, the previous one gets detached automatically.
Implements Pylon::IChunkParser.
|
virtual |
Provides access to the chunk data node map that the parser updates.
Implements Pylon::ISelfReliantChunkParser.
|
pure virtualinherited |
Checks if buffer has a CRC attached.
|
virtual |
Pass in a buffer and let the chunk parser update the camera object's parameters.
This method can be used when the layout of the chunk data hasn't changed since a previous buffer has been attached to the chunk parser. In this case UpdateBuffer is slightly faster then AttachBuffer, because the buffer's layout is remembered.
pBaseAddress | Pointer to the new buffer |
Implements Pylon::IChunkParser.