00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "Parse.h"
00025 #include "Configuration.h"
00026
00027
00028
00029
00030 Configuration::Configuration(const std::string& filename)
00031 :BaseXMLFile(filename, "", "configuration")
00032 {
00033 }
00034
00035
00036 Configuration::~Configuration()
00037 {
00038 }
00039
00040
00041 xmlNodePtr Configuration::Find(xmlNodePtr base,const std::string& path)
00042 {
00043 Parse pa(path,"/");
00044 std::string ord = pa.getword();
00045 std::string str = pa.getrest();
00046 xmlNodePtr p = GetFirstElement(base,ord);
00047 if (p && str.size())
00048 {
00049 return Find(p,str);
00050 }
00051 return p;
00052 }
00053
00054