LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
get-loadable-libraries.cc
Go to the documentation of this file.
1 #include "cetlib/loadable_libraries.h"
2 
3 #include <iostream>
4 #include <string>
5 
6 namespace {
7  std::string const message{"message"};
8  std::string const scheduler{"scheduler"};
9 }
10 
11 int
12 main(int argc, char** argv)
13 {
14  if (argc < 2 || argc > 3) {
15  return 1;
16  }
17  std::string const suffix{argv[1]};
18  std::string const spec{argc == 2 ? "" : argv[2]};
19  cet::loadable_libraries(std::cout, spec, suffix);
20  if (suffix.find("service") == std::string::npos)
21  return 0;
22 
23  // Special cases that are not services, per se, but nonetheless are
24  // configured in the services configuration table.
25  if (message.find(spec) == 0) {
26  std::cout << "message\n";
27  }
28  if (scheduler.find(spec) == 0) {
29  std::cout << "scheduler\n";
30  }
31 }
int main(int argc, char **argv)
void message(RunManager *runmanager)
Definition: ts_scorers.cc:74