00001
00002
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00031
00032 #ifndef RCSC_PARAM_RCSS_PARAM_PARSER_H
00033 #define RCSC_PARAM_RCSS_PARAM_PARSER_H
00034
00035 #include <rcsc/param/param_parser.h>
00036
00037 #include <string>
00038 #include <vector>
00039 #include <utility>
00040
00041 namespace rcsc {
00042
00047 class RCSSParamParser
00048 : public ParamParser {
00049 private:
00050 typedef std::vector< std::pair< std::string, std::string > > StrPairVec;
00051
00053 std::string M_param_name;
00054
00056 StrPairVec M_str_pairs;
00057
00059 RCSSParamParser();
00060 public:
00065 explicit
00066 RCSSParamParser( const char * msg );
00067
00074 bool parse( ParamMap & param_map );
00075
00076 private:
00077
00083 std::string cleanString( std::string str );
00084
00091 bool init( const char * msg );
00092 };
00093
00094 }
00095
00096 #endif