_GigEEventParams.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2004-2021 Basler AG
  3. // Section: Vision Components
  4. // Project: GenApi
  5. //-----------------------------------------------------------------------------
  6. /*!
  7. \file
  8. \brief Interface to the PylonGigE Event Grabber parameters
  9. */
  10. //-----------------------------------------------------------------------------
  11. // This file is generated automatically
  12. // Do not modify!
  13. //-----------------------------------------------------------------------------
  14. #ifndef Basler_GigEEventParams_PARAMS_H
  15. #define Basler_GigEEventParams_PARAMS_H
  16. #include <GenApi/IEnumerationT.h>
  17. #include <GenApi/NodeMapRef.h>
  18. #include <GenApi/DLLLoad.h>
  19. // common node types
  20. #include <GenApi/IBoolean.h>
  21. #include <GenApi/ICategory.h>
  22. #include <GenApi/ICommand.h>
  23. #include <GenApi/IEnumeration.h>
  24. #include <GenApi/IEnumEntry.h>
  25. #include <GenApi/IFloat.h>
  26. #include <GenApi/IInteger.h>
  27. #include <GenApi/IString.h>
  28. #include <GenApi/IRegister.h>
  29. #ifdef __GNUC__
  30. # undef GCC_VERSION
  31. # define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
  32. # undef GCC_DIAGNOSTIC_AWARE
  33. # define GCC_DIAGNOSTIC_AWARE (GCC_VERSION >= 40200)
  34. # undef GCC_DIAGNOSTIC_PUSH_POP_AWARE
  35. # define GCC_DIAGNOSTIC_PUSH_POP_AWARE (GCC_VERSION >= 40600)
  36. #else
  37. # undef GCC_DIAGNOSTIC_AWARE
  38. # define GCC_DIAGNOSTIC_AWARE 0
  39. #endif
  40. #ifdef __GNUC__
  41. // GCC_DIAGNOSTIC_AWARE ensures that the internal deprecated warnings can be ignored by gcc.
  42. // As a result older gcc will not generate warnings about really used deprecated features.
  43. # if GCC_DIAGNOSTIC_AWARE
  44. # define GENAPI_DEPRECATED_FEATURE __attribute__((deprecated))
  45. # else
  46. # define GENAPI_DEPRECATED_FEATURE
  47. # endif
  48. #elif defined(_MSC_VER)
  49. # define GENAPI_DEPRECATED_FEATURE __declspec(deprecated)
  50. #else
  51. # define GENAPI_DEPRECATED_FEATURE
  52. #endif
  53. #if GCC_DIAGNOSTIC_AWARE
  54. # if GCC_DIAGNOSTIC_PUSH_POP_AWARE
  55. # pragma GCC diagnostic push
  56. # endif
  57. # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  58. #endif
  59. //! The namespace containing the device's control interface and related enumeration types
  60. namespace Basler_GigEEventParams
  61. {
  62. //**************************************************************************************************
  63. // Enumerations
  64. //**************************************************************************************************
  65. //! Valid values for Status
  66. enum StatusEnums
  67. {
  68. Status_Closed, //!<The low level event grabber is closed.
  69. Status_Open //!<The low level event grabber is open.
  70. };
  71. //**************************************************************************************************
  72. // Parameter class
  73. //**************************************************************************************************
  74. //! Interface to the PylonGigE Event Grabber parameters
  75. class CGigEEventParams_Params
  76. {
  77. //----------------------------------------------------------------------------------------------------------------
  78. // Implementation
  79. //----------------------------------------------------------------------------------------------------------------
  80. protected:
  81. // If you want to show the following methods in the help file
  82. // add the string HIDE_CLASS_METHODS to the ENABLED_SECTIONS tag in the doxygen file
  83. //! \cond HIDE_CLASS_METHODS
  84. //! Constructor
  85. CGigEEventParams_Params( void );
  86. //! Destructor
  87. ~CGigEEventParams_Params( void );
  88. //! Initializes the references
  89. void _Initialize( GENAPI_NAMESPACE::INodeMap* );
  90. //! Return the vendor of the camera
  91. const char* _GetVendorName( void );
  92. //! Returns the camera model name
  93. const char* _GetModelName( void );
  94. //! \endcond
  95. //----------------------------------------------------------------------------------------------------------------
  96. // References to features
  97. //----------------------------------------------------------------------------------------------------------------
  98. public:
  99. //! \name Root - GigE event parameters
  100. //@{
  101. /*!
  102. \brief Number of buffers to be used.
  103. Number of Buffers that are going to be used receiving events. .
  104. \b Visibility = Expert
  105. */
  106. GENAPI_NAMESPACE::IInteger& NumBuffer;
  107. //@}
  108. //! \name Root - GigE event parameters
  109. //@{
  110. /*!
  111. \brief Acknowledge timeout in milliseconds.
  112. Time to wait by the camera if an acknowledge request is configured (RetryCount != 0) to wait until the acknowledge arrives before resending the event message on its own.
  113. \b Visibility = Expert
  114. */
  115. GENAPI_NAMESPACE::IInteger& Timeout;
  116. //@}
  117. //! \name Root - GigE event parameters
  118. //@{
  119. /*!
  120. \brief Maximum number of retries.
  121. Number retry attempts by the camera to get an acknowledge for a sent event message.
  122. \b Visibility = Expert
  123. */
  124. GENAPI_NAMESPACE::IInteger& RetryCount;
  125. //@}
  126. //! \name Debug - For internal use only.
  127. //@{
  128. /*!
  129. \brief For internal use only.
  130. \b Visibility = Guru
  131. */
  132. GENAPI_NAMESPACE::IEnumerationT<StatusEnums >& Status;
  133. //@}
  134. private:
  135. //! \cond HIDE_CLASS_METHODS
  136. //! not implemented copy constructor
  137. CGigEEventParams_Params( CGigEEventParams_Params& );
  138. //! not implemented assignment operator
  139. CGigEEventParams_Params& operator=( CGigEEventParams_Params& );
  140. //! \endcond
  141. };
  142. //**************************************************************************************************
  143. // Parameter class implementation
  144. //**************************************************************************************************
  145. //! \cond HIDE_CLASS_METHODS
  146. inline CGigEEventParams_Params::CGigEEventParams_Params( void )
  147. : NumBuffer( *new GENAPI_NAMESPACE::CIntegerRef() )
  148. , Timeout( *new GENAPI_NAMESPACE::CIntegerRef() )
  149. , RetryCount( *new GENAPI_NAMESPACE::CIntegerRef() )
  150. , Status( *new GENAPI_NAMESPACE::CEnumerationTRef<StatusEnums>() )
  151. {
  152. }
  153. inline CGigEEventParams_Params::~CGigEEventParams_Params( void )
  154. {
  155. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&NumBuffer);
  156. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&Timeout);
  157. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&RetryCount);
  158. delete static_cast <GENAPI_NAMESPACE::CEnumerationTRef<StatusEnums>*> (&Status);
  159. }
  160. inline void CGigEEventParams_Params::_Initialize( GENAPI_NAMESPACE::INodeMap* _Ptr )
  161. {
  162. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&NumBuffer)->SetReference( _Ptr->GetNode( "NumBuffer" ) );
  163. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&Timeout)->SetReference( _Ptr->GetNode( "Timeout" ) );
  164. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&RetryCount)->SetReference( _Ptr->GetNode( "RetryCount" ) );
  165. static_cast<GENAPI_NAMESPACE::CEnumerationTRef<StatusEnums>*> (&Status)->SetReference( _Ptr->GetNode( "Status" ) );
  166. static_cast<GENAPI_NAMESPACE::CEnumerationTRef<StatusEnums>*> (&Status)->SetNumEnums( 2 );
  167. static_cast<GENAPI_NAMESPACE::CEnumerationTRef<StatusEnums>*> (&Status)->SetEnumReference( Status_Closed, "Closed" ); static_cast<GENAPI_NAMESPACE::CEnumerationTRef<StatusEnums>*> (&Status)->SetEnumReference( Status_Open, "Open" );
  168. }
  169. inline const char* CGigEEventParams_Params::_GetVendorName( void )
  170. {
  171. return "Basler";
  172. }
  173. inline const char* CGigEEventParams_Params::_GetModelName( void )
  174. {
  175. return "GigEEventParams";
  176. }
  177. //! \endcond
  178. } // namespace Basler_GigEEventParams
  179. #if GCC_DIAGNOSTIC_AWARE
  180. # if GCC_DIAGNOSTIC_PUSH_POP_AWARE
  181. # pragma GCC diagnostic pop
  182. # else
  183. # pragma GCC diagnostic warning "-Wdeprecated-declarations"
  184. # endif
  185. #endif
  186. #undef GENAPI_DEPRECATED_FEATURE
  187. #endif // Basler_GigEEventParams_PARAMS_H