#include <string>
#include <vector>
-#include <unordered_map>
+#include <map>
#include <cstdio>
#include <cstdarg>
typedef std::vector<XMLProperty*> XMLPropertyList;
typedef XMLPropertyList::iterator XMLPropertyIterator;
typedef XMLPropertyList::const_iterator XMLPropertyConstIterator;
-typedef std::unordered_map<std::string, XMLProperty*> XMLPropertyMap;
+typedef std::map<std::string, XMLProperty*> XMLPropertyMap;
class LIBPBD_API XMLTree {
public:
XMLNode::property(const char* n)
{
string ns(n);
- unordered_map<string,XMLProperty*>::iterator iter;
+ map<string,XMLProperty*>::iterator iter;
if ((iter = _propmap.find(ns)) != _propmap.end()) {
return iter->second;
XMLProperty*
XMLNode::property(const string& ns)
{
- unordered_map<string,XMLProperty*>::iterator iter;
+ map<string,XMLProperty*>::iterator iter;
if ((iter = _propmap.find(ns)) != _propmap.end()) {
return iter->second;
XMLNode::add_property(const char* n, const string& v)
{
string ns(n);
- unordered_map<string,XMLProperty*>::iterator iter;
+ map<string,XMLProperty*>::iterator iter;
if ((iter = _propmap.find(ns)) != _propmap.end()) {
iter->second->set_value (v);