YODA is hosted by Hepforge, IPPP Durham

Persistency reader from YODA flat text data format. More...

#include <ReaderYODA.h>

Inheritance diagram for YODA::ReaderYODA:
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 from YODA flat text data format.

Definition at line 30 of file ReaderYODA.h.

Member Function Documentation

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

Singleton creation function.

Definition at line 34 of file ReaderYODA.h.

34  {
35  static ReaderYODA _instance;
36  return _instance;
37  }
void YODA::ReaderYODA::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 39 of file ReaderYODA.h.

39  {
40  _readDoc(stream, aos);
41  }

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