CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
lhef::LHEReader::StringSource Class Reference
Inheritance diagram for lhef::LHEReader::StringSource:
lhef::LHEReader::Source

Public Member Functions

XMLDocumentcreateReader (XMLDocument::Handler &handler)
 
 StringSource (const std::string &inputs)
 
 ~StringSource ()
 
- Public Member Functions inherited from lhef::LHEReader::Source
 Source ()
 
virtual ~Source ()
 

Private Attributes

std::auto_ptr< std::istream > fileStream
 

Detailed Description

Definition at line 73 of file LHEReader.cc.

Constructor & Destructor Documentation

lhef::LHEReader::StringSource::StringSource ( const std::string &  inputs)
inline

Definition at line 75 of file LHEReader.cc.

References edm::hlt::Exception, and fileStream.

76  {
77  if (inputs == "")
78  throw cms::Exception("StreamOpenError")
79  << "Empty LHE file string name \""
80  << std::endl;
81 
82  std::stringstream * tmpis = new std::stringstream(inputs);
83  fileStream.reset(tmpis);
84  }
std::auto_ptr< std::istream > fileStream
Definition: LHEReader.cc:92
lhef::LHEReader::StringSource::~StringSource ( )
inline

Definition at line 86 of file LHEReader.cc.

86 {}

Member Function Documentation

XMLDocument* lhef::LHEReader::StringSource::createReader ( XMLDocument::Handler handler)
inlinevirtual

Implements lhef::LHEReader::Source.

Definition at line 88 of file LHEReader.cc.

References fileStream.

89  { return new XMLDocument(fileStream, handler); }
std::auto_ptr< XMLHandler > handler
Definition: LHEReader.h:44
std::auto_ptr< std::istream > fileStream
Definition: LHEReader.cc:92

Member Data Documentation

std::auto_ptr<std::istream> lhef::LHEReader::StringSource::fileStream
private

Definition at line 92 of file LHEReader.cc.

Referenced by createReader(), and StringSource().