-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_Set( Y ) \
- void cpPlugins::Interface::Parameters:: \
- Set##Y( const TString& name, const T##Y& v ) \
- { \
- TParameters::iterator i = this->m_Parameters.find( name ); \
- if( i == this->m_Parameters.end( ) ) \
- return; \
- if( i->second.first != Self::Y ) \
- return; \
- std::stringstream str; \
- str << v; \
- i->second.second.second = str.str( ); \
- this->Modified( ); \
- }
-
-cpPlugins_Parameters_Set( Bool );
-cpPlugins_Parameters_Set( Int );
-cpPlugins_Parameters_Set( Uint );
-cpPlugins_Parameters_Set( Real );
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_Add( Y ) \
- void cpPlugins::Interface::Parameters:: \
- AddTo##Y##List( const TString& name, const T##Y& v ) \
- { \
- TParameters::iterator i = this->m_Parameters.find( name ); \
- if( i == this->m_Parameters.end( ) ) \
- return; \
- if( i->second.first != Self::Y##List ) \
- return; \
- std::stringstream str; \
- if( i->second.second.second == "" ) \
- str << v; \
- else \
- str << "#" << v; \
- i->second.second.second += str.str( ); \
- this->Modified( ); \
- }
-
-cpPlugins_Parameters_Add( String );
-cpPlugins_Parameters_Add( Bool );
-cpPlugins_Parameters_Add( Int );
-cpPlugins_Parameters_Add( Uint );
-cpPlugins_Parameters_Add( Real );
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_Clear( Y ) \
- void cpPlugins::Interface::Parameters:: \
- Clear##Y##List( const TString& name ) \
- { \
- TParameters::iterator i = this->m_Parameters.find( name ); \
- if( i == this->m_Parameters.end( ) ) \
- return; \
- if( i->second.first != Self::Y ) \
- return; \
- i->second.second.second = ""; \
- this->Modified( ); \
- }
-
-cpPlugins_Parameters_Clear( String );
-cpPlugins_Parameters_Clear( Bool );
-cpPlugins_Parameters_Clear( Int );
-cpPlugins_Parameters_Clear( Uint );
-cpPlugins_Parameters_Clear( Real );
-cpPlugins_Parameters_Clear( Index );
-cpPlugins_Parameters_Clear( Point );
-