From: stephan b. <st...@s1...> - 2004-12-25 19:23:34
|
Hi, Marc! A question about your Prefs support: i want to start on the App module, and will need to implement these features: - argv parser. (ArgvParser class) - OO access to environment. (Environment class) - per-app config files. (AppConfig? class) i have all of that, but i need to port it from eshell. The problem is that i've built up lots of deps on other code of mine, and now need to figure out which parts P has and which ones i need to bring over. So, my question is: do you have a class which offers generic properties support. i mean, a map-like class which stores key/val pairs? That support is really the core to the App module, because the Environment and ArgvParser currently extend a type which provides that functionality. Also, such a type is inherently useful as a simple config file. So, if you've got such a type, please get it into P2 CVS, or let me know where to find it. If not i'll port in my PropertyStore type, which uses templatizes get()/set() functions to do lexical casting, which allows us to store any i/ostreamable type. IIRC you already have a type for this? If so i will rewrite around that one. See ya! -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |