IniFile - Configuration or ini-file
Configuration or ini-files are used for controlling ODABA applications. Via configuration files, option values may be set in an external file before running an ODABA application. Options set in a configuration file may be overwritten by options set in the database option hierarchy or options explicitly set in the application.
Configuration files may be provided as XML files or classical text files with several hierarchical sections (see also Options in a configuration or ini-file ). In contrast to ini-files, XML configuration files support more than one configuration in one configuration file (multiple configuration support).
Some situations require a configuration or ini-file created temporarily (e.g. when starting separate processes). The class supports several functions for creating configuration or ini-files with required option definitions. Usually, configuration or ini-files are used either for being read or in order to create new configuration or ini-files (write), but not both.
- 1. Administration - Administration operations
- 2. Read functions - Read functions
- 3. Write functions - Write functions
- IniFile - Constructor
- assign - Assign ini-file
- configuration - Configuration name
- copyOption - Copy option value to configuration file
- createConfiguration - Create configuration
- createOption - Add option value
- createSection - Add new section
- isXMLConfiguration - - internal feature (not documented)
- locateSection - Locate section
- optionValue - Get option value
- path - File name
- refresh - Refresh ini-file
- section - Current section
- setConfiguration - Set configuration
- setParentSection - Set parent section as current section
- setSection - Change current section
- write - Write ini-file
- ~IniFile - Destructor