LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
get-loadable-libraries.cc File Reference
#include "cetlib/loadable_libraries.h"
#include <iostream>
#include <string>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 12 of file get-loadable-libraries.cc.

References message().

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 }
void message(RunManager *runmanager)
Definition: ts_scorers.cc:74