NERsuite  1.1.1
src/correct_mp/opt_parser/opt_parser.h
00001 //
00002 //
00003 //
00004 
00005 
00006 #ifndef _H_OPTION_PARSER_
00007 #define _H_OPTION_PARSER_
00008 
00009 
00010 using namespace std;
00011 
00012 #include <iostream>
00013 #include <string>
00014 #include <map>
00015 
00016 
00017 class OPTION_PARSER {
00018 private:
00019         map<string, string>             opts;
00020         
00021 public: 
00022         int parse( int argc, char* argv[] );            // parse an option array and store them in the opts map
00023         bool required(string req_opt_codes[], int n_opts);              // check whether the required options exist or not
00024         string get_opt(char* opt_code);         // return the opt_value corresponding to the opt_code
00025         
00026 };
00027 
00028 #endif
00029 
 All Classes Functions Variables