69 return !
title.empty();
82 std::set<version_info, std::greater<version_info>>
versions;
92 std::vector<std::string>
tags;
102 std::chrono::system_clock::time_point
updated;
103 std::chrono::system_clock::time_point
created;
A config object defines a single node in a WML file, with access to child nodes.
Represents version numbers.
Interfaces for manipulating version numbers of engine, add-ons, etc.
std::string size_display_string(double size)
Get a human-readable representation of the specified byte count.
std::string make_addon_title(const std::string &id)
Replaces underscores to dress up file or dirnames as add-on titles.
std::map< std::string, addon_info > addons_list
void read_addons_list(const config &cfg, addons_list &dest)
Parse the specified add-ons list WML into an actual addons_list object.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
addon_info_translation(bool sup, std::string titl, std::string desc)
addon_info_translation(const addon_info_translation &)=default
static addon_info_translation invalid
void read(const config &cfg)
addon_info_translation(const config &cfg)
void write(config &cfg) const
addon_info_translation & operator=(const addon_info_translation &o)=default
std::vector< std::string > tags
void read(const config &cfg)
addon_info(const addon_info &)=default
version_info current_version
std::string display_type() const
Get an add-on type identifier for display in the user's language.
std::map< std::string, addon_info_translation > info_translations
addon_info_translation translated_info() const
std::string display_title_translated() const
std::string description_translated() const
void write(config &cfg) const
std::string display_icon() const
Get an icon path fixed for display (e.g.
addon_info & operator=(const addon_info &o)=default
std::chrono::system_clock::time_point updated
std::string display_title() const
Get a title or automatic title for display.
std::string display_title_translated_or_original() const
std::chrono::system_clock::time_point created
std::vector< std::string > depends
addon_info(const config &cfg)
std::string display_title_full() const
std::set< std::string > resolve_dependencies(const addons_list &addons) const
Resolve an add-on's dependency tree in a recursive fashion.
std::set< version_info, std::greater< version_info > > versions
std::vector< std::string > locales
void write_minimal(config &cfg) const
Write only minimal WML used for state tracking (_info.cfg) files.
ADDON_TYPE
Values used for add-on classification; UI-only at the moment, in the future it could be used for dire...