Back to index

nordugrid-arc-nox  1.1.0~rc6
options.cpp
Go to the documentation of this file.
00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004 
00005 #include "options.h"
00006 
00007 namespace Arc {
00008 
00009   ServerOptions::ServerOptions()
00010     : OptionParser() {
00011 
00012     foreground = false;
00013     AddOption('f', "foreground", "run daemon in foreground", foreground);
00014     AddOption('c', "xml-config", "full path of XML config file", "path", xml_config_file);
00015     AddOption('i', "ini-config", "full path of InI config file", "path", ini_config_file);
00016     config_dump = false;
00017     AddOption('d', "config-dump", "dump generated XML config", config_dump);
00018     AddOption('p', "pid-file", "full path of pid file", "path", pid_file);
00019     AddOption('u', "user", "user name", "user", user);
00020     AddOption('g', "group", "group name", "group", group);
00021     AddOption('s', "schema", "full path of XML schema file", "path", schema_file);
00022     version = false;
00023     AddOption('v', "version", "print version information", version);
00024 #ifdef WIN32
00025     install = false;
00026     AddOption('a', "install", "install windows service", install);
00027     uninstall = false;
00028     AddOption('r', "uninstall", "uninstall windows service", uninstall);
00029 #endif
00030   }
00031 
00032 } // namespace Arc