Auxiliary class for printing objects in ASCII format using JRootWriter.
More...
#include <JRootPrinter.hh>
|
static JEquationParameters & | getEquationParameters () |
| Get equation parameters. More...
|
|
static void | setEquationParameters (const JEquationParameters &equation) |
| Set equation parameters. More...
|
|
static void | print (JRootWriter &writer, const JRootWritableClass &cls) |
| Write class contents to output. More...
|
|
template<class T > |
static void | print (std::ostream &out, const T &object, const std::string &key, const JEquationParameters ¶meters, const JRootDictionary_t &dictionary=JRootDictionary::getInstance()) |
| Write part of object to output using ROOT dictionary. More...
|
|
template<class T > |
static void | print (std::ostream &out, const T &object, const JEquationParameters ¶meters, const JRootDictionary_t &dictionary=JRootDictionary::getInstance()) |
| Write object to output using ROOT dictionary. More...
|
|
template<class T > |
static void | print (std::ostream &out, const T &object, const std::string &key, const JRootDictionary_t &dictionary=JRootDictionary::getInstance()) |
| Write part of object to output using ROOT dictionary. More...
|
|
template<class T > |
static void | print (std::ostream &out, const T &object, const JRootDictionary_t &dictionary=JRootDictionary::getInstance()) |
| Write object to output using ROOT dictionary. More...
|
|
Auxiliary class for printing objects in ASCII format using JRootWriter.
Definition at line 31 of file JRootPrinter.hh.
◆ getEquationParameters()
Get equation parameters.
- Returns
- equation parameters
Definition at line 37 of file JRootPrinter.hh.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
◆ setEquationParameters()
Set equation parameters.
- Parameters
-
equation | equation parameters |
Definition at line 50 of file JRootPrinter.hh.
static JEquationParameters & getEquationParameters()
Get equation parameters.
◆ print() [1/5]
Write class contents to output.
- Parameters
-
writer | ROOT writer |
cls | ROOT class |
Definition at line 62 of file JRootPrinter.hh.
const JRootDictionary_t & getDictionary() const
Get dictictionary.
JRootWriter & put(const T &object)
Write object according equation format.
JRootWriter & putObject(const T &object)
Write object.
bool is_valid() const
Check validity of this addressable class.
const char * getTypename() const
Get type name.
◆ print() [2/5]
Write part of object to output using ROOT dictionary.
- Parameters
-
out | output stream |
object | object |
key | data member name, optionally separated by division character |
parameters | equation parameters |
dictionary | dictionary |
Definition at line 83 of file JRootPrinter.hh.
94 for (string::size_type il = 0, ir = 0; ir != string::npos && cls.is_valid(); il = ir + 1) {
96 cls = cls.find(
trim(key.substr(il, ir - il)).c_str());
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
const char getDefaultDivision() const
Get default division character.
Exception for parsing value.
Implementation for ASCII output of objects with ROOT dictionary.
std::string trim(const std::string &buffer)
Trim string.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static void print(JRootWriter &writer, const JRootWritableClass &cls)
Write class contents to output.
ROOT class for writing object.
◆ print() [3/5]
Write object to output using ROOT dictionary.
- Parameters
-
out | output stream |
object | object |
parameters | equation parameters |
dictionary | dictionary |
Definition at line 121 of file JRootPrinter.hh.
◆ print() [4/5]
Write part of object to output using ROOT dictionary.
- Parameters
-
out | output stream |
object | object |
key | data member name, optionally separated by division character '.' |
dictionary | dictionary |
Definition at line 142 of file JRootPrinter.hh.
◆ print() [5/5]
Write object to output using ROOT dictionary.
- Parameters
-
out | output stream |
object | object |
dictionary | dictionary |
Definition at line 159 of file JRootPrinter.hh.
The documentation for this struct was generated from the following file: