Contains methods for easily reading and writing to an INI file including efficient casting, callback, and variable storage methods.
More...
|
|
| INIInterface () |
| | Constructs an INIInterface with no default INI file.
|
| | INIInterface (const File &default_ini) |
| | Constructs an INIInterface with the specified default INI file.
|
|
virtual | ~INIInterface () |
| | Virtual destructor for safe polymorphic cleanup.
|
| virtual void | finishReadingINI (INIFactory &) |
| | Called after reading an INI file.
|
| virtual void | getINI (INIFactory &factory)=0 |
| | Populates the given INI factory with the options managed by this interface.
|
| virtual void | prepareForINI (INIFactory &) |
| | Called before reading or writing an INI file.
|
| virtual bool | readINIOptions () |
| | Reads INI options from the default INI file.
|
| virtual bool | readINIOptions (File &ini_file) |
| | Reads INI options from the specified INI file.
|
| virtual bool | saveINIOptions (bool multithead=false) |
| | Saves INI options to the default INI file.
|
| virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
| | Saves INI options to the specified INI file.
|
| void | setDefaultINIFile (const File &file) |
| | Sets the default INI file path used for reading and writing options.
|
| virtual void | writeToLog (const StringView &title, LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log with a title.
|
| virtual void | writeToLog (LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log.
|
|
|
File | m_default_ini |
| | The default file path used for reading and writing INI options.
|
Contains methods for easily reading and writing to an INI file including efficient casting, callback, and variable storage methods.
- See also
- INIFactory
Definition at line 46 of file INIInterface.h.
◆ INIInterface()
| INIInterface::INIInterface |
( |
const File & | default_ini | ) |
|
Constructs an INIInterface with the specified default INI file.
- Parameters
-
| [in] | default_ini | The file path to use as the default INI file. |
◆ finishReadingINI()
| virtual void INIInterface::finishReadingINI |
( |
INIFactory & | | ) |
|
|
inlinevirtual |
◆ getINI()
| virtual void INIInterface::getINI |
( |
INIFactory & | factory | ) |
|
|
pure virtual |
Populates the given INI factory with the options managed by this interface.
- Parameters
-
| [in] | factory | The INI factory to populate with option definitions. |
Implemented in BasicKeyController, CollimatorLogic, DesignSettings, DeviCounterSettings, FactoryOptions, FileChooserDialog, IMUCalibrator, JorvikTotalStation, JoystickSettings, MainGPSManager, MouseController, NDEVRProxyStyle, NDEVRServerManager, PhotogrammetryOptions, PointScannerOptions, RasterInfo, Translator, UnitManager, VehicleSearchItem, and ViewportLayout.
◆ prepareForINI()
| virtual void INIInterface::prepareForINI |
( |
INIFactory & | | ) |
|
|
inlinevirtual |
◆ readINIOptions() [1/2]
| virtual bool INIInterface::readINIOptions |
( |
| ) |
|
|
virtual |
Reads INI options from the default INI file.
- Returns
- True if the options were read successfully, false otherwise.
◆ readINIOptions() [2/2]
| virtual bool INIInterface::readINIOptions |
( |
File & | ini_file | ) |
|
|
virtual |
Reads INI options from the specified INI file.
- Parameters
-
| [in] | ini_file | The INI file to read options from. |
- Returns
- True if the options were read successfully, false otherwise.
◆ saveINIOptions() [1/2]
| virtual bool INIInterface::saveINIOptions |
( |
bool | multithead = false | ) |
|
|
virtual |
Saves INI options to the default INI file.
- Parameters
-
| [in] | multithead | Whether to perform the save on a background thread. |
- Returns
- True if the options were saved successfully, false otherwise.
◆ saveINIOptions() [2/2]
| virtual bool INIInterface::saveINIOptions |
( |
File & | ini_file, |
|
|
bool | multithead = false ) |
|
virtual |
Saves INI options to the specified INI file.
- Parameters
-
| [in] | ini_file | The INI file to save options to. |
| [in] | multithead | Whether to perform the save on a background thread. |
- Returns
- True if the options were saved successfully, false otherwise.
◆ setDefaultINIFile()
| void INIInterface::setDefaultINIFile |
( |
const File & | file | ) |
|
Sets the default INI file path used for reading and writing options.
- Parameters
-
| [in] | file | The file path to set as the default INI file. |
◆ writeToLog() [1/2]
Writes the current INI options to the specified log with a title.
- Parameters
-
| [in] | title | The title to prepend to the log output. |
| [in] | log | The log to write to. |
| [in] | log_level | The verbosity level for logging. |
◆ writeToLog() [2/2]
| virtual void INIInterface::writeToLog |
( |
LogPtr | log, |
|
|
uint01 | log_level = 2U ) |
|
virtual |
Writes the current INI options to the specified log.
- Parameters
-
| [in] | log | The log to write to. |
| [in] | log_level | The verbosity level for logging. |
The documentation for this class was generated from the following file: