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

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...
 
Index mkIndex (std::istream &stream)
 Not implemented. More...
 
- Public Member Functions inherited from YODA::Reader
virtual ~Reader ()
 Virtual destructor. More...
 
Index mkIndex (const std::string &filename)
 Make file index. 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 17 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  }

◆ mkIndex()

Index YODA::ReaderAIDA::mkIndex ( std::istream &  stream)
inlinevirtual

Not implemented.

Implements YODA::Reader.

Definition at line 28 of file ReaderAIDA.h.

28  {
29  // Not supported
30  return Index();
31  }

◆ 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 23 of file ReaderAIDA.h.

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

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