speedup a little the parser by converting gccXML ID attributes to numbers, instead of storing them as strings; remove 2nd argument to GetAttribute() calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-03-23 00:08:44 +00:00
parent de948fb369
commit fdd4a8974a
3 changed files with 84 additions and 55 deletions

View File

@@ -253,11 +253,13 @@ protected:
};
#if 1
WX_DECLARE_STRING_HASH_MAP( wxString, wxStringHashMap );
WX_DECLARE_HASH_MAP( unsigned long, wxString,
wxIntegerHash, wxIntegerEqual,
wxTypeIdHashMap );
#else
#include <map>
typedef std::basic_string<char> stlString;
typedef std::map<stlString, stlString> wxStringHashMap;
typedef std::map<unsigned long, stlString> wxTypeIdHashMap;
#endif
@@ -280,7 +282,7 @@ public:
bool Parse(const wxString& filename);
bool ParseMethod(const wxXmlNode *p,
const wxStringHashMap& types,
const wxTypeIdHashMap& types,
wxMethod& m);
};