]> git.mxchange.org Git - simgear.git/blobdiff - simgear/xml/easyxml.hxx
HTTP: Rename urlretrieve/urlload to save/load.
[simgear.git] / simgear / xml / easyxml.hxx
index d59d371b0022e413937d1ce77f23f9fb4170a0d6..6356901bd53b00abd1d58acab11f6fbde2692258 100644 (file)
@@ -15,9 +15,9 @@
 #include <string>
 #include <vector>
 
-SG_USING_STD(istream);
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::istream;
+using std::string;
+using std::vector;
 
 
 /**
@@ -223,6 +223,24 @@ private:
   vector<string> _atts;
 };
 
+////////////////////////////////////////////////////////////////////////
+// Attribute list wrapper for Expat.
+////////////////////////////////////////////////////////////////////////
+
+class ExpatAtts : public XMLAttributes
+{
+public:
+  ExpatAtts (const char ** atts) : _atts(atts) {}
+  
+  virtual int size () const;
+  virtual const char * getName (int i) const;
+  virtual const char * getValue (int i) const;
+  
+  virtual const char * getValue (const char * name) const;
+private:
+  const char ** _atts;
+};
+
 
 /**
  * Visitor class for an XML document.