Jpp
19.1.0
the software that should make you happy
|
Implementation for ASCII output of objects with ROOT dictionary. More...
#include <JRootStreamer.hh>
Public Member Functions | |
JRootWriter (std::ostream &out, const JEquationParameters ¶meters, const JRootDictionary_t &dictionary) | |
Constructor. More... | |
const JRootDictionary_t & | getDictionary () const |
Get dictictionary. More... | |
template<class T > | |
JRootWriter & | put (const T &object) |
Write object according equation format. More... | |
template<class T > | |
JRootWriter & | put (const std::string &key, const T &value) |
Write given key and value according equation format. More... | |
JRootWriter & | put (const JRootWritableClass &cls) |
Write ROOT class according equation format. More... | |
JRootWriter & | put (JRootWritableClass &cls) |
Write ROOT class according equation format. More... | |
JRootWriter & | put (const std::string &prefix, const JRootWritableClass &cls, bool eol) |
Write ROOT class according equation format. More... | |
virtual JRootWriter & | put (const JEquation &equation) |
Write equation. More... | |
template<class T > | |
JRootWriter & | putObject (const T &object) |
Write object. More... | |
JRootWriter & | putObject (const JRootWritableClass &cls) |
Write ROOT class. More... | |
Private Member Functions | |
template<class T > | |
JRootWriter & | putObject (const T &object, const JBool< true > &option) |
Write object. More... | |
template<class T > | |
JRootWriter & | putObject (const T &object, const JBool< false > &option) |
Write object. More... | |
template<class JElement_t , class JAllocator_t > | |
JRootWriter & | putObject (const std::vector< JElement_t, JAllocator_t > &object, const JBool< false > option) |
Write object. More... | |
Private Attributes | |
const JRootDictionary_t & | dictionary |
std::ios & | __from |
std::ios & | __to |
Implementation for ASCII output of objects with ROOT dictionary.
The method JRootWriter::put is compatible with equation formatting, i.e:
<key>[<division><key>]<separator><value>[<white space><value>]*<end of line>
In this, the key corresponds to the name of a data member which can be recursively parsed via a division character.
The method JRootWriter::putObject relates to simple formatting, i.e:
<value>[<white space><value>]*
The default format for output of std::vector<T>
is
<number of elements>[<white space><value>]*
Definition at line 292 of file JRootStreamer.hh.
|
inline |
Constructor.
out | output stream |
parameters | equation parameters |
dictionary | dictionary |
Definition at line 304 of file JRootStreamer.hh.
|
inline |
|
inline |
Write object according equation format.
object | object |
Definition at line 337 of file JRootStreamer.hh.
|
inline |
Write given key and value according equation format.
key | key |
value | value |
Definition at line 351 of file JRootStreamer.hh.
|
inline |
Write ROOT class according equation format.
cls | ROOT class |
Definition at line 374 of file JRootStreamer.hh.
|
inline |
Write ROOT class according equation format.
cls | ROOT class |
Definition at line 386 of file JRootStreamer.hh.
|
inline |
Write ROOT class according equation format.
prefix | prefix |
cls | ROOT class |
eol | end-of-line |
Definition at line 400 of file JRootStreamer.hh.
|
inlinevirtual |
Write equation.
equation | equation |
Reimplemented in JAANET::JHeadWriter.
Definition at line 461 of file JRootStreamer.hh.
|
inline |
Write object.
object | object |
Definition at line 476 of file JRootStreamer.hh.
|
inline |
Write ROOT class.
cls | ROOT class |
Definition at line 488 of file JRootStreamer.hh.
|
inlineprivate |
Write object.
object | object |
option | true |
Definition at line 536 of file JRootStreamer.hh.
|
inlineprivate |
Write object.
object | object |
option | false |
Definition at line 555 of file JRootStreamer.hh.
|
inlineprivate |
Write object.
object | object |
option | false |
Definition at line 569 of file JRootStreamer.hh.
|
private |
Definition at line 581 of file JRootStreamer.hh.
|
privateinherited |
Definition at line 67 of file JStreamState.hh.
|
privateinherited |
Definition at line 68 of file JStreamState.hh.