#include <preprocessor.hpp>
Public Member Functions | |
preproc_define () | |
preproc_define (std::string const &val) | |
preproc_define (std::string const &val, std::vector< std::string > const &args, std::string const &domain, int line, std::string const &loc) | |
void | write (config_writer &, const std::string &) const |
void | write_argument (config_writer &, const std::string &) const |
void | read (const config &) |
void | read_argument (const config &) |
bool | operator== (preproc_define const &) const |
bool | operator< (preproc_define const &) const |
bool | operator!= (preproc_define const &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::string | textdomain |
int | linenum |
std::string | location |
Definition at line 33 of file preprocessor.hpp.
|
inline |
Definition at line 35 of file preprocessor.hpp.
|
inlineexplicit |
Definition at line 36 of file preprocessor.hpp.
|
inline |
Definition at line 37 of file preprocessor.hpp.
|
inline |
Definition at line 52 of file preprocessor.hpp.
References operator==().
bool preproc_define::operator< | ( | preproc_define const & | v | ) | const |
Definition at line 115 of file preprocessor.cpp.
bool preproc_define::operator== | ( | preproc_define const & | v | ) | const |
Definition at line 111 of file preprocessor.cpp.
References arguments, and value.
Referenced by operator!=().
Definition at line 158 of file preprocessor.cpp.
References config::child_range(), linenum, read_argument(), and textdomain.
Referenced by read_pair().
|
static |
Definition at line 170 of file preprocessor.cpp.
References read().
Referenced by handle_preprocess_command(), and game_config::config_cache::read_defines_file().
void preproc_define::write | ( | config_writer & | writer, |
const std::string & | name | ||
) | const |
Definition at line 134 of file preprocessor.cpp.
References arguments, config_writer::close_child(), get_location(), linenum, config_writer::open_child(), textdomain, write_argument(), and config_writer::write_key_val().
void preproc_define::write_argument | ( | config_writer & | writer, |
const std::string & | arg | ||
) | const |
Definition at line 123 of file preprocessor.cpp.
References config_writer::close_child(), config_writer::open_child(), and config_writer::write_key_val().
Referenced by write().
std::vector< std::string > preproc_define::arguments |
Definition at line 41 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator==(), read_argument(), and write().
int preproc_define::linenum |
Definition at line 43 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator<(), read(), and write().
std::string preproc_define::location |
Definition at line 44 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator<(), and operator<<().
std::string preproc_define::textdomain |
Definition at line 42 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), read(), and write().
std::string preproc_define::value |
Definition at line 40 of file preprocessor.hpp.
Referenced by preprocessor_data::get_chunk(), operator<<(), and operator==().