Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 375 of file JRootStreamer.hh.

Member Function Documentation

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 JRootWriter.

Parameters
writerROOT writer
objectobject
Returns
ROOT writer

Definition at line 348 of file JRootStreamer.hh.

349  {
350  return writer.putObject(object);
351  }
static JRootWriter & putObject(JRootWriter &writer, const T &object)
Write object.
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 362 of file JRootStreamer.hh.

363  {
364  return writer.put(key, value);
365  }
static JRootWriter & put(JRootWriter &writer, const std::string &key, const T &value)
Write given key and value according equation format.

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