LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
verify_names.cc
Go to the documentation of this file.
3 
4 void
5 art::detail::verifyInstanceName(std::string const& instanceName)
6 {
7  if (instanceName.find('_') != std::string::npos) {
9  << "Instance name \"" << instanceName
10  << "\" is illegal: underscores are not permitted in instance names."
11  << '\n';
12  }
13 }
14 
15 void
16 art::detail::verifyFriendlyClassName(std::string const& fcn)
17 {
18  if (fcn.find('_') != std::string::npos) {
20  << "Class \"" << fcn
21  << "\" is not suitable for use as a product due to the presence of "
22  << "underscores which are not allowed anywhere in the class name "
23  << "(including namespace and enclosing classes).\n";
24  }
25 }
void verifyFriendlyClassName(std::string const &fcn)
Definition: verify_names.cc:16
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
void verifyInstanceName(std::string const &in)
Definition: verify_names.cc:5