Functions
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.

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 }
std::string string
Definition: nybbler.cc:12
void loadable_libraries(std::ostream &os, std::string const &spec, std::string const &suffix)