YODA is hosted by Hepforge, IPPP Durham

Persistency reader for AIDA XML format. More...

#include <ReaderAIDA.h>

Inheritance diagram for YODA::ReaderAIDA:
YODA::Reader

Public Member Functions

void read (std::istream &stream, std::vector< AnalysisObject * > &aos)
 Read in a collection of objects objs from output stream stream. More...
 
- Public Member Functions inherited from YODA::Reader
virtual ~Reader ()
 Virtual destructor. More...
 
std::vector< AnalysisObject * > read (std::istream &stream)
 Read in a collection of objects from output stream stream. More...
 
void read (const std::string &filename, std::vector< AnalysisObject * > &aos)
 Read in a collection of objects objs from file filename. More...
 
std::vector< AnalysisObject * > read (const std::string &filename)
 Read in a collection of objects from output stream stream. More...
 

Static Public Member Functions

static Readercreate ()
 Singleton creation function. More...
 

Detailed Description

Persistency reader for AIDA XML format.

Definition at line 16 of file ReaderAIDA.h.

Member Function Documentation

static Reader& YODA::ReaderAIDA::create ( )
inlinestatic

Singleton creation function.

Definition at line 20 of file ReaderAIDA.h.

20  {
21  static ReaderAIDA _instance;
22  return _instance;
23  }
void YODA::ReaderAIDA::read ( std::istream &  stream,
std::vector< AnalysisObject * > &  aos 
)
inlinevirtual

Read in a collection of objects objs from output stream stream.

This version fills (actually, appends to) a supplied vector, avoiding copying, and is hence CPU efficient.

Todo:
Use SFINAE magic to allow ~arbitrary collection<AnalysisObject*> (with push_back()?) to be passed

Implements YODA::Reader.

Definition at line 25 of file ReaderAIDA.h.

25  {
26  _readDoc(stream, aos);
27  }

The documentation for this class was generated from the following files: