Public Member Functions | Private Attributes

preprocessor_file Class Reference

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

Inheritance diagram for preprocessor_file:
Inheritance graph
[legend]
Collaboration diagram for preprocessor_file:
Collaboration graph
[legend]

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

bool preprocessor_file::get_chunk (  )  [virtual]

preprocessor_file::get_chunk()

Inserts and processes the next file in the list of included files.

Returns:
false if there is no next file.

Implements preprocessor.

Definition at line 537 of file preprocessor.cpp.

References end_, pos_, preprocessor_file(), and preprocessor::target_.

Here is the call graph for this function:


Member Data Documentation

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:55 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs