ChunkAdapter.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2006 by Basler Vision Technologies
00003 //  Section:  Vision Components
00004 //  Project:  GenApi
00005 //    Author:  Fritz Dierks
00006 //  $Header$
00007 //
00008 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00009 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00010 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00011 //  (http://www.genicam.org) for a full copy.
00012 //
00013 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00014 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00015 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00016 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00017 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00018 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00019 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00020 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00021 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00022 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00023 //  POSSIBILITY OF SUCH DAMAGE.
00024 //-----------------------------------------------------------------------------
00031 #ifndef GENAPI_CHUNKADAPTER_H
00032 #define GENAPI_CHUNKADAPTER_H
00033 
00034 #include <GenApi/Types.h>
00035 #include <GenApi/INodeMap.h>
00036 #include <GenApi/ChunkPort.h>
00037 #include <vector>
00038 
00039 namespace GENAPI_NAMESPACE
00040 {
00041 
00042 
00045     typedef struct AttachStatistics_t
00046     {
00047         int NumChunkPorts;        
00048         int NumChunks;            
00049         int NumAttachedChunks;    
00050     } AttachStatistics_t;
00051 
00052 
00057     class GENAPI_DECL CChunkAdapter
00058     {
00059 
00060     public:
00062         virtual ~CChunkAdapter();
00063 
00065         void AttachNodeMap(INodeMap* pNodeMap);
00066 
00068         void DetachNodeMap();
00069 
00071 
00072         virtual bool CheckBufferLayout(uint8_t *pBuffer, int64_t BufferLength) = 0;
00073 
00075 
00076         virtual void AttachBuffer(uint8_t *pBuffer, int64_t BufferLength, AttachStatistics_t *pAttachStatistics = NULL) = 0;
00077 
00079         void DetachBuffer();
00080 
00082         void UpdateBuffer(uint8_t *pBaseAddress);
00083 
00085         void ClearCaches();
00086 
00087     protected:
00088 
00090         CChunkAdapter(INodeMap* pNodeMap = NULL, int64_t MaxChunkCacheSize = -1);
00091 
00093 
00094         std::vector<CChunkPort*> *m_ppChunkPorts;
00095 
00097 
00098         int64_t m_MaxChunkCacheSize;
00099 
00100     };
00101 
00102 }
00103 
00104 #endif // GENAPI_CHUNKADAPTER_H


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:46