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 » Community » U++ community news and announcements » .ini file helpers
Re: .ini file helpers [message #36841 is a reply to message #36837] Wed, 11 July 2012 10:12 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
mirek wrote on Tue, 10 July 2012 22:19

INI_* are just top-level encapsulation for GetIniKey.
Could you please explain that? I don't see any relation between these two things. (Maybe I'm just blind Smile )
[/quote]

Well, there is something like key=value type of configuration file which we want to support. We want to support reading such files and obtaining values for specific keys. Hence GetIniKey.

On higher level, we would like framework to perhaps take care about some of these values - parse the Value for appropriate type, store into global variable. That is INI_* stuff.

Quote:


mirek wrote on Tue, 10 July 2012 22:19

How about this:

void ReloadIniFile()
{
	s_ini_loaded = false;
}

void SetIniFile(const char *name) {
	Mutex::Lock __(sMtx);
	strcpy(sIniFile, name);
	ReloadIniFile();
}

Ok, that would work too Smile



Unfortunately, it is not that simple - we are using ONCELOCK_(loaded) in Ini variables, will need some more adjusting (as would need your version).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIDE now supports JavaScript syntax highlighting for .js file extension
Next Topic: GetIniKey is now disallowed when APP_MAIN is not running
Goto Forum:
  


Current Time: Wed May 15 17:47:36 CEST 2024

Total time taken to generate the page: 0.02899 seconds