The Gaudi Framework  v39r0 (5b8b5eda)
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 67 of file StaticHistogram.h.

67  {
68  if ( !sv.empty() && ( std::isspace( sv.back() ) || std::isspace( sv.front() ) ) ) {
69  throw GaudiException(
70  fmt::format( "Histogram title \'{}\' has whitespace at front or back -- please remove", sv ),
71  "Gaudi::Accumulators", StatusCode::FAILURE );
72  }
73  }
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