CMS 3D CMS Logo

Namespaces | Classes | Functions
edmplugin Namespace Reference

Namespaces

 standard
 

Classes

class  CacheParser
 
class  PluginCapabilities
 
class  PluginFactory
 
class  PluginFactory< R *(Args...)>
 
class  PluginFactoryBase
 
class  PluginFactoryManager
 
struct  PluginInfo
 
class  PluginManager
 
struct  PluginManagerPathHasher
 
class  SharedLibrary
 

Functions

static void checkForError (const std::istream &iIn, unsigned long iRecordNumber, const std::string &iContext)
 
static bool readCacheFile (const boost::filesystem::path &cacheFile, const boost::filesystem::path &dir, PluginManager::CategoryToInfos &categoryToInfos)
 

Detailed Description

A plugin factory for pede labelers

Original author: Andreas Mussgiller, January 2011

Date
2010/09/10 10:26:20
Revision
1.1

(last update by

Author
mussgill

)

Function Documentation

static void edmplugin::checkForError ( const std::istream &  iIn,
unsigned long  iRecordNumber,
const std::string &  iContext 
)
static

Definition at line 71 of file CacheParser.cc.

References Exception.

Referenced by edmplugin::CacheParser::readline().

71  {
72  if (iIn.eof()) {
73  throw cms::Exception("PluginCacheParseFailed")
74  << "Unexpectedly reached end of file for line " << iRecordNumber << " just after '" << iContext << "'";
75  }
76  if (iIn.bad()) {
77  throw cms::Exception("PluginCacheParseFailed")
78  << "Reading failed on line " << iRecordNumber << " just after '" << iContext << "'";
79  }
80  }
static bool edmplugin::readCacheFile ( const boost::filesystem::path &  cacheFile,
const boost::filesystem::path &  dir,
PluginManager::CategoryToInfos categoryToInfos 
)
static

Definition at line 42 of file PluginManager.cc.

References Exception, FrontierConditions_GlobalTag_cff::file, and edmplugin::CacheParser::read().

Referenced by edmplugin::PluginManager::PluginManager().

44  {
45  if (exists(cacheFile)) {
46  std::ifstream file(cacheFile.string().c_str());
47  if (not file) {
48  throw cms::Exception("PluginMangerCacheProblem")
49  << "Unable to open the cache file '" << cacheFile.string() << "'. Please check permissions on file";
50  }
51  CacheParser::read(file, dir, categoryToInfos);
52  return true;
53  }
54  return false;
55  }
dbl *** dir
Definition: mlp_gen.cc:35