-GetIndexList(
- std::vector< I >& lst, const TString& name, const TUint& dim
- ) const
-{
- lst.clear( );
-
- TParameters::const_iterator i = this->m_Parameters.find( name );
- if( i == this->m_Parameters.end( ) )
- return;
- if( i->second.first == Self::IndexList )
- return;
-
- std::istringstream str( i->second.second.second );
- std::string token;
- unsigned int d = 0;
- while( std::getline( str, token, '#' ) )
- {
- std::istringstream str2( token );
- std::string token2;
- unsigned int d = 0;
- I v;
- while( std::getline( str2, token2, ';' ) && d < dim )
- {
- v[ d ] = std::atoi( token.c_str( ) );
- d++;
-
- } // elihw
- lst.push_back( v );
-
- } // elihw
-}
-
-// -------------------------------------------------------------------------
-template< class P >
-void cpPlugins::Interface::Parameters::
-GetPointList(
- std::vector< P >& lst, const TString& name, const TUint& dim
- ) const
-{
- lst.clear( );
-
- TParameters::const_iterator i = this->m_Parameters.find( name );
- if( i == this->m_Parameters.end( ) )
- return;
- if( i->second.first == Self::PointList )
- return;
-
- std::istringstream str( i->second.second.second );
- std::string token;
- unsigned int d = 0;
- while( std::getline( str, token, '#' ) )
- {
- std::istringstream str2( token );
- std::string token2;
- unsigned int d = 0;
- P v;
- while( std::getline( str2, token2, ';' ) && d < dim )
- {
- std::istringstream tok_str( token );
- tok_str >> v[ d ];
- d++;
-
- } // elihw
- lst.push_back( v );
-
- } // elihw
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-void cpPlugins::Interface::Parameters::
-GetVectorList(
- std::vector< V >& lst, const TString& name, const TUint& dim
- ) const
-{
- lst.clear( );
-
- TParameters::const_iterator i = this->m_Parameters.find( name );
- if( i == this->m_Parameters.end( ) )
- return;
- if( i->second.first == Self::VectorList )
- return;
-
- std::istringstream str( i->second.second.second );
- std::string token;
- unsigned int d = 0;
- while( std::getline( str, token, '#' ) )
- {
- std::istringstream str2( token );
- std::string token2;
- unsigned int d = 0;
- V v;
- while( std::getline( str2, token2, ';' ) && d < dim )
- {
- std::istringstream tok_str( token );
- tok_str >> v[ d ];
- d++;
-
- } // elihw
- lst.push_back( v );
-
- } // elihw
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpPlugins::Interface::Parameters::
-SetIndex( const TString& name, const TUint& dim, const I& v )