Jpp
Static Public Member Functions | List of all members
JROOT::JRootWriter::JHelper< T > Struct Template Reference

Helper class for user formatting. More...

#include <JRootStreamer.hh>

Inheritance diagram for JROOT::JRootWriter::JHelper< T >:
JROOT::JRootWriter::JDefaultHelper< T >

Static Public Member Functions

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::JRootWriter::JHelper< T >

Helper class for user formatting.

This class should be specialised for implementing a different format.

Definition at line 378 of file JRootStreamer.hh.

Member Function Documentation

◆ putObject()

template<class T >
static JRootWriter& JROOT::JRootWriter::JDefaultHelper< T >::putObject ( JRootWriter writer,
const T &  object 
)
inlinestaticinherited

Write object.

This method transfers the writing of the given object to the given ROOT writer.

Parameters
writerROOT writer
objectobject
Returns
ROOT writer

Definition at line 351 of file JRootStreamer.hh.

352  {
353  return writer.putObject(object);
354  }

◆ put()

template<class T >
static JRootWriter& JROOT::JRootWriter::JDefaultHelper< T >::put ( JRootWriter writer,
const std::string &  key,
const T &  value 
)
inlinestaticinherited

Write given key and value according equation format.

Parameters
writerROOT writer
keykey
valuevalue
Returns
ROOT writer

Definition at line 365 of file JRootStreamer.hh.

366  {
367  return writer.put(key, value);
368  }

The documentation for this struct was generated from the following file:
JROOT::JRootWriter::put
static JRootWriter & put(JRootWriter &writer, const std::string &key, const T &value)
Write given key and value according equation format.
Definition: JRootStreamer.hh:442
JROOT::JRootWriter::putObject
static JRootWriter & putObject(JRootWriter &writer, const T &object)
Write object.
Definition: JRootStreamer.hh:427