CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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().

74 {
75  if(iIn.eof()) {
76  throw cms::Exception("PluginCacheParseFailed")<<"Unexpectedly reached end of file for line "
77  <<iRecordNumber<<" just after '"<<iContext<<"'";
78  }
79  if(iIn.bad()) {
80  throw cms::Exception("PluginCacheParseFailed")<<"Reading failed on line "<<iRecordNumber <<" just after '"<<iContext<<"'";
81  }
82 }
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, mergeVDriftHistosByStation::file, and edmplugin::CacheParser::read().

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

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