34 typedef std::map<std::string, struct preproc_define>
preproc_map;
59 const std::vector<std::string>& args,
60 const std::map<std::string, std::string>& optargs,
61 const std::string& domain,
63 const std::string&
loc,
64 const std::string& dep_msg,
65 utils::optional<DEP_LEVEL> dep_lvl,
const version_info& dep_ver)
134 std::ostream&
operator<<(std::ostream& stream,
const preproc_map::value_type& def);
157 const std::string& contents,
159 const std::string& textdomain =
"wesnoth");
162 const std::string& res_name,
164 bool write_cfg =
false,
165 bool write_plain_cfg =
false,
166 const std::string& target_directory =
"");
Class for writing a config out to a file in pieces.
A config object defines a single node in a WML file, with access to child nodes.
Represents version numbers.
Declarations for File-IO.
Interfaces for manipulating version numbers of engine, add-ons, etc.
void line(int from_x, int from_y, int to_x, int to_y)
Draw a line.
std::unique_ptr< std::istream > scoped_istream
std::string lineno_string(const std::string &lineno)
std::ostream & operator<<(std::ostream &stream, const preproc_define &def)
filesystem::scoped_istream preprocess_file(const std::string &fname, preproc_map *defines=nullptr)
Function to use the WML preprocessor on a file.
std::map< std::string, struct preproc_define > preproc_map
void preprocess_resource(const std::string &res_name, preproc_map *defines_map, bool write_cfg=false, bool write_plain_cfg=false, const std::string &target_directory="")
std::string preprocess_string(const std::string &contents, preproc_map *defines, const std::string &textdomain="wesnoth")
Function to use the WML preprocessor on a string.
Base class for all the errors encountered by the engine.
error(const std::string &message)
bool operator!=(const preproc_define &v) const
void write(config_writer &, const std::string &) const
version_info deprecation_version
bool operator<(const preproc_define &) const
void write_argument(config_writer &, const std::string &) const
void read(const config &)
void read_argument(const config &)
preproc_define(const std::string &val, const std::vector< std::string > &args, const std::map< std::string, std::string > &optargs, const std::string &domain, int line, const std::string &loc, const std::string &dep_msg, utils::optional< DEP_LEVEL > dep_lvl, const version_info &dep_ver)
std::string deprecation_message
std::vector< std::string > arguments
preproc_define(const std::string &val)
std::map< std::string, std::string > optional_arguments
bool operator==(const preproc_define &) const
utils::optional< DEP_LEVEL > deprecation_level
static preproc_map::value_type read_pair(const config &)
bool is_deprecated() const