yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.7.2

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...
 
template<typename CONT >
std::enable_if< YODA::Pushable< CONT, AnalysisObject * >::value >::type read (std::istream &stream, CONT &aos)
 Read in a collection of objects objs from output stream stream. More...
 
std::vector< AnalysisObject * > read (std::istream &stream)
 Read in a collection of objects from output stream stream. More...
 
template<typename CONT >
std::enable_if< YODA::Pushable< CONT, AnalysisObject * >::value >::type read (const std::string &filename, CONT &aos)
 Read in a collection of objects objs from file filename. 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

◆ create()

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

Singleton creation function.

Definition at line 26 of file ReaderAIDA.cc.

References YODA::Scatter2D::addPoint().

26  {
27  static ReaderAIDA _instance;
28  return _instance;
29  }

◆ read()

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.

Implements YODA::Reader.

Definition at line 22 of file ReaderAIDA.h.

22  {
23  _readDoc(stream, aos);
24  }

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