#include <preprocessor.hpp>
Public Member Functions | |
preproc_define () | |
preproc_define (const std::string &val) | |
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) | |
bool | is_deprecated () const |
void | write (config_writer &, const std::string &) const |
void | write_argument (config_writer &, const std::string &) const |
void | write_argument (config_writer &, const std::string &, const std::string &) const |
void | read (const config &) |
void | read_argument (const config &) |
bool | operator== (const preproc_define &) const |
bool | operator< (const preproc_define &) const |
bool | operator!= (const preproc_define &v) const |
Static Public Member Functions | |
static preproc_map::value_type | read_pair (const config &) |
Public Attributes | |
std::string | value |
std::vector< std::string > | arguments |
std::map< std::string, std::string > | optional_arguments |
std::string | textdomain |
int | linenum |
std::string | location |
std::string | deprecation_message |
utils::optional< DEP_LEVEL > | deprecation_level |
version_info | deprecation_version |
Definition at line 36 of file preprocessor.hpp.
|
inline |
Definition at line 38 of file preprocessor.hpp.
|
inlineexplicit |
Definition at line 48 of file preprocessor.hpp.
|
inline |
Definition at line 58 of file preprocessor.hpp.
|
inline |
Definition at line 96 of file preprocessor.hpp.
References deprecation_level.
Referenced by preprocessor_data::get_chunk(), and write().
|
inline |
Definition at line 113 of file preprocessor.hpp.
References operator==().
bool preproc_define::operator< | ( | const preproc_define & | v | ) | const |
Definition at line 138 of file preprocessor.cpp.
bool preproc_define::operator== | ( | const preproc_define & | v | ) | const |
Definition at line 133 of file preprocessor.cpp.
References arguments, and value.
Referenced by operator!=().
void preproc_define::read | ( | const config & | cfg | ) |
Definition at line 211 of file preprocessor.cpp.
References config::child_range(), deprecation_level, deprecation_message, deprecation_version, linenum, location, config::optional_child(), read_argument(), version_info::str(), textdomain, and value.
Referenced by read_pair().
void preproc_define::read_argument | ( | const config & | cfg | ) |
Definition at line 202 of file preprocessor.cpp.
References arguments, config::has_attribute(), and optional_arguments.
Referenced by read().
|
static |
Definition at line 229 of file preprocessor.cpp.
References read().
Referenced by handle_preprocess_command(), handle_preprocess_string(), and game_config::config_cache::read_defines_file().
void preproc_define::write | ( | config_writer & | writer, |
const std::string & | name | ||
) | const |
Definition at line 172 of file preprocessor.cpp.
References arguments, config_writer::close_child(), deprecation_level, deprecation_message, deprecation_version, get_location(), is_deprecated(), linenum, location, config_writer::open_child(), optional_arguments, version_info::str(), textdomain, value, write_argument(), and config_writer::write_key_val().
void preproc_define::write_argument | ( | config_writer & | writer, |
const std::string & | arg | ||
) | const |
Definition at line 151 of file preprocessor.cpp.
References config_writer::close_child(), config_writer::open_child(), and config_writer::write_key_val().
Referenced by write().
void preproc_define::write_argument | ( | config_writer & | writer, |
const std::string & | arg, | ||
const std::string & | default_value | ||
) | const |
Definition at line 161 of file preprocessor.cpp.
References config_writer::close_child(), config_writer::open_child(), and config_writer::write_key_val().
std::vector<std::string> preproc_define::arguments |
Definition at line 80 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator==(), read_argument(), and write().
utils::optional<DEP_LEVEL> preproc_define::deprecation_level |
Definition at line 92 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), is_deprecated(), read(), and write().
std::string preproc_define::deprecation_message |
Definition at line 90 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), read(), and write().
version_info preproc_define::deprecation_version |
Definition at line 94 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), read(), and write().
int preproc_define::linenum |
Definition at line 86 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator<(), read(), and write().
std::string preproc_define::location |
Definition at line 88 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator<(), operator<<(), read(), and write().
std::map<std::string, std::string> preproc_define::optional_arguments |
Definition at line 82 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), read_argument(), and write().
std::string preproc_define::textdomain |
Definition at line 84 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), read(), and write().
std::string preproc_define::value |
Definition at line 78 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator<<(), operator==(), read(), and write().