Public Member Functions | |
XMLDocument * | createReader (XMLDocument::Handler &handler) |
StringSource (const std::string &inputs) | |
~StringSource () | |
Private Attributes | |
std::auto_ptr< std::istream > | fileStream |
Definition at line 74 of file LHEReader.cc.
lhef::LHEReader::StringSource::StringSource | ( | const std::string & | inputs | ) | [inline] |
Definition at line 76 of file LHEReader.cc.
References Exception, and fileStream.
{ if (inputs == "") throw cms::Exception("StreamOpenError") << "Empty LHE file string name \"" << std::endl; std::stringstream * tmpis = new std::stringstream(inputs); fileStream.reset(tmpis); }
lhef::LHEReader::StringSource::~StringSource | ( | ) | [inline] |
Definition at line 87 of file LHEReader.cc.
XMLDocument* lhef::LHEReader::StringSource::createReader | ( | XMLDocument::Handler & | handler | ) | [inline, virtual] |
Implements lhef::LHEReader::Source.
Definition at line 89 of file LHEReader.cc.
References fileStream.
{ return new XMLDocument(fileStream, handler); }
std::auto_ptr<std::istream> lhef::LHEReader::StringSource::fileStream [private] |
Definition at line 93 of file LHEReader.cc.
Referenced by createReader(), and StringSource().