LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PrettifierAnnotated.h"
Public Types | |
using | key_t = std::string |
using | any_t = boost::any |
Public Member Functions | |
PrettifierAnnotated (unsigned initial_indent_level=0) | |
std::string | result () const |
void | do_enter_table (key_t const &k, any_t const &a) |
void | do_enter_sequence (key_t const &k, any_t const &a) |
void | do_atom (key_t const &k, any_t const &a) |
void | do_before_action (key_t const &k, any_t const &a, ParameterSet const *ps) |
void | do_after_action () |
void | do_exit_table (key_t const &k, any_t const &a) |
void | do_exit_sequence (key_t const &k, any_t const &a) |
Private Member Functions | |
void | before_action (key_t const &, any_t const &, ParameterSet const *) override |
void | after_action () override |
void | enter_table (key_t const &, any_t const &) override |
void | enter_sequence (key_t const &, any_t const &) override |
void | exit_table (key_t const &, any_t const &) override |
void | exit_sequence (key_t const &, any_t const &) override |
void | atom (key_t const &, any_t const &) override |
void | push_size_ (any_t const &) |
void | pop_size_ () |
Private Attributes | |
std::ostringstream | buffer_ |
Indentation | indent_ |
std::string | curr_info_ |
std::string | cached_info_ |
std::stack< std::size_t > | sequence_sizes_ |
std::size_t | curr_size_ |
Definition at line 107 of file PrettifierAnnotated.h.
|
inherited |
Definition at line 80 of file ParameterSetWalker.h.
|
inherited |
Definition at line 79 of file ParameterSetWalker.h.
PrettifierAnnotated::PrettifierAnnotated | ( | unsigned | initial_indent_level = 0 | ) |
Definition at line 11 of file PrettifierAnnotated.cc.
References cached_info_, curr_info_, curr_size_, and sequence_sizes_.
|
overrideprivatevirtual |
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 30 of file PrettifierAnnotated.cc.
References cached_info_, and curr_info_.
Referenced by result().
Implements fhicl::ParameterSetWalker.
Definition at line 76 of file PrettifierAnnotated.cc.
References buffer_, cached_info_, curr_info_, curr_size_, indent_, fhicl::detail::nl(), fhicl::detail::print_annotated_info(), fhicl::detail::atom::printed_prefix(), fhicl::detail::printed_suffix(), and fhicl::detail::atom::value().
Referenced by result().
|
overrideprivatevirtual |
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 22 of file PrettifierAnnotated.cc.
References curr_info_, and fhicl::ParameterSet::get_src_info().
Referenced by result().
|
inlineinherited |
Definition at line 104 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::after_action().
Referenced by fhicl::ParameterSet::walk().
Definition at line 93 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::atom().
Referenced by fhicl::ParameterSet::walk().
|
inlineinherited |
Definition at line 99 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::before_action().
Referenced by fhicl::ParameterSet::walk().
|
inlineinherited |
Definition at line 88 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::enter_sequence().
Referenced by fhicl::ParameterSet::walk().
Definition at line 83 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::enter_table().
Referenced by fhicl::ParameterSet::walk().
|
inlineinherited |
Definition at line 115 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::atom(), fhicl::ParameterSetWalker::enter_sequence(), fhicl::ParameterSetWalker::enter_table(), and fhicl::ParameterSetWalker::exit_sequence().
Referenced by fhicl::ParameterSet::walk().
Definition at line 110 of file ParameterSetWalker.h.
References fhicl::ParameterSetWalker::exit_table().
Referenced by fhicl::ParameterSet::walk().
|
overrideprivatevirtual |
Implements fhicl::ParameterSetWalker.
Definition at line 56 of file PrettifierAnnotated.cc.
References buffer_, cached_info_, curr_info_, indent_, fhicl::detail::nl(), fhicl::detail::print_annotated_info(), fhicl::detail::sequence::printed_prefix(), fhicl::detail::Indentation::push(), and push_size_().
Referenced by result().
Implements fhicl::ParameterSetWalker.
Definition at line 38 of file PrettifierAnnotated.cc.
References buffer_, cached_info_, curr_info_, indent_, fhicl::detail::nl(), fhicl::detail::print_annotated_info(), fhicl::detail::table::printed_prefix(), and fhicl::detail::Indentation::push().
Referenced by result().
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 65 of file PrettifierAnnotated.cc.
References buffer_, fhicl::detail::sequence::closing_brace(), curr_size_, indent_, fhicl::detail::nl(), fhicl::detail::Indentation::pop(), pop_size_(), and fhicl::detail::printed_suffix().
Referenced by result().
Reimplemented from fhicl::ParameterSetWalker.
Definition at line 46 of file PrettifierAnnotated.cc.
References buffer_, fhicl::detail::table::closing_brace(), curr_size_, indent_, fhicl::detail::nl(), fhicl::detail::Indentation::pop(), and fhicl::detail::printed_suffix().
Referenced by result().
|
private |
Definition at line 93 of file PrettifierAnnotated.cc.
References curr_size_, and sequence_sizes_.
Referenced by exit_sequence(), and result().
|
private |
Definition at line 86 of file PrettifierAnnotated.cc.
References curr_size_, and sequence_sizes_.
Referenced by enter_sequence(), and result().
|
inline |
Definition at line 112 of file PrettifierAnnotated.h.
References after_action(), atom(), before_action(), buffer_, enter_sequence(), enter_table(), exit_sequence(), exit_table(), pop_size_(), and push_size_().
|
private |
Definition at line 134 of file PrettifierAnnotated.h.
Referenced by atom(), enter_sequence(), enter_table(), exit_sequence(), exit_table(), and result().
|
private |
Definition at line 137 of file PrettifierAnnotated.h.
Referenced by after_action(), atom(), enter_sequence(), enter_table(), and PrettifierAnnotated().
|
private |
Definition at line 136 of file PrettifierAnnotated.h.
Referenced by after_action(), atom(), before_action(), enter_sequence(), enter_table(), and PrettifierAnnotated().
|
private |
Definition at line 139 of file PrettifierAnnotated.h.
Referenced by atom(), exit_sequence(), exit_table(), pop_size_(), PrettifierAnnotated(), and push_size_().
|
private |
Definition at line 135 of file PrettifierAnnotated.h.
Referenced by atom(), enter_sequence(), enter_table(), exit_sequence(), and exit_table().
|
private |
Definition at line 138 of file PrettifierAnnotated.h.
Referenced by pop_size_(), PrettifierAnnotated(), and push_size_().