21 #ifndef H_KARAZEH_VERSION_MANIFEST_H 22 #define H_KARAZEH_VERSION_MANIFEST_H 26 #include "json11/json11.hpp" 27 #include "karazeh_export.h" 57 void load_from_uri(
string_t const& uri);
70 void load_from_string(
string_t const& raw_json);
81 void load_release_from_uri(
string_t const&);
91 void load_release_from_string(
string_t const& raw_json);
118 void parse(JSON
const&);
120 void parse_release(JSON
const&);
125 int get_release_count()
const;
130 int get_release_count(
string_t const& identity)
const;
142 string_t get_current_version()
const;
148 vector<string_t> get_available_updates(
const string_t& current_version)
const;
156 struct identity_list_t {
157 inline explicit identity_list_t(
string_t const& name) : name(name) {};
158 inline ~identity_list_t() {
163 vector<path_t> files;
166 map<string_t, identity_list_t> identity_lists_;
167 vector<release_manifest*> releases_;
json11::Json JSON
Definition: version_manifest.hpp:40
Definition: operation.hpp:50
std::string string_t
Definition: karazeh.hpp:55
Definition: config.hpp:32
Definition: release_manifest.hpp:32
Definition: version_manifest.hpp:45
Definition: config.hpp:27