]> granicus.if.org Git - icinga2/commitdiff
Made type and attribute names case-insensitive.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 23 Oct 2012 13:57:45 +0000 (15:57 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 23 Oct 2012 13:57:45 +0000 (15:57 +0200)
Fixes #3223

lib/base/dynamicobject.h
lib/base/i2-base.h

index af22062f93ca684767a2dbf5cc5dd264d1b2f891..651d7cc2eba7eca100abc84cbef2decdc1941f61 100644 (file)
@@ -74,11 +74,11 @@ public:
 
        typedef function<DynamicObject::Ptr (const Dictionary::Ptr&)> Factory;
 
-       typedef map<String, Factory> ClassMap;
-       typedef map<String, DynamicObject::Ptr> NameMap;
-       typedef map<String, NameMap> TypeMap;
+       typedef map<String, Factory, boost::algorithm::is_iless> ClassMap;
+       typedef map<String, DynamicObject::Ptr, boost::algorithm::is_iless> NameMap;
+       typedef map<String, NameMap, boost::algorithm::is_iless> TypeMap;
 
-       typedef map<String, DynamicAttribute> AttributeMap;
+       typedef map<String, DynamicAttribute, boost::algorithm::is_iless> AttributeMap;
        typedef AttributeMap::iterator AttributeIterator;
        typedef AttributeMap::const_iterator AttributeConstIterator;
 
index 20d0a5b61ad30d296656917199f6e5f2feddf7d8..f4668b6017903e4c683ac5c1af8ea7ec72bfa7db 100644 (file)
@@ -123,6 +123,7 @@ using std::type_info;
 #include <boost/signal.hpp>
 #include <boost/algorithm/string/trim.hpp>
 #include <boost/algorithm/string/split.hpp>
+#include <boost/algorithm/string/compare.hpp>
 #include <boost/thread.hpp>
 #include <boost/variant.hpp>
 #include <boost/lexical_cast.hpp>