Class IniFile

Inheritance Relationships

Base Type

Class Documentation

class IniFile : public miral::live_config::Store

“ini file” implementation of a live configuration store.

Remark

Since MirAL 5.5

Public Functions

IniFile()
~IniFile() override
virtual void add_int_attribute(Key const &key, std::string_view description, HandleInt handler) override
virtual void add_ints_attribute(Key const &key, std::string_view description, HandleInts handler) override
virtual void add_bool_attribute(Key const &key, std::string_view description, HandleBool handler) override
virtual void add_float_attribute(Key const &key, std::string_view description, HandleFloat handler) override
virtual void add_floats_attribute(Key const &key, std::string_view description, HandleFloats handler) override
virtual void add_string_attribute(Key const &key, std::string_view description, HandleString handler) override
virtual void add_strings_attribute(Key const &key, std::string_view description, HandleStrings handler) override
virtual void add_int_attribute(Key const &key, std::string_view description, int preset, HandleInt handler) override
virtual void add_ints_attribute(Key const &key, std::string_view description, std::span<int const> preset, HandleInts handler) override
virtual void add_bool_attribute(Key const &key, std::string_view description, bool preset, HandleBool handler) override
virtual void add_float_attribute(Key const &key, std::string_view description, float preset, HandleFloat handler) override
virtual void add_floats_attribute(Key const &key, std::string_view description, std::span<float const> preset, HandleFloats handler) override
virtual void add_string_attribute(Key const &key, std::string_view description, std::string_view preset, HandleString handler) override
virtual void add_strings_attribute(Key const &key, std::string_view description, std::span<std::string const> preset, HandleStrings handler) override
virtual void on_done(HandleDone handler) override

Called following a set of related updates (e.g. a file reload) to allow multiple attributes to be updated transactionally.

void load_file(std::istream &istream, std::filesystem::path const &path)