LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
fhicl::detail::sequence 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::sequence::closing_brace ( )
inline
std::string fhicl::detail::sequence::opening_brace ( )
inline

Definition at line 49 of file printing_helpers.h.

50  {
51  return "[";
52  }
std::string fhicl::detail::sequence::printed_prefix ( std::string const &  key)

Definition at line 79 of file printing_helpers.cc.

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

Referenced by fhicl::detail::Prettifier::enter_sequence(), fhicl::detail::PrettifierAnnotated::enter_sequence(), and fhicl::detail::PrettifierPrefixAnnotated::enter_sequence().

80 {
81  std::string result{opening_brace()};
82  if (!is_sequence_element(key))
83  result = key + ": " + result;
84  return result;
85 }
bool is_sequence_element(std::string const &key)
std::string opening_brace()