00001 #ifndef _ROBOTXMLFILE_H 00002 #define _ROBOTXMLFILE_H 00003 00004 #include <map> 00005 #include <vector> 00006 #include "BaseXMLFile.h" 00007 #include "robotworld.h" 00008 00009 00010 class RobotXMLFile : public BaseXMLFile 00011 { 00012 public: 00013 RobotXMLFile(const std::string& filename); 00014 ~RobotXMLFile(); 00015 00016 std::string GetString(const std::string& path,const std::string& property = "value"); 00017 void GetMethods(std::map<std::string,int>& ); 00018 void GetVariables(std::vector<VARIABLE *>& ); 00019 00020 private: 00021 xmlNodePtr Find(xmlNodePtr base,const std::string& path); 00022 }; 00023 00024 00025 00026 00027 #endif // _ROBOTXMLFILE_H