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