Classes | Functions
cet::detail Namespace Reference

Classes

struct  must_have_id
 
class  ostream_handle_base
 
class  ostream_observer
 
class  ostream_owner
 
struct  pow
 
struct  pow< 0u, T, 0u >
 
struct  pow< 1u, T, 1u >
 
struct  pow< 2u, T, 0u >
 
struct  pow< N, T, 0u >
 
struct  pow< N, T, 1u >
 

Functions

bool is_quoted_string (std::string const &s, char quot)
 
search_path plugin_search_path ()
 
search_path plugin_search_path (search_path sp)
 
void wrapLibraryManagerException (cet::exception const &e, std::string const &item_type, std::string const &libspec, std::string const &release)
 

Function Documentation

bool cet::detail::is_quoted_string ( std::string const &  s,
char  quot 
)

Definition at line 104 of file canonical_string.cc.

105 {
106  bool result = false;
107  auto const sz = s.size();
108  if ((sz >= 2) && (s[0] == quot) && (s.back() == quot)) {
109  result = true;
110  }
111  return result;
112 }
static QCString result
uint size() const
Definition: qcstring.h:201
static QCString * s
Definition: config.cpp:1042
cet::search_path cet::detail::plugin_search_path ( )

Definition at line 41 of file plugin_search_path.cc.

42 {
43  return plugin_search_path(search_path{plugin_libpath(), std::nothrow});
44 }
constexpr char const * plugin_libpath()
search_path plugin_search_path()
cet::search_path cet::detail::plugin_search_path ( search_path  sp)

Definition at line 47 of file plugin_search_path.cc.

48 {
49  if (sp.showenv() == plugin_libpath() &&
50  std::getenv(plugin_libpath()) == nullptr) {
51  sp = search_path{os_libpath()};
52  } else {
53  prepend_path_to_os_libpath(sp);
54  }
55  return sp;
56 }
constexpr char const * os_libpath()
Definition: os_libpath.h:12
constexpr char const * plugin_libpath()
std::string getenv(std::string const &name)
Definition: getenv.cc:15
void cet::detail::wrapLibraryManagerException ( cet::exception const &  e,
std::string const &  item_type,
std::string const &  libspec,
std::string const &  release 
)

Definition at line 5 of file wrapLibraryManagerException.cc.

9 {
10  if (e.category() == "LogicError") {
11  // Re-throw.
12  throw;
13  } else {
14  // Wrap and throw.
15  throw exception("Configuration", std::string("Unknown") + item_type, e)
16  << item_type + " " << libspec << " with version " << release
17  << " was not registered.\n"
18  << "Perhaps your plugin type is misspelled "
19  << "or is not a plugin recognized by this\n"
20  << "system.\n";
21  }
22 }
std::string string
Definition: nybbler.cc:12
const double e
string release
Definition: conf.py:24
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33