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 std::filesystem::path &cacheFile, const std::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

◆ checkForError()

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

Definition at line 71 of file CacheParser.cc.

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  }

References Exception.

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

◆ readCacheFile()

static bool edmplugin::readCacheFile ( const std::filesystem::path &  cacheFile,
const std::filesystem::path &  dir,
PluginManager::CategoryToInfos categoryToInfos 
)
static

Definition at line 41 of file PluginManager.cc.

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

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

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

FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
readEcalDQMStatus.read
read
Definition: readEcalDQMStatus.py:38
Exception
Definition: hltDiff.cc:246
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23