34#include <NDEVR/INIFactory.h>
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Contains methods for easily reading and writing to an INI file including efficient casting,...
INIInterface(const File &default_ini)
Constructs an INIInterface with the specified default INI file.
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 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 void writeToLog(LogPtr log, uint01 log_level=2U)
Writes the current INI options to the specified log.
void setDefaultINIFile(const File &file)
Sets the default INI file path used for reading and writing options.
virtual bool saveINIOptions(File &ini_file, bool multithead=false)
Saves INI options to the specified INI file.
virtual bool saveINIOptions(bool multithead=false)
Saves INI options to the default INI file.
virtual void getINI(INIFactory &factory)=0
Populates the given INI factory with the options managed by this interface.
File m_default_ini
The default file path used for reading and writing INI options.
virtual void prepareForINI(INIFactory &)
Called before reading or writing an INI file.
virtual void finishReadingINI(INIFactory &)
Called after reading an INI file.
INIInterface()
Constructs an INIInterface with no default INI file.
virtual ~INIInterface()
Virtual destructor for safe polymorphic cleanup.
A light-weight base class for Log that allows processes to update, without the need for additional in...
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
The core String View class for the NDEVR API.
The primary namespace for the NDEVR SDK.
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...