CMS 3D CMS Logo

Public Member Functions | Private Attributes

lhef::LHEReader::StringSource Class Reference

Inheritance diagram for lhef::LHEReader::StringSource:
lhef::LHEReader::Source

List of all members.

Public Member Functions

XMLDocumentcreateReader (XMLDocument::Handler &handler)
 StringSource (const std::string &inputs)
 ~StringSource ()

Private Attributes

std::auto_ptr< std::istream > fileStream

Detailed Description

Definition at line 74 of file LHEReader.cc.


Constructor & Destructor Documentation

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.


Member Function Documentation

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); }


Member Data Documentation

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

Definition at line 93 of file LHEReader.cc.

Referenced by createReader(), and StringSource().