Jpp  15.0.1-rc.1-highQE
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
JROOT::JRootStreamer< T > Struct Template Reference

Auxiliary template class to define default implementation of the ROOT streamer. More...

#include <JRootStreamer.hh>

Static Public Member Functions

static JRootReadergetObject (JRootReader &reader, T &object)
 Read object. More...
 
static JRootWriterputObject (JRootWriter &writer, const T &object)
 Write object. More...
 
static JRootWriterput (JRootWriter &writer, const std::string &key, const T &value)
 Write given key and value according equation format. More...
 

Detailed Description

template<class T>
struct JROOT::JRootStreamer< T >

Auxiliary template class to define default implementation of the ROOT streamer.

This class transfers the I/O functionality to the JRootReader or JRootWriter class.
For a custom implementation of the I/O a given class, this class should be specialised.
The class should also be added to the dictionary in use (method JRootDictionary::add).

Definition at line 592 of file JRootStreamer.hh.

Member Function Documentation

template<class T >
static JRootReader& JROOT::JRootStreamer< T >::getObject ( JRootReader reader,
T object 
)
inlinestatic

Read object.

Parameters
readerROOT reader
objectobject
Returns
ROOT reader

Definition at line 600 of file JRootStreamer.hh.

601  {
602  return reader.getObject(object);
603  }
JRootReader & getObject(T &object)
Read object.
template<class T >
static JRootWriter& JROOT::JRootStreamer< T >::putObject ( JRootWriter writer,
const T object 
)
inlinestatic

Write object.

Parameters
writerROOT writer
objectobject
Returns
ROOT writer

Definition at line 613 of file JRootStreamer.hh.

614  {
615  return writer.putObject(object);
616  }
JRootWriter & putObject(const T &object)
Write object.
template<class T >
static JRootWriter& JROOT::JRootStreamer< T >::put ( JRootWriter writer,
const std::string &  key,
const T value 
)
inlinestatic

Write given key and value according equation format.

Parameters
writerROOT writer
keykey
valuevalue
Returns
ROOT writer

Definition at line 627 of file JRootStreamer.hh.

628  {
629  return writer.put(key, value);
630  }
JRootWriter & put(const T &object)
Write object according equation format.

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