_UsbTLParams.h 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2004-2021 Basler AG
  3. // Section: Vision Components
  4. // Project: GenApi
  5. //-----------------------------------------------------------------------------
  6. /*!
  7. \file
  8. \brief Interface to the USB transport layer specific parameters.
  9. */
  10. //-----------------------------------------------------------------------------
  11. // This file is generated automatically
  12. // Do not modify!
  13. //-----------------------------------------------------------------------------
  14. #ifndef Basler_UsbTLParams_PARAMS_H
  15. #define Basler_UsbTLParams_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_UsbTLParams
  61. {
  62. //**************************************************************************************************
  63. // Enumerations
  64. //**************************************************************************************************
  65. //**************************************************************************************************
  66. // Parameter class
  67. //**************************************************************************************************
  68. //! Interface to the USB transport layer specific parameters.
  69. class CUsbTLParams_Params
  70. {
  71. //----------------------------------------------------------------------------------------------------------------
  72. // Implementation
  73. //----------------------------------------------------------------------------------------------------------------
  74. protected:
  75. // If you want to show the following methods in the help file
  76. // add the string HIDE_CLASS_METHODS to the ENABLED_SECTIONS tag in the doxygen file
  77. //! \cond HIDE_CLASS_METHODS
  78. //! Constructor
  79. CUsbTLParams_Params( void );
  80. //! Destructor
  81. ~CUsbTLParams_Params( void );
  82. //! Initializes the references
  83. void _Initialize( GENAPI_NAMESPACE::INodeMap* );
  84. //! Return the vendor of the camera
  85. const char* _GetVendorName( void );
  86. //! Returns the camera model name
  87. const char* _GetModelName( void );
  88. //! \endcond
  89. //----------------------------------------------------------------------------------------------------------------
  90. // References to features
  91. //----------------------------------------------------------------------------------------------------------------
  92. public:
  93. //! \name Root - Transport layer-specific parameters.
  94. //@{
  95. /*!
  96. \brief Enables mapping of certain SFNC 1.x node names to SFNC 2.x node names.
  97. \b Visibility = Guru
  98. */
  99. GENAPI_NAMESPACE::IBoolean& MigrationModeEnable;
  100. //@}
  101. //! \name Statistic - Statistical data.
  102. //@{
  103. /*!
  104. \brief Number of read pipe resets.
  105. \b Visibility = Expert
  106. */
  107. GENAPI_NAMESPACE::IInteger& Statistic_Read_Pipe_Reset_Count;
  108. //@}
  109. //! \name Statistic - Statistical data.
  110. //@{
  111. /*!
  112. \brief Number of write pipe resets.
  113. \b Visibility = Expert
  114. */
  115. GENAPI_NAMESPACE::IInteger& Statistic_Write_Pipe_Reset_Count;
  116. //@}
  117. //! \name Statistic - Statistical data.
  118. //@{
  119. /*!
  120. \brief Number of failed read operations.
  121. \b Visibility = Expert
  122. */
  123. GENAPI_NAMESPACE::IInteger& Statistic_Read_Operations_Failed_Count;
  124. //@}
  125. //! \name Statistic - Statistical data.
  126. //@{
  127. /*!
  128. \brief Number of failed write operations.
  129. \b Visibility = Expert
  130. */
  131. GENAPI_NAMESPACE::IInteger& Statistic_Write_Operations_Failed_Count;
  132. //@}
  133. //! \name Statistic - Statistical data.
  134. //@{
  135. /*!
  136. \brief Last error status of a read or write operation.
  137. \b Visibility = Expert
  138. */
  139. GENAPI_NAMESPACE::IInteger& Statistic_Last_Error_Status;
  140. //@}
  141. //! \name Statistic - Statistical data.
  142. //@{
  143. /*!
  144. \brief Last error status of a read or write operation.
  145. \b Visibility = Expert
  146. */
  147. GENAPI_NAMESPACE::IString& Statistic_Last_Error_Status_Text;
  148. //@}
  149. private:
  150. //! \cond HIDE_CLASS_METHODS
  151. //! not implemented copy constructor
  152. CUsbTLParams_Params( CUsbTLParams_Params& );
  153. //! not implemented assignment operator
  154. CUsbTLParams_Params& operator=( CUsbTLParams_Params& );
  155. //! \endcond
  156. };
  157. //**************************************************************************************************
  158. // Parameter class implementation
  159. //**************************************************************************************************
  160. //! \cond HIDE_CLASS_METHODS
  161. inline CUsbTLParams_Params::CUsbTLParams_Params( void )
  162. : MigrationModeEnable( *new GENAPI_NAMESPACE::CBooleanRef() )
  163. , Statistic_Read_Pipe_Reset_Count( *new GENAPI_NAMESPACE::CIntegerRef() )
  164. , Statistic_Write_Pipe_Reset_Count( *new GENAPI_NAMESPACE::CIntegerRef() )
  165. , Statistic_Read_Operations_Failed_Count( *new GENAPI_NAMESPACE::CIntegerRef() )
  166. , Statistic_Write_Operations_Failed_Count( *new GENAPI_NAMESPACE::CIntegerRef() )
  167. , Statistic_Last_Error_Status( *new GENAPI_NAMESPACE::CIntegerRef() )
  168. , Statistic_Last_Error_Status_Text( *new GENAPI_NAMESPACE::CStringRef() )
  169. {
  170. }
  171. inline CUsbTLParams_Params::~CUsbTLParams_Params( void )
  172. {
  173. delete static_cast <GENAPI_NAMESPACE::CBooleanRef*> (&MigrationModeEnable);
  174. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Read_Pipe_Reset_Count);
  175. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Write_Pipe_Reset_Count);
  176. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Read_Operations_Failed_Count);
  177. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Write_Operations_Failed_Count);
  178. delete static_cast <GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Last_Error_Status);
  179. delete static_cast <GENAPI_NAMESPACE::CStringRef*> (&Statistic_Last_Error_Status_Text);
  180. }
  181. inline void CUsbTLParams_Params::_Initialize( GENAPI_NAMESPACE::INodeMap* _Ptr )
  182. {
  183. static_cast<GENAPI_NAMESPACE::CBooleanRef*> (&MigrationModeEnable)->SetReference( _Ptr->GetNode( "MigrationModeEnable" ) );
  184. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Read_Pipe_Reset_Count)->SetReference( _Ptr->GetNode( "Statistic_Read_Pipe_Reset_Count" ) );
  185. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Write_Pipe_Reset_Count)->SetReference( _Ptr->GetNode( "Statistic_Write_Pipe_Reset_Count" ) );
  186. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Read_Operations_Failed_Count)->SetReference( _Ptr->GetNode( "Statistic_Read_Operations_Failed_Count" ) );
  187. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Write_Operations_Failed_Count)->SetReference( _Ptr->GetNode( "Statistic_Write_Operations_Failed_Count" ) );
  188. static_cast<GENAPI_NAMESPACE::CIntegerRef*> (&Statistic_Last_Error_Status)->SetReference( _Ptr->GetNode( "Statistic_Last_Error_Status" ) );
  189. static_cast<GENAPI_NAMESPACE::CStringRef*> (&Statistic_Last_Error_Status_Text)->SetReference( _Ptr->GetNode( "Statistic_Last_Error_Status_Text" ) );
  190. }
  191. inline const char* CUsbTLParams_Params::_GetVendorName( void )
  192. {
  193. return "Basler";
  194. }
  195. inline const char* CUsbTLParams_Params::_GetModelName( void )
  196. {
  197. return "UsbTLParams";
  198. }
  199. //! \endcond
  200. } // namespace Basler_UsbTLParams
  201. #if GCC_DIAGNOSTIC_AWARE
  202. # if GCC_DIAGNOSTIC_PUSH_POP_AWARE
  203. # pragma GCC diagnostic pop
  204. # else
  205. # pragma GCC diagnostic warning "-Wdeprecated-declarations"
  206. # endif
  207. #endif
  208. #undef GENAPI_DEPRECATED_FEATURE
  209. #endif // Basler_UsbTLParams_PARAMS_H