8#include <daq/slc/nsm/nsm_read_argv.h>
19 int nsm_read_argv(
int argc,
const char** argv,
20 int (*help)(
const char** argv),
char** argv_in,
21 ConfigFile& config, std::string& name,
22 std::string& username,
int nargv)
26 username = getenv(
"USER");
27 for (
int i = 0; i < argc; i++) {
28 if (strcmp(argv[i],
"-g") == 0) {
30 }
else if (strcmp(argv[i],
"-h") == 0) {
32 }
else if (strcmp(argv[i],
"-c") == 0) {
33 if (i + 1 < argc && argv[i + 1][0] !=
'-') {
37 }
else if (strcmp(argv[i],
"-n") == 0) {
38 if (i + 1 < argc && argv[i + 1][0] !=
'-') {
43 argv_in[argc_in] =
new char[100];
44 strcpy(argv_in[argc_in], argv[i]);
48 if (argc_in < nargv) {
Abstract base class for different kinds of events.