The Gaudi Framework  master (37c0b60a)
Gaudi::Accumulators::details Namespace Reference

Namespaces

 MsgCounter
 

Classes

struct  CounterArrayInternal
 internal class implementing an array of counters More...
 
struct  FormatCounterDefault
 Default formating for counter names, only calling fmt::format on the text given at construction and passing the histo index as argument. More...
 
struct  FormatHistDefault
 Default formating for histogram names and title, only calling fmt::format on the text given at construction and passing the histo index as argument. More...
 
struct  HistogramArrayInternal
 internal class implementing an "array" of histograms More...
 

Functions

void requireValidTitle (std::string_view sv)
 

Function Documentation

◆ requireValidTitle()

void Gaudi::Accumulators::details::requireValidTitle ( std::string_view  sv)
inline

Definition at line 68 of file StaticHistogram.h.

68  {
69  if ( !sv.empty() && ( std::isspace( sv.back() ) || std::isspace( sv.front() ) ) ) {
70  throw GaudiException(
71  fmt::format( "Histogram title \'{}\' has whitespace at front or back -- please remove", sv ),
72  "Gaudi::Accumulators", StatusCode::FAILURE );
73  }
74  }
GaudiException
Definition: GaudiException.h:31
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
std::isspace
T isspace(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101