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

Functions

std::string bold_fontify (std::string const &s)
 
std::string translate (errors::error)
 

Function Documentation

std::string mf::detail::bold_fontify ( std::string const &  s)
inline

Definition at line 9 of file bold_fontify.h.

Referenced by mf::service::ELdestination::ELdestination().

10  {
11  return "\033[1m" + s + "\033[0m";
12  }
Float_t s
Definition: plot.C:23
std::string mf::detail::translate ( errors::error  code)

Definition at line 4 of file exception.cc.

References mf::errors::Configuration, mf::errors::LogicError, and mf::errors::OtherError.

5 {
6  switch (code) {
8  return "Configuration error";
10  return "Logic error";
12  return "Other error";
13  default:
14  return "Unknown code";
15  }
16 }