Public Member Functions | |
virtual bool | get_chunk ()=0 |
virtual | ~preprocessor () |
Protected Member Functions | |
preprocessor (preprocessor_streambuf &, std::vector< std::string > *) | |
preprocessor | |
Protected Attributes | |
preprocessor_streambuf & | target_ |
std::vector< std::string > * | called_macros_ |
Private Attributes | |
preprocessor *const | old_preprocessor_ |
std::string | old_textdomain_ |
std::string | old_location_ |
int | old_linenum_ |
Definition at line 49 of file preprocessor.cpp.
preprocessor::preprocessor | ( | preprocessor_streambuf & | t, | |
std::vector< std::string > * | callstack | |||
) | [protected] |
This is the base class for all input to be parsed by the preprocessor. When initialized, it will inform the stream (target_) that it is the current scope. When it reaches its end of its scope, the stream will delete it, and when it is deleted, it will manage the stream to cause the previous scope to resume.
Definition at line 209 of file preprocessor.cpp.
References preprocessor_streambuf::current_, preprocessor_streambuf::depth_, and target_.
preprocessor::~preprocessor | ( | ) | [virtual] |
Definition at line 230 of file preprocessor.cpp.
References preprocessor_streambuf::buffer_, preprocessor_streambuf::buffer_size_, count_extra_digits(), preprocessor_streambuf::current_, preprocessor_streambuf::depth_, preprocessor_streambuf::linenum_, preprocessor_streambuf::location_, old_linenum_, old_location_, old_preprocessor_, old_textdomain_, target_, and preprocessor_streambuf::textdomain_.
virtual bool preprocessor::get_chunk | ( | ) | [pure virtual] |
Implemented in preprocessor_file, and preprocessor_data.
Referenced by preprocessor_streambuf::underflow().
preprocessor* const preprocessor::old_preprocessor_ [private] |
std::string preprocessor::old_textdomain_ [private] |
std::string preprocessor::old_location_ [private] |
int preprocessor::old_linenum_ [private] |
preprocessor_streambuf& preprocessor::target_ [protected] |
Definition at line 56 of file preprocessor.cpp.
Referenced by preprocessor_data::get_chunk(), preprocessor_file::get_chunk(), preprocessor(), preprocessor_data::push_token(), preprocessor_data::put(), and ~preprocessor().
std::vector<std::string>* preprocessor::called_macros_ [protected] |
Definition at line 57 of file preprocessor.cpp.
Referenced by preprocessor_data::get_chunk(), preprocessor_file::get_chunk(), preprocessor_data::preprocessor_data(), preprocessor_file::preprocessor_file(), and preprocessor_data::~preprocessor_data().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |