EventAdapter.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //-----------------------------------------------------------------------------
  2. // Basler pylon SDK
  3. // Copyright (c) 2006-2021 Basler AG
  4. // http://www.baslerweb.com
  5. // Author: HN
  6. //-----------------------------------------------------------------------------
  7. /*!
  8. \file
  9. \brief Low Level API: Definition of the IEventAdapter interface
  10. */
  11. #ifndef __PYLON_EVENT_ADAPTER_H__
  12. #define __PYLON_EVENT_ADAPTER_H__
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. #include <pylon/Platform.h>
  17. #ifdef _MSC_VER
  18. # pragma pack(push, PYLON_PACKING)
  19. #endif /* _MSC_VER */
  20. #include <pylon/stdinclude.h>
  21. namespace Pylon
  22. {
  23. /*!
  24. \interface IEventAdapter
  25. \brief Low Level API: IEventAdapter delivers event messages to ports
  26. \ingroup Pylon_LowLevelApi
  27. */
  28. interface PUBLIC_INTERFACE IEventAdapter
  29. {
  30. //! Deliver message
  31. virtual void DeliverMessage( const uint8_t msg[], uint32_t numBytes ) = 0;
  32. };
  33. }
  34. #ifdef _MSC_VER
  35. # pragma pack(pop)
  36. #endif /* _MSC_VER */
  37. #endif //__PYLON_EVENT_ADAPTER_H__