Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
static JRootWriterputObject (JRootWriter &writer, const T &object)
 Write object.
 
static JRootWriterput (JRootWriter &writer, const std::string &key, const T &value)
 Write given key and value according equation format.
 

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 594 of file JRootStreamer.hh.

Member Function Documentation

◆ getObject()

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 602 of file JRootStreamer.hh.

603 {
604 return reader.getObject(object);
605 }

◆ putObject()

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 615 of file JRootStreamer.hh.

616 {
617 return writer.putObject(object);
618 }

◆ put()

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 629 of file JRootStreamer.hh.

630 {
631 return writer.put(key, value);
632 }

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