ELdestConfigCheck.h
Go to the documentation of this file.
1 #ifndef messagefacility_MessageService_ELdestConfigCheck_h
2 #define messagefacility_MessageService_ELdestConfigCheck_h
3 
7 
8 #include <set>
9 #include <string>
10 
11 namespace mf {
12  namespace service {
13  namespace ELdestConfig {
14 
16 
17  inline void
19  {
20  if (configuration != STATISTICS)
21  return;
22 
23  // Check for ostream-supported types for statistics
24  if (!cet::search_all(std::set<std::string>{"cout", "cerr", "file"},
25  type)) {
27  << "\n"
28  << "Unsupported type [ " << type
29  << " ] chosen for statistics printout.\n"
30  << "Must choose ostream type: \"cout\", \"cerr\", or \"file\""
31  << "\n";
32  }
33  }
34 
35  } // end of namespace ELdestConfig
36  } // end of namespace service
37 } // namespace mf
38 
39 #endif /* messagefacility_MessageService_ELdestConfigCheck_h */
40 
41 // Local Variables:
42 // mode: c++
43 // End:
std::string string
Definition: nybbler.cc:12
void checkType(std::string const &type, dest_config const configuration)
cet::coded_exception< errors::error, detail::translate > Exception
Definition: exception.h:16
bool search_all(FwdCont const &, Datum const &)