Reusable class for saving / loading application settings [modified]
-
Hi ya I need a good class for saving / loading application settings. I have the following demands for how it should be built: 1) It should be able to handle groups of settings (One group for each view in the application) 2) It should maintain the settings in memory. 3) It should provide an open interface, so one can attach any serialization / deserialization logic (registry-, ini-, xml-file, etc.) 4) It should not have a restricting license like GPL or similar I can find lots of articles about saving to ini-files, registry-files, xml-files, etc. But I haven't found an article that makes the abstraction I want. Please let me know
modified on Saturday, February 14, 2009 9:51 AM
-
Hi ya I need a good class for saving / loading application settings. I have the following demands for how it should be built: 1) It should be able to handle groups of settings (One group for each view in the application) 2) It should maintain the settings in memory. 3) It should provide an open interface, so one can attach any serialization / deserialization logic (registry-, ini-, xml-file, etc.) 4) It should not have a restricting license like GPL or similar I can find lots of articles about saving to ini-files, registry-files, xml-files, etc. But I haven't found an article that makes the abstraction I want. Please let me know
modified on Saturday, February 14, 2009 9:51 AM
Did you think about your question you need to a class for save application settings of your program you need to make it yourself I think you found your answer previous(ini files,xml files and registry) you need to make a class for them then you need to shift your parameters to that class.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Did you think about your question you need to a class for save application settings of your program you need to make it yourself I think you found your answer previous(ini files,xml files and registry) you need to make a class for them then you need to shift your parameters to that class.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
I'm not asking for help to invent the wheel, but asking for help to find an article / library that can provide the implemention of the wheel I need. I rather want to reuse than to remake it myself.
modified on Saturday, February 14, 2009 11:06 AM
-
Hi ya I need a good class for saving / loading application settings. I have the following demands for how it should be built: 1) It should be able to handle groups of settings (One group for each view in the application) 2) It should maintain the settings in memory. 3) It should provide an open interface, so one can attach any serialization / deserialization logic (registry-, ini-, xml-file, etc.) 4) It should not have a restricting license like GPL or similar I can find lots of articles about saving to ini-files, registry-files, xml-files, etc. But I haven't found an article that makes the abstraction I want. Please let me know
modified on Saturday, February 14, 2009 9:51 AM
Good idea: develop it and write a good article about. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Good idea: develop it and write a good article about. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Thank you for the encouragement :)
-
Hi ya I need a good class for saving / loading application settings. I have the following demands for how it should be built: 1) It should be able to handle groups of settings (One group for each view in the application) 2) It should maintain the settings in memory. 3) It should provide an open interface, so one can attach any serialization / deserialization logic (registry-, ini-, xml-file, etc.) 4) It should not have a restricting license like GPL or similar I can find lots of articles about saving to ini-files, registry-files, xml-files, etc. But I haven't found an article that makes the abstraction I want. Please let me know
modified on Saturday, February 14, 2009 9:51 AM
Think I have found the main building block, that satisfies most of my needs: * Can save to the registry * Can save to an ini-file * Can save to an xml-file And it has a reasonable license requirements: * You are allowed to include the source code in any product (commercial, shareware, freeware or otherwise) when your product is released in binary form. * You are allowed to modify the source code in any way you want except you cannot modify the copyright details at the top of each module. * If you want to distribute source code with your application, then you are only allowed to distribute versions released by the author. This is to maintain a single distribution point for the source code. http://www.naughter.com/appsettings.html All I need now is to create my in-memory configuration-class, and make a thin wrapper around the AppSettings class.