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.
Get equation parameters.
- Returns
- equation parameters
Definition at line 37 of file JRootPrinter.hh.
39 static JEquationParameters equation(
"=",
"\n",
".",
"");
Set equation parameters.
- Parameters
-
equation | equation parameters |
Definition at line 50 of file JRootPrinter.hh.
static JEquationParameters & getEquationParameters()
Get equation parameters.
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.
const char * getTypename() const
Get type name.
JRootWriter & putObject(const T &object)
Write object.
bool is_valid() const
Check validity of this addressable class.
JRootWriter & put(const T &object)
Write object according equation format.
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) {
95 ir = key.substr(il).find(
parameters.getDefaultDivision());
96 cls = cls.find(
trim(key.substr(il, ir - il)).c_str());
107 THROW(JParseError,
"Invalid key " << key);
Implementation for ASCII output of objects with ROOT dictionary.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
std::string trim(const std::string &buffer)
Trim string.
static void print(JRootWriter &writer, const JRootWritableClass &cls)
Write class contents to output.
ROOT class for writing object.
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.
Implementation for ASCII output of objects with ROOT dictionary.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
static void print(JRootWriter &writer, const JRootWritableClass &cls)
Write class contents to output.
ROOT class for writing object.
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.
static JEquationParameters & getEquationParameters()
Get equation parameters.
static void print(JRootWriter &writer, const JRootWritableClass &cls)
Write class contents to output.
Write object to output using ROOT dictionary.
- Parameters
-
out | output stream |
object | object |
dictionary | dictionary |
Definition at line 159 of file JRootPrinter.hh.
static JEquationParameters & getEquationParameters()
Get equation parameters.
static void print(JRootWriter &writer, const JRootWritableClass &cls)
Write class contents to output.
The documentation for this struct was generated from the following file: