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

JObjectStreamer class. More...

#include <JRootStreamer.hh>

Inheritance diagram for JROOT::JObjectStreamer< T >:
JROOT::JAbstractStreamer

Public Member Functions

virtual JRootReadergetObject (JRootReader &in, void *address) const
 Stream input. More...
 
virtual JRootWriterputObject (JRootWriter &out, const void *address) const
 Stream output. More...
 
virtual JRootWriterput (JRootWriter &out, const std::string &prefix, const void *address) const
 Stream output. More...
 

Detailed Description

template<class T>
class JROOT::JObjectStreamer< T >

JObjectStreamer class.

This class implements the JROOT::JAstractStreamer interface for the given template class.
The I/O functionality is transferred first to the JRootStreamer class and subsequently -by default- to the JRootReader and JRootWriter class.

Definition at line 642 of file JRootStreamer.hh.

Member Function Documentation

template<class T >
virtual JRootReader& JROOT::JObjectStreamer< T >::getObject ( JRootReader in,
void *  address 
) const
inlinevirtual

Stream input.

Parameters
inobject reader
addresspointer to object
Returns
object reader

Implements JROOT::JAbstractStreamer.

Definition at line 653 of file JRootStreamer.hh.

654  {
655  return JRootStreamer<T>::getObject(in, * ((T*) address));
656  }
static JRootReader & getObject(JRootReader &reader, T &object)
Read object.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
template<class T >
virtual JRootWriter& JROOT::JObjectStreamer< T >::putObject ( JRootWriter out,
const void *  address 
) const
inlinevirtual

Stream output.

Parameters
outobject writer
addresspointer to object
Returns
object writer

Implements JROOT::JAbstractStreamer.

Definition at line 666 of file JRootStreamer.hh.

667  {
668  return JRootStreamer<T>::putObject(out, * ((const T*) address));
669  }
do set_variable OUTPUT_DIRECTORY $WORKDIR T
static JRootWriter & putObject(JRootWriter &writer, const T &object)
Write object.
template<class T >
virtual JRootWriter& JROOT::JObjectStreamer< T >::put ( JRootWriter out,
const std::string &  prefix,
const void *  address 
) const
inlinevirtual

Stream output.

Parameters
outobject writer
prefixprefix
addresspointer to object
Returns
object writer

Implements JROOT::JAbstractStreamer.

Definition at line 680 of file JRootStreamer.hh.

681  {
682  return JRootStreamer<T>::put(out, prefix, * ((const T*) address));
683  }
do set_variable OUTPUT_DIRECTORY $WORKDIR T
static JRootWriter & put(JRootWriter &writer, const std::string &key, const T &value)
Write given key and value according equation format.

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