EventAdapterGeneric.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2006 by Leutron Vision
3 // Project: GenApi
4 // Author: Jan Becvar
5 // $Header$
6 //
7 // License: This file is published under the license of the EMVA GenICam Standard Group.
8 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
9 // If for some reason you are missing this file please contact the EMVA or visit the website
10 // (http://www.genicam.org) for a full copy.
11 //
12 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
13 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
14 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
15 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
16 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
17 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
18 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
19 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
21 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22 // POSSIBILITY OF SUCH DAMAGE.
23 //-----------------------------------------------------------------------------
29 #ifndef GENAPI_EVENTADAPTERGENERIC_H
30 #define GENAPI_EVENTADAPTERGENERIC_H
31 
32 #include <GenApi/EventAdapter.h>
33 
34 namespace GENAPI_NAMESPACE
35 {
38  {
39  public:
41  CEventAdapterGeneric(INodeMap* pNodeMap = NULL);
42 
44  virtual ~CEventAdapterGeneric();
45 
46  // Does not have implementation, use the version with EventID
47  virtual void DeliverMessage( const uint8_t msg[], uint32_t numBytes );
48 
49  virtual void DeliverMessage( const uint8_t msg[], uint32_t numBytes, const GENICAM_NAMESPACE::gcstring& EventID);
50 
51  virtual void DeliverMessage( const uint8_t msg[], uint32_t numBytes, uint64_t EventID);
52  private:
54  uint8_t *m_pEventIDBuffer;
55 
58 
59  };
60 }
61 
62 #endif // GENAPI_EVENTADAPTERGENERIC_H
int m_AllocEventIDLength
Length of the EventID buffer.
Connects a generic event to a node map.
interface GENAPI_DECL_ABSTRACT INodeMap
Interface to access the node map.
Definition: INodeMap.h:56
#define GENAPI_DECL
Definition: GenApiDll.h:55
Declaration of the CEventAdapter class.
A string class which is a clone of std::string.
Definition: GCString.h:52
uint8_t * m_pEventIDBuffer
Binary version of the EventID.
Part of the generic device API.
Definition: Autovector.h:48
Delivers Events to ports.
Definition: EventAdapter.h:47


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54