CMS 3D CMS Logo

Functions

edmplugin::standard Namespace Reference

Functions

const boost::filesystem::path & cachefileName ()
PluginManager::Config config ()
const std::string & pluginPrefix ()

Function Documentation

const boost::filesystem::path & edmplugin::standard::cachefileName ( )

Definition at line 48 of file standard.cc.

References getHLTPrescaleColumns::path.

Referenced by main(), and edmplugin::PluginManager::PluginManager().

                                               {
      static const boost::filesystem::path s_path(".edmplugincache");
      return s_path;
    }
PluginManager::Config edmplugin::standard::config ( )

Definition at line 22 of file standard.cc.

References i, prof2calltree::last, getHLTPrescaleColumns::path, EgammaValidation_cff::paths, and edmplugin::PluginManager::Config::searchPath().

Referenced by AutoLibraryLoader::enable(), StorageFactory::getMaker(), HcalO2OManager::HcalO2OManager(), cond::Utilities::initializePluginManager(), HPDNoiseLibraryReader::initializeServices(), main(), edm::ProblemTracker::ProblemTracker(), and cond::topinit().

  {
      PluginManager::Config returnValue;
      
#ifdef __APPLE__
      const char *path = getenv ("DYLD_FALLBACK_LIBRARY_PATH");
#else
      const char *path = getenv ("LD_LIBRARY_PATH");
#endif
      if (! path) path = "";
      
      std::string spath(path);
      std::string::size_type last=0;
      std::string::size_type i=0;
      std::vector<std::string> paths;
      while( (i=spath.find_first_of(':',last))!=std::string::npos) {
        paths.push_back(spath.substr(last,i-last));
        last = i+1;
        //std::cout <<paths.back()<<std::endl;
      }
      paths.push_back(spath.substr(last,std::string::npos));
      returnValue.searchPath(paths);
      
      return returnValue;
  }
const std::string & edmplugin::standard::pluginPrefix ( )

Definition at line 54 of file standard.cc.

Referenced by main().

                                    {
      static const std::string s_prefix("plugin");
      return s_prefix;
    }