Contains methods for easily reading and writing to an INI file including efficient casting, callback, and variable storage methods. More...
#include <INIReader.h>
Public Member Functions | |
void | addINIOption (const String &label, INIOption *option) |
bool | addManagedOption (const String &option_label, const String &option, bool replace=true) |
template<class t_type > | |
void | addOption (const String &label, const Resource< t_type > &mem_loc)=delete |
template<class t_type > | |
void | addOption (const String &label, const t_type &mem_loc)=delete |
template<class t_type , uint01 t_row_dims, uint01 t_col_dims> | |
void | addOption (const String &label, Resource< Matrix< t_type, t_row_dims, t_col_dims > > &mem_loc) |
template<class t_type > | |
void | addOption (const String &label, Resource< t_type > &mem_loc) |
template<uint01 t_dims, class t_type > | |
void | addOption (const String &label, Resource< Vector< t_dims, t_type > > &mem_loc) |
template<class t_type > | |
void | addOption (const String &label, t_type &mem_loc) |
template<uint01 t_dims, class t_type > | |
void | addOption (const String &label, Vector< t_dims, t_type > &mem_loc) |
void | clear () |
Dictionary< String, String > | extraOptions () const |
Dictionary< String, String * > & | extraOptionsRef () |
String | getOption (const String &option, const String &default_value=String()) const |
bool | hasOption (const String &option) const |
bool | hasOption (uint08 hash_option) const |
INIFactory () | |
INIFactory (const INIFactory &reader)=delete | |
INIFactory (INIFactory &&reader) noexcept | |
bool | preserveOrder () const |
void | read (Scanner &file) |
void | readAsciiFile (File &file) |
void | readBinaryFile (File &file) |
void | setComment (char comment) |
void | setDelimiter (char delimiter) |
void | setPreserveOrder (bool preserve_order) |
void | setUseHashLabels (bool use_hash_labels) |
void | writeToAsciiFile (File &file, bool include_end_comment=false) |
void | writeToBinaryFile (File &file) |
void | writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2) |
virtual | ~INIFactory () |
Static Public Member Functions | |
static void | ConvertFromINIString (String &s) |
static void | ConvertToINIString (String &s) |
template<class t_type > | |
static INIOption * | ToOption (Resource< t_type > &value) |
template<class t_type > | |
static INIOption * | ToOption (t_type &mem_loc) |
Contains methods for easily reading and writing to an INI file including efficient casting, callback, and variable storage methods.
addOption functions take a REFERENCE to an object and will modify that reference
INIFactory | ( | ) |
|
delete |
|
noexcept |
|
virtual |
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void clear | ( | ) |
|
static |
|
static |
Dictionary< String, String > extraOptions | ( | ) | const |
|
inline |
bool hasOption | ( | const String & | option | ) | const |
bool hasOption | ( | uint08 | hash_option | ) | const |
|
inline |
void read | ( | Scanner & | file | ) |
void readAsciiFile | ( | File & | file | ) |
void readBinaryFile | ( | File & | file | ) |
|
inline |
void setDelimiter | ( | char | delimiter | ) |
|
inline |
void setUseHashLabels | ( | bool | use_hash_labels | ) |
|
inlinestatic |
void writeToAsciiFile | ( | File & | file, |
bool | include_end_comment = false ) |
void writeToBinaryFile | ( | File & | file | ) |
void writeToLog | ( | const String & | title, |
ProgressInfo * | log, | ||
uint01 | log_level = 2 ) |