On Sat, 18 May 2002, Ignacio J. Ortega wrote: > I need to read arbitrary files as maps, to reproduce a capability from > i_r.dll in jk1, > I just need to get rid of the cfg dependency , to solve it I'm about to > refactor the reader code to the map object in jk2, looking at the code, > what should i do with sections? i fail to understand the use of > cfg->section, it seems a temporary placeholder for names of sections > when reading ? right ?
Yes, it was the easiest way to implement this. I would sugest creating a new 'object' to do what you need. I'm not sure what is the functionality you need - you can use functions from jk_config to read a properties file in a map ( if it doesn't use sections, it'll just read it as a map, but you can use sections as a 'shortcut', to avoid typing the common prefix too many times ). > if the section name is null i will simply put the value at the top map, > rest will be more or less the same, i will translate ( for completeness > ) jk2_config_queryRead too.. That part is not curently used. I was preparing it for the status or ctl worker - but it doesn't belong there. Costin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>