Root > Reference > All Units > EConfig Unit

EConfig Unit

Previous pageReturn to chapter overviewNext page   

Configuration management unit.

 

Remarks

This unit contain basic support routines for saving and loading EurekaLog configuration information.

 

EurekaLog configuration can be stored either in the registry or in .ini-file. This unit encapsulates configuration management, abstracting callers from knowing underlying storage specifics.

 

EurekaLog code can use ConfigReadXXX and ConfigWriteXXX routines to read and write configuration without worrying about back-end storage. All ConfigReadXXX functions are just wrappers around ConfigReadString function. Similary, all ConfigWriteXXX procedures are just wrappers around ConfigWriteString procedure.

 

Be default, EurekaLog configuration is stored in the registry under GeneralEurekaLogRegistryKey ('\Software\EurekaLab\EurekaLog\7.0') registry key.

 

Callers may change this behaviour by calling SetupConfig procedure.

 

For example, EurekaLog Viewer changes default location to registry key GeneralEurekaLogViewerRegistryKey ('\Software\EurekaLab\Viewer\4.0'). And in standalone mode EurekaLog Viewer changes configuration location to external .ini file.

 

High-level ConfigXXX functions calls low-level function, depending on current storage's configuration. Low-level routines are RegKeyXXX, IniReadString/IniWriteString, backward-compatibility routines ReadRawStrings/WriteRawStrings and also a helper functions like EncodeConfigValue/DecodeConfigValue and informational routines ConfigIsRegistry, ConfigFileName, ConfigKeyPath.

 

See also




Send feedback... Build date: 2024-12-19
Last edited: 2024-12-19
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_unit_econfig.php