//----------------------------------------------------------------------------- // Copyright (c) 2004-2021 Basler AG // Section: Vision Components // Project: GenApi //----------------------------------------------------------------------------- /*! \file \brief Interface to the PylonUsb Stream Grabber parameters */ //----------------------------------------------------------------------------- // This file is generated automatically // Do not modify! //----------------------------------------------------------------------------- #ifndef Basler_UsbStreamParams_PARAMS_H #define Basler_UsbStreamParams_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_UsbStreamParams { //************************************************************************************************** // Enumerations //************************************************************************************************** //! Valid values for Status enum StatusEnums { Status_Closed, //! (&MaxNumBuffer); delete static_cast (&MaxBufferSize); delete static_cast (&MaxTransferSize); delete static_cast (&NumMaxQueuedUrbs); delete static_cast (&TransferLoopThreadPriority); delete static_cast (&TransferTimeout); delete static_cast (&Statistic_Total_Buffer_Count); delete static_cast (&Statistic_Failed_Buffer_Count); delete static_cast (&Statistic_Last_Failed_Buffer_Status); delete static_cast (&Statistic_Last_Failed_Buffer_Status_Text); delete static_cast (&Statistic_Missed_Frame_Count); delete static_cast (&Statistic_Resynchronization_Count); delete static_cast (&Statistic_Last_Block_Id); } inline void CUsbStreamParams_Params::_Initialize( GENAPI_NAMESPACE::INodeMap* _Ptr ) { static_cast (&MaxNumBuffer)->SetReference( _Ptr->GetNode( "MaxNumBuffer" ) ); static_cast (&MaxBufferSize)->SetReference( _Ptr->GetNode( "MaxBufferSize" ) ); static_cast (&MaxTransferSize)->SetReference( _Ptr->GetNode( "MaxTransferSize" ) ); static_cast (&NumMaxQueuedUrbs)->SetReference( _Ptr->GetNode( "NumMaxQueuedUrbs" ) ); static_cast (&TransferLoopThreadPriority)->SetReference( _Ptr->GetNode( "TransferLoopThreadPriority" ) ); static_cast (&TransferTimeout)->SetReference( _Ptr->GetNode( "TransferTimeout" ) ); static_cast (&Statistic_Total_Buffer_Count)->SetReference( _Ptr->GetNode( "Statistic_Total_Buffer_Count" ) ); static_cast (&Statistic_Failed_Buffer_Count)->SetReference( _Ptr->GetNode( "Statistic_Failed_Buffer_Count" ) ); static_cast (&Statistic_Last_Failed_Buffer_Status)->SetReference( _Ptr->GetNode( "Statistic_Last_Failed_Buffer_Status" ) ); static_cast (&Statistic_Last_Failed_Buffer_Status_Text)->SetReference( _Ptr->GetNode( "Statistic_Last_Failed_Buffer_Status_Text" ) ); static_cast (&Statistic_Missed_Frame_Count)->SetReference( _Ptr->GetNode( "Statistic_Missed_Frame_Count" ) ); static_cast (&Statistic_Resynchronization_Count)->SetReference( _Ptr->GetNode( "Statistic_Resynchronization_Count" ) ); static_cast (&Statistic_Last_Block_Id)->SetReference( _Ptr->GetNode( "Statistic_Last_Block_Id" ) ); } inline const char* CUsbStreamParams_Params::_GetVendorName( void ) { return "Basler"; } inline const char* CUsbStreamParams_Params::_GetModelName( void ) { return "UsbStreamParams"; } //! \endcond } // namespace Basler_UsbStreamParams #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_UsbStreamParams_PARAMS_H