1 #ifndef __CPPLUGINS__INTERFACE__PLUGINS__HXX__
2 #define __CPPLUGINS__INTERFACE__PLUGINS__HXX__
4 // -------------------------------------------------------------------------
6 T* cpPlugins::Interface::Plugins::
7 GetData( const std::string& name )
9 auto dIt = this->m_DataObjects.find( name );
10 if( dIt != this->m_DataObjects.end( ) )
11 return( dynamic_cast< T* >( dIt->second.second.GetPointer( ) ) );
16 // -------------------------------------------------------------------------
18 const T* cpPlugins::Interface::Plugins::
19 GetData( const std::string& name ) const
21 auto dIt = this->m_DataObjects.find( name );
22 if( dIt != this->m_DataObjects.end( ) )
23 return( dynamic_cast< const T* >( dIt->second.second.GetPointer( ) ) );
28 #endif // __CPPLUGINS__INTERFACE__PLUGINS__HXX__