}
cpPlugins_Interface_Parameters_SetMacro( String );
+cpPlugins_Interface_Parameters_SetMacro( Bool );
cpPlugins_Interface_Parameters_SetMacro( Int );
cpPlugins_Interface_Parameters_SetMacro( Uint );
cpPlugins_Interface_Parameters_SetMacro( Real );
return( pIt->second.second );
}
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Parameters::
+TBool cpPlugins::Interface::Parameters::
+GetValueAsBool( const TString& name ) const
+{
+ TParameters::const_iterator pIt = this->m_Parameters.find( name );
+ if( pIt == this->m_Parameters.end( ) )
+ return( TBool( false ) );
+ if( pIt->second.first != Self::Int )
+ return( TBool( false ) );
+ return( TBool( std::atoi( pIt->second.second.c_str( ) ) == 1 ) );
+}
+
// -------------------------------------------------------------------------
cpPlugins::Interface::Parameters::
TInt cpPlugins::Interface::Parameters::
{
}
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Parameters::
+GetValueAsBoolList( std::vector< TBool >& lst, const TString& name ) const
+{
+}
+
// -------------------------------------------------------------------------
void cpPlugins::Interface::Parameters::
GetValueAsIntList( std::vector< TInt >& lst, const TString& name ) const