Hi Tobias,
another idea... you can put in TSmartInspect class an event
OnConfigure(AConfiguration: TSiConfiguration)
so user can handle custom configuration.
In configuration builder you add a "custom section"
where user can add custom entry in an easy way to condifuration file.
Regards
Ing Giuseppe Monteleone
Subscribe to forum
Forum
custom configuration
Page: 1
| Author | Post |
|---|---|
|
Giuseppe Monteleone
|
#1 Thu Mar 22, 2007 7:58 am
|
| Guest | |
|
#2 Thu Mar 22, 2007 12:40 pm
|
|
|
Administrator
Registered: Sep 2007
Posts: 134
|
Hi Giuseppe,
You can already do this without an OnConfigure event or the Configuration Builder support. You could simply create a TSiConfiguration instance yourself, load the contents of a configuration file via LoadFromFile and then process the individual items. A SmartInspect configuration file is a simple (UTF-8 encoded) text file with key/value pairs. The SmartInspect libraries ignore and skip all unknown or invalid lines in a given files, so it's no problem to add custom items. |
Page: 1