//----------------------------------------------------------------------------- // Copyright (c) 2004-2021 Basler AG // Section: Vision Components // Project: GenApi //----------------------------------------------------------------------------- /*! \file \brief Interface to the PylonGigE Event Grabber parameters */ //----------------------------------------------------------------------------- // This file is generated automatically // Do not modify! //----------------------------------------------------------------------------- #ifndef Basler_GigEEventParams_PARAMS_H #define Basler_GigEEventParams_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_GigEEventParams { //************************************************************************************************** // Enumerations //************************************************************************************************** //! Valid values for Status enum StatusEnums { Status_Closed, //!& Status; //@} private: //! \cond HIDE_CLASS_METHODS //! not implemented copy constructor CGigEEventParams_Params( CGigEEventParams_Params& ); //! not implemented assignment operator CGigEEventParams_Params& operator=( CGigEEventParams_Params& ); //! \endcond }; //************************************************************************************************** // Parameter class implementation //************************************************************************************************** //! \cond HIDE_CLASS_METHODS inline CGigEEventParams_Params::CGigEEventParams_Params( void ) : NumBuffer( *new GENAPI_NAMESPACE::CIntegerRef() ) , Timeout( *new GENAPI_NAMESPACE::CIntegerRef() ) , RetryCount( *new GENAPI_NAMESPACE::CIntegerRef() ) , Status( *new GENAPI_NAMESPACE::CEnumerationTRef() ) { } inline CGigEEventParams_Params::~CGigEEventParams_Params( void ) { delete static_cast (&NumBuffer); delete static_cast (&Timeout); delete static_cast (&RetryCount); delete static_cast *> (&Status); } inline void CGigEEventParams_Params::_Initialize( GENAPI_NAMESPACE::INodeMap* _Ptr ) { static_cast (&NumBuffer)->SetReference( _Ptr->GetNode( "NumBuffer" ) ); static_cast (&Timeout)->SetReference( _Ptr->GetNode( "Timeout" ) ); static_cast (&RetryCount)->SetReference( _Ptr->GetNode( "RetryCount" ) ); static_cast*> (&Status)->SetReference( _Ptr->GetNode( "Status" ) ); static_cast*> (&Status)->SetNumEnums( 2 ); static_cast*> (&Status)->SetEnumReference( Status_Closed, "Closed" ); static_cast*> (&Status)->SetEnumReference( Status_Open, "Open" ); } inline const char* CGigEEventParams_Params::_GetVendorName( void ) { return "Basler"; } inline const char* CGigEEventParams_Params::_GetModelName( void ) { return "GigEEventParams"; } //! \endcond } // namespace Basler_GigEEventParams #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_GigEEventParams_PARAMS_H