//----------------------------------------------------------------------------- // Copyright (c) 2004-2021 Basler AG // Section: Vision Components // Project: GenApi //----------------------------------------------------------------------------- /*! \file \brief Interface to the PylonUsb Event Grabber parameters */ //----------------------------------------------------------------------------- // This file is generated automatically // Do not modify! //----------------------------------------------------------------------------- #ifndef Basler_UsbEventParams_PARAMS_H #define Basler_UsbEventParams_PARAMS_H #include #include #include // common node types #include #include #include #include #include #include #include #include #include #ifdef __GNUC__ # undef GCC_VERSION # define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) # undef GCC_DIAGNOSTIC_AWARE # define GCC_DIAGNOSTIC_AWARE (GCC_VERSION >= 40200) # undef GCC_DIAGNOSTIC_PUSH_POP_AWARE # define GCC_DIAGNOSTIC_PUSH_POP_AWARE (GCC_VERSION >= 40600) #else # undef GCC_DIAGNOSTIC_AWARE # define GCC_DIAGNOSTIC_AWARE 0 #endif #ifdef __GNUC__ // GCC_DIAGNOSTIC_AWARE ensures that the internal deprecated warnings can be ignored by gcc. // As a result older gcc will not generate warnings about really used deprecated features. # if GCC_DIAGNOSTIC_AWARE # define GENAPI_DEPRECATED_FEATURE __attribute__((deprecated)) # else # define GENAPI_DEPRECATED_FEATURE # endif #elif defined(_MSC_VER) # define GENAPI_DEPRECATED_FEATURE __declspec(deprecated) #else # define GENAPI_DEPRECATED_FEATURE #endif #if GCC_DIAGNOSTIC_AWARE # if GCC_DIAGNOSTIC_PUSH_POP_AWARE # pragma GCC diagnostic push # endif # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif //! The namespace containing the device's control interface and related enumeration types namespace Basler_UsbEventParams { //************************************************************************************************** // Enumerations //************************************************************************************************** //! Valid values for Status enum StatusEnums { Status_Closed, //! (&NumBuffer); delete static_cast (&NumMaxQueuedUrbs); delete static_cast (&TransferLoopThreadPriority); delete static_cast (&Statistic_Total_Event_Count); delete static_cast (&Statistic_Failed_Event_Count); delete static_cast (&Statistic_Last_Failed_Event_Buffer_Status); } inline void CUsbEventParams_Params::_Initialize( GENAPI_NAMESPACE::INodeMap* _Ptr ) { static_cast (&NumBuffer)->SetReference( _Ptr->GetNode( "NumBuffer" ) ); static_cast (&NumMaxQueuedUrbs)->SetReference( _Ptr->GetNode( "NumMaxQueuedUrbs" ) ); static_cast (&TransferLoopThreadPriority)->SetReference( _Ptr->GetNode( "TransferLoopThreadPriority" ) ); static_cast (&Statistic_Total_Event_Count)->SetReference( _Ptr->GetNode( "Statistic_Total_Event_Count" ) ); static_cast (&Statistic_Failed_Event_Count)->SetReference( _Ptr->GetNode( "Statistic_Failed_Event_Count" ) ); static_cast (&Statistic_Last_Failed_Event_Buffer_Status)->SetReference( _Ptr->GetNode( "Statistic_Last_Failed_Event_Buffer_Status" ) ); } inline const char* CUsbEventParams_Params::_GetVendorName( void ) { return "Basler"; } inline const char* CUsbEventParams_Params::_GetModelName( void ) { return "UsbEventParams"; } //! \endcond } // namespace Basler_UsbEventParams #if GCC_DIAGNOSTIC_AWARE # if GCC_DIAGNOSTIC_PUSH_POP_AWARE # pragma GCC diagnostic pop # else # pragma GCC diagnostic warning "-Wdeprecated-declarations" # endif #endif #undef GENAPI_DEPRECATED_FEATURE #endif // Basler_UsbEventParams_PARAMS_H