Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Simple XML keymap parser
Re: Simple XML keymap parser [message #24539 is a reply to message #24531] Sat, 23 January 2010 18:03 Go to previous messageGo to previous message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
It is usful to me.
Thanks for your sharing, Sc0rch

BTW,one member function of first version of the Simple XML keymap parser,

inline bool XMLConfig::Load(const String& path){
if (!FileExists(path))
return false;

Path = path;
return path == "Default" ? LoadFromXMLFile(*this) : LoadFromXMLFile(*this, path);
}


should be

inline bool XMLConfig::Load(const String& path){
if ( path != "Default" && !FileExists(path) )
return false;

Path = path;
return path == "Default" ? LoadFromXMLFile(*this) : LoadFromXMLFile(*this, path);
}

right? Very Happy

[Updated on: Sat, 23 January 2010 18:09]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GetUppFromDir - Creates Upp package for given directory
Next Topic: New Bazaar web page
Goto Forum:
  


Current Time: Thu May 09 15:11:22 CEST 2024

Total time taken to generate the page: 0.02505 seconds