EventAdapter1394.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //-----------------------------------------------------------------------------
  2. // (c) 2006 by Basler Vision Technologies
  3. // Section: Vision Components
  4. // Project: GenApi
  5. // Author: Hartmut Nebelung
  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. //-----------------------------------------------------------------------------
  25. /**
  26. \file
  27. \brief Declaration of the CEventAdapter1394 class.
  28. */
  29. #ifndef __EVENTADAPTER1394_H__
  30. #define __EVENTADAPTER1394_H__
  31. #include <GenApi/EventAdapter.h>
  32. namespace GENAPI_NAMESPACE
  33. {
  34. // the opaque event data on IEEE 1394
  35. struct EventData1394;
  36. //! Distribute the events to the node map
  37. class GENAPI_DECL CEventAdapter1394 : public GENAPI_NAMESPACE::CEventAdapter
  38. {
  39. public:
  40. //! constructor
  41. explicit CEventAdapter1394( INodeMap* pNodeMap=NULL );
  42. //! destructor
  43. ~CEventAdapter1394();
  44. private:
  45. //! not implemented: copy constructor
  46. CEventAdapter1394( const CEventAdapter1394& );
  47. //! not implemented: assignment operator
  48. CEventAdapter1394& operator=( const CEventAdapter1394& );
  49. public:
  50. virtual void DeliverMessage( const uint8_t msg[], uint32_t numBytes );
  51. //! distributes events to node map
  52. void DeliverEventMessage( EventData1394& Event, uint32_t numBytes );
  53. private:
  54. struct EventAdapter1394Impl;
  55. EventAdapter1394Impl* m_pImpl;
  56. };
  57. }
  58. #endif //__EVENTADAPTER1394_H__