18 #ifndef SERIALIZATION_PREPROCESSOR_HPP_INCLUDED
19 #define SERIALIZATION_PREPROCESSOR_HPP_INCLUDED
31 typedef std::map< std::string, preproc_define >
preproc_map;
65 std::ostream&
operator<<(std::ostream&
stream,
const preproc_map::value_type& def);
77 bool write_cfg=
false,
bool write_plain_cfg=
false,
std::string target_directory=
"");
bool operator==(preproc_define const &) const
void read(const config &)
void write_argument(config_writer &, const std::string &) const
GLuint const GLfloat * val
bool operator<(preproc_define const &) const
void read_argument(const config &)
std::map< std::string, 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, std::string target_directory="")
Class for writing a config out to a file in pieces.
GLsizei const GLfloat * value
std::istream * preprocess_file(std::string const &fname, preproc_map *defines=nullptr)
Function to use the WML preprocessor on a file.
std::string lineno_string(const std::string &lineno)
Encapsulates the map of the game.
std::vector< std::string > arguments
void write(config_writer &, const std::string &) const
std::ostream & operator<<(std::ostream &stream, const preproc_define &def)
bool operator!=(preproc_define const &v) const
Base class for all the errors encountered by the engine.
GLsizei GLenum GLuint GLuint GLsizei char * message
error(const std::string &message)
preproc_define(std::string const &val, std::vector< std::string > const &args, std::string const &domain, int line, std::string const &loc)
A config object defines a single node in a WML file, with access to child nodes.
static preproc_map::value_type read_pair(const config &)
preproc_define(std::string const &val)
GLsizei const GLcharARB ** string