Move initial TTY setup from validate() to Mote constructor
[remote/remote-mci.git] / diku_mcs / Configuration.h
blobdd5f88cb31b023a651512240807526da97bd56b2
1 #ifndef CONFIGURATION_H_
2 #define CONFIGURATION_H_
4 #ifdef HAVE_CONFIG_H
5 #include "config.h"
6 #endif
8 #include <iostream>
9 #include <fstream>
10 #include <boost/program_options.hpp>
12 namespace remote { namespace diku_mcs {
14 namespace po = boost::program_options;
16 /** Configuration handling
17 * This class reads options from a configuration file
18 * and from the command prompt.
20 class Configuration
22 public:
23 /** Read options from command line and configuration file
24 * @param argc Number of command line arguments
25 * @param argv string array of command line arguments
27 static void read(int argc, char **argv);
29 /** Print usage help for option group
30 * @param desc Option group for which to print help.
32 static void printHelp(po::options_description& desc);
34 /** Option variable map keyed by option name */
35 static po::variables_map vm;
40 #endif /* CONFIGURATION_H_ */