Specialized preprocessor for handling a file or a set of files. More...


Public Member Functions | |
| preprocessor_file (preprocessor_streambuf &, std::string const &) | |
| virtual bool | get_chunk () |
| preprocessor_file::get_chunk() | |
Private Attributes | |
| std::vector< std::string > | files_ |
| std::vector< std::string > ::const_iterator | pos_ |
| std::vector< std::string > ::const_iterator | end_ |
Specialized preprocessor for handling a file or a set of files.
A preprocessor_file object is created when a preprocessor encounters an inclusion directive that resolves to a file or directory, e.g. '{themes/}'.
Definition at line 400 of file preprocessor.cpp.
| preprocessor_file::preprocessor_file | ( | preprocessor_streambuf & | t, | |
| std::string const & | name | |||
| ) |
Definition at line 509 of file preprocessor.cpp.
References directory_name(), DO_REORDER, end_, ENTIRE_FILE_PATH, ERR_CF, files_, get_files_in_dir(), get_short_wml_path(), is_directory(), istream_file(), pos_, SKIP_MEDIA_DIR, and preprocessor_streambuf::textdomain_.
Referenced by get_chunk().


| bool preprocessor_file::get_chunk | ( | ) | [virtual] |
preprocessor_file::get_chunk()
Inserts and processes the next file in the list of included files.
Implements preprocessor.
Definition at line 537 of file preprocessor.cpp.
References end_, pos_, preprocessor_file(), and preprocessor::target_.

std::vector< std::string >::const_iterator preprocessor_file::end_ [private] |
Definition at line 403 of file preprocessor.cpp.
Referenced by get_chunk(), and preprocessor_file().
std::vector< std::string > preprocessor_file::files_ [private] |
Definition at line 402 of file preprocessor.cpp.
Referenced by preprocessor_file().
std::vector< std::string >::const_iterator preprocessor_file::pos_ [private] |
Definition at line 403 of file preprocessor.cpp.
Referenced by get_chunk(), and preprocessor_file().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:55 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |