ChunkAdapterGEV.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2006 by Basler Vision Technologies
3 // Section: Vision Components
4 // Project: GenApi
5 // Author: Fritz Dierks
6 // $Header$
7 //
8 // License: This file is published under the license of the EMVA GenICam Standard Group.
9 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
10 // If for some reason you are missing this file please contact the EMVA or visit the website
11 // (http://www.genicam.org) for a full copy.
12 //
13 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
14 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
17 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 // POSSIBILITY OF SUCH DAMAGE.
24 //-----------------------------------------------------------------------------
30 #ifndef GENAPI_CHUNKADAPTERGEV_H
31 #define GENAPI_CHUNKADAPTERGEV_H
32 
33 #include <GenApi/ChunkAdapter.h>
34 
35 namespace GENAPI_NAMESPACE
36 {
37 
38  /* ------------------------------------------- */
39  // Declartion of GigE Vision Chunk message trailer
40 
41  // make sure everything is properly packed
42 # pragma pack(push, 1)
43 
45  typedef struct GVCP_CHUNK_TRAILER
46  {
47  uint32_t ChunkID;
48  uint32_t ChunkLength;
50 
51  // restore the previous packing
52 # pragma pack(pop)
53  /* ------------------------------------------- */
54 
55 
58  {
59 
60  public:
62  CChunkAdapterGEV(INodeMap* pNodeMap = NULL, int64_t MaxChunkCacheSize = -1);
63 
65  virtual ~CChunkAdapterGEV();
66 
68  virtual bool CheckBufferLayout(uint8_t *pBuffer, int64_t BufferLength);
69 
71  virtual void AttachBuffer(uint8_t *pBuffer, int64_t BufferLength, AttachStatistics_t *pAttachStatistics = NULL);
72 
73  };
74 
75 }
76 
77 #endif // GENAPI_CHUNKADAPTERGEV_H
Connects a chunked DCAM buffer to a node map.
__int64 int64_t
Definition: config-win32.h:21
GENICAM_INTERFACE INodeMap
Interface to access the node map.
Definition: INode.h:52
#define GENAPI_DECL
Definition: GenApiDll.h:55
header of a GVCP request packet
Delivers information about the attached chunks and nodes.
Definition: ChunkAdapter.h:45
struct GENAPI_NAMESPACE::GVCP_CHUNK_TRAILER GVCP_CHUNK_TRAILER
header of a GVCP request packet
Declaration of the CChunkAdapter class.
Connects a chunked buffer to a node map.
Definition: ChunkAdapter.h:57
Lexical analyzer for CIntSwissKnife.
Definition: Autovector.h:48


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:40