int myId;
};
-std::list<std::string> SALOME_Notebook::GetParameters() const
+std::list<std::string> SALOME_Notebook::Parameters( bool theWithAnonymous ) const
{
std::list<ParameterRank> aParams;
std::map< std::string, SALOME_Parameter* >::const_iterator it = myParameters.begin(), last = myParameters.end();
for( ; it!=last; it++ )
{
ParameterRank aRank( it->second );
- if( !it->second->IsAnonymous() && find( aParams.begin(), aParams.end(), aRank ) == aParams.end() )
+ if( ( theWithAnonymous || !it->second->IsAnonymous() ) &&
+ find( aParams.begin(), aParams.end(), aRank ) == aParams.end() )
aParams.push_back( aRank );
}
aParams.sort();
{
//Utils_Locker lock( &myMutex );
- return GenerateList( GetParameters() );
+ return GenerateList( Parameters( false ) );
}
SALOME::StringArray* SALOME_Notebook::AbsentParameters( const char* theExpr )
//2. Save parameters
save( aFile, "parameters" );
- std::list<std::string> aNames = GetParameters();
+ std::list<std::string> aNames = Parameters( true );
std::list<std::string>::const_iterator pit = aNames.begin(), plast = aNames.end();
for( ; pit!=plast; pit++ )
myParameters[*pit]->Save( aFile );
//2. Parameters
aStr += "Parameters:\n";
- std::list<std::string> aNames = GetParameters();
+ std::list<std::string> aNames = Parameters( true );
std::list<std::string>::const_iterator pit = aNames.begin(), plast = aNames.end();
for( ; pit!=plast; pit++ )
{
SALOME::ParameterizedObject_ptr FindObject( const std::string& theKey ) const;
void ThrowError( const std::string& theErrorMsg ) const;
bool CanUpdate( SALOME::ParameterizedObject_ptr theObj ) const;
- std::list<std::string> GetParameters() const;
+ std::list<std::string> Parameters( bool theWithAnonymous ) const;
private:
class KeyHelper