nw::Ini
-
struct Ini
Ini file format parser.
Lookup is by “<section>/<key>”
Note
This is read only currently.
Public Functions
-
Ini() = default
-
explicit Ini(const std::filesystem::path &filename)
-
explicit Ini(ResourceData data)
-
template<typename T>
std::optional<T> get(String key) const Gets a value.
- Template Parameters:
T –
int32_t,float, orString- Parameters:
key –
- Returns:
std::optional<T>
-
bool get_to(String key, String &out) const
Gets string value.
-
Ini() = default