Implementation for Head output of JHead objects with ROOT dictionary.
More...
#include <JHeadWriter.hh>
Implementation for Head output of JHead objects with ROOT dictionary.
Definition at line 28 of file JHeadWriter.hh.
Constructor.
- Parameters
-
header | header output |
parameters | equation parameters |
dictionary | dictionary |
Definition at line 40 of file JHeadWriter.hh.
*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
JRootWriter(std::ostream &out, const JEquationParameters ¶meters, const JRootDictionary_t &dictionary)
Constructor.
const JRootDictionary_t & dictionary
static JNullStream null
Null I/O stream.
Write equation.
- Parameters
-
- Returns
- this ROOT writer
Reimplemented from JROOT::JRootWriter.
Definition at line 54 of file JHeadWriter.hh.
58 string key = equation.getKey();
61 key =
getTag(equation.getKey(), i);
64 header[key] = equation.getValue();
std::string getTag(const std::string &tag)
Get tag without aanet extension "_<counter>" for identical tags.
Get dictictionary.
- Returns
- dictionary
Definition at line 323 of file JRootStreamer.hh.
const JRootDictionary_t & dictionary
Write object according equation format.
- Parameters
-
- Returns
- this ROOT writer
Definition at line 336 of file JRootStreamer.hh.
JRootWriter & put(const T &object)
Write object according equation format.
ROOT class for writing object.
Write given key and value according equation format.
- Parameters
-
- Returns
- this ROOT writer
Definition at line 350 of file JRootStreamer.hh.
358 JRedirectStream redirect(*
this, os);
363 return this->
put(JEquation(key, os.str()));
JRootWriter & putObject(const T &object)
Write object.
JRootWriter & put(const T &object)
Write object according equation format.
Write ROOT class according equation format.
- Parameters
-
- Returns
- this ROOT writer
Definition at line 373 of file JRootStreamer.hh.
375 return this->
put(
"", cls,
false);
JRootWriter & put(const T &object)
Write object according equation format.
Write ROOT class according equation format.
- Parameters
-
- Returns
- this ROOT writer
Definition at line 385 of file JRootStreamer.hh.
387 return this->
put(const_cast<const JRootWritableClass&>(cls));
JRootWriter & put(const T &object)
Write object according equation format.
Write ROOT class according equation format.
- Parameters
-
prefix | prefix |
cls | ROOT class |
eol | end-of-line |
- Returns
- object output
Definition at line 399 of file JRootStreamer.hh.
406 const JEquationFacet& facet = use_facet<JEquationFacet>(this->getloc());
412 i->second->put(*
this, prefix, cls.
getAddress());
419 JRedirectStream redirect(*
this, os);
424 this->
put(JEquation(prefix, os.str()));
426 }
else if (cls.
getClass() != NULL) {
428 if (cls.
getClass()->GetListOfBases() != NULL) {
430 TIterator* i = cls.
getClass()->GetListOfBases()->MakeIterator();
432 for (
const TBaseClass* p; (p = (
const TBaseClass*) i->Next()) != NULL; ) {
433 this->
put(prefix, cls.
get(*p),
false);
437 if (cls.
getClass()->GetListOfDataMembers() != NULL) {
439 TIterator* i = cls.
getClass()->GetListOfDataMembers()->MakeIterator();
441 for (
const TDataMember* p; (p = (
const TDataMember*) i->Next()) != NULL; ) {
443 this->
put(facet.getPrefix(prefix,p->GetName()), cls.
get(*p),
false);
const JRootDictionary_t & getDictionary() const
Get dictictionary.
const char * getTypename() const
Get type name.
JRootWriter & putObject(const T &object)
Write object.
pointer_type getAddress() const
Get address.
JRootAddressableClass get(const TDataMember &data_member) const
Get addressable class of given data member.
bool is_valid() const
Check validity of this addressable class.
TClass * getClass() const
Get class.
JRootWriter & put(const T &object)
Write object according equation format.
static bool is_static(const TDataMember &data_member)
Check if data member is static.
template<class T >
JRootWriter& JROOT::JRootWriter::putObject |
( |
const T & |
object | ) |
|
|
inlineinherited |
Write object.
- Parameters
-
- Returns
- this ROOT writer
Definition at line 475 of file JRootStreamer.hh.
JRootWriter & putObject(const T &object)
Write object.
Test availability of stream operators.
Write ROOT class.
- Parameters
-
- Returns
- object output
Definition at line 487 of file JRootStreamer.hh.
497 i->second->putObject(*
this, cls.
getAddress());
499 }
else if (cls.
getClass() != NULL) {
501 if (cls.
getClass()->GetListOfBases() != NULL) {
503 TIterator* i = cls.
getClass()->GetListOfBases()->MakeIterator();
505 for (
const TBaseClass* p; (p = (
const TBaseClass*) i->Next()) != NULL; ) {
510 if (cls.
getClass()->GetListOfDataMembers() != NULL) {
512 TIterator* i = cls.
getClass()->GetListOfDataMembers()->MakeIterator();
514 for (
const TDataMember* p; (p = (
const TDataMember*) i->Next()) != NULL; ) {
const JRootDictionary_t & getDictionary() const
Get dictictionary.
const char * getTypename() const
Get type name.
JRootWriter & putObject(const T &object)
Write object.
pointer_type getAddress() const
Get address.
JRootAddressableClass get(const TDataMember &data_member) const
Get addressable class of given data member.
bool is_valid() const
Check validity of this addressable class.
TClass * getClass() const
Get class.
static bool is_static(const TDataMember &data_member)
Check if data member is static.
Head& JAANET::JHeadWriter::header |
|
private |
The documentation for this struct was generated from the following file: