CMS 3D CMS Logo

Namespaces | Classes | Functions

edmplugin Namespace Reference

Namespaces

namespace  standard

Classes

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

Functions

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

Function Documentation

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

Definition at line 72 of file CacheParser.cc.

References Exception.

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

{
    if(iIn.eof()) {
      throw cms::Exception("PluginCacheParseFailed")<<"Unexpectedly reached end of file for line "
      <<iRecordNumber<<" just after '"<<iContext<<"'";
    }
    if(iIn.bad()) {
      throw cms::Exception("PluginCacheParseFailed")<<"Reading failed on line "<<iRecordNumber <<" just after '"<<iContext<<"'";
    }
}