- this->OpenEnvironments( str.str( ) );
-
- // Try to read locally defined paths
- /* TODO
- std::vector< std::string > tokens;
- cpExtensions::Tokenize( tokens, str.str( ), cpPlugins_ENV_SEPARATOR );
- for( auto t = tokens.begin( ); t != tokens.end( ); ++t )
- {
- try
- {
- this->OpenEnvironments( *t );
- }
- catch( ... ) { }
-
- } // rof
- */
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Plugins::
-~Plugins( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Plugins::
-PrintSelf( std::ostream& os, itk::Indent indent ) const
-{
- // Show data
- os << indent << "----- PATHS -----" << std::endl;
- auto paths = this->GetPaths( );
- for( auto paIt = paths.begin( ); paIt != paths.end( ); ++paIt )
- os << indent << *paIt << std::endl;
- os << indent << std::endl << indent << "----- PLUGINS -----" << std::endl;
- auto plugins = this->GetPlugins( );
- for( auto plIt = plugins.begin( ); plIt != plugins.end( ); ++plIt )
- os << indent << *plIt << std::endl;
- os << indent << std::endl << indent << "----- FILTERS -----" << std::endl;
- auto categories = this->GetCategories( );
- for( auto cIt = categories.begin( ); cIt != categories.end( ); ++cIt )
- {
- os << indent << "** Category: " << *cIt << " **" << std::endl;
- auto filters = this->GetFilters( *cIt );
- for( auto fIt = filters.begin( ); fIt != filters.end( ); ++fIt )
- os << indent << indent << indent << "Filter: " << *fIt << std::endl;
-
- } // rof
-
+ std::vector< std::string > tokens;
+ cpPlugins::Tokenize( tokens, str.str( ), cpPlugins_ENV_SEPARATOR );
+ for( auto dir : tokens )
+ this->m_PluginsPaths.insert( cpPlugins::CanonicalPath( dir ) );