00001 #ifndef __LOGCONFIGPARSER_H__ 00002 #define __LOGCONFIGPARSER_H__ 00003 00004 #include "../util/RuleSet.h" 00005 00006 namespace oasys { 00007 00008 class LogConfigParser { 00009 public: 00010 struct Option { 00011 const char* option_str_; 00012 int flag_value_; 00013 }; 00014 00022 LogConfigParser(const char* filename, RuleSet* rs, Option* opts); 00023 00027 int parse(); 00028 00032 int flags() { return flags_; } 00033 00034 private: 00035 const char* filename_; 00036 RuleSet* rs_; 00037 Option* opts_; 00038 int flags_; 00039 }; 00040 00041 } // namespace oasys 00042 00043 #endif /* __LOGCONFIGPARSER_H__ */