LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
fhicl::detail::table Namespace Reference

Functions

std::string opening_brace ()
 
std::string closing_brace ()
 
std::string printed_prefix (std::string const &key)
 

Function Documentation

std::string fhicl::detail::table::closing_brace ( )
inline
std::string fhicl::detail::table::opening_brace ( )
inline

Definition at line 35 of file printing_helpers.h.

Referenced by printed_prefix(), and fhicl::detail::sequence::printed_prefix().

36  {
37  return "{";
38  }
std::string fhicl::detail::table::printed_prefix ( std::string const &  key)

Definition at line 67 of file printing_helpers.cc.

References fhicl::detail::is_sequence_element(), and opening_brace().

Referenced by closing_brace(), fhicl::detail::sequence::closing_brace(), fhicl::detail::Prettifier::enter_table(), fhicl::detail::PrettifierAnnotated::enter_table(), and fhicl::detail::PrettifierPrefixAnnotated::enter_table().

68 {
69  std::string result{opening_brace()};
70  if (!is_sequence_element(key))
71  result = key + ": " + result;
72  return result;
73 }
bool is_sequence_element(std::string const &key)
std::string opening_brace()