// -------------------------------------------------------------------------
cpPlugins::Interface::Parameters::
TString cpPlugins::Interface::Parameters::
-GetString( const TString& name ) const
+GetString( const TString& name, bool force ) const
{
TParameters::const_iterator i = this->m_Parameters.find( name );
if( i != this->m_Parameters.end( ) )
{
- if( i->second.first == Self::String )
+ if( i->second.first == Self::String || !force )
return( i->second.second.second );
} // fi
// -------------------------------------------------------------------------
void cpPlugins::Interface::Parameters::
-SetString( const TString& name, const TString& v )
+SetString( const TString& name, const TString& v, bool force )
{
TParameters::iterator i = this->m_Parameters.find( name );
if( i == this->m_Parameters.end( ) )
return;
- if( i->second.first != Self::String )
+ if( i->second.first != Self::String && force )
return;
i->second.second.second = v;
this->Modified( );