The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
preproc_define Struct Reference

#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::stringarguments
 
std::string textdomain
 
int linenum
 
std::string location
 

Detailed Description

Definition at line 33 of file preprocessor.hpp.

Constructor & Destructor Documentation

preproc_define::preproc_define ( )
inline

Definition at line 35 of file preprocessor.hpp.

preproc_define::preproc_define ( std::string const &  val)
inlineexplicit

Definition at line 36 of file preprocessor.hpp.

preproc_define::preproc_define ( std::string const &  val,
std::vector< std::string > const &  args,
std::string const &  domain,
int  line,
std::string const &  loc 
)
inline

Definition at line 37 of file preprocessor.hpp.

Member Function Documentation

bool preproc_define::operator!= ( preproc_define const &  v) const
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.

References linenum, and location.

bool preproc_define::operator== ( preproc_define const &  v) const

Definition at line 111 of file preprocessor.cpp.

References arguments, and value.

Referenced by operator!=().

void preproc_define::read ( const config cfg)

Definition at line 158 of file preprocessor.cpp.

References config::child_range(), linenum, read_argument(), and textdomain.

Referenced by read_pair().

void preproc_define::read_argument ( const config cfg)

Definition at line 153 of file preprocessor.cpp.

References arguments.

Referenced by read().

preproc_map::value_type preproc_define::read_pair ( const config cfg)
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
void preproc_define::write_argument ( config_writer writer,
const std::string arg 
) const

Member Data Documentation

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==().


The documentation for this struct was generated from the following files: