preprocessor_file Class Reference

preprocessor_file 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::vector< std::string > *, 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

preprocessor_file

This represents a WML element that resolves to a directory or file inclusion, such as '{themes/}'

Definition at line 257 of file preprocessor.cpp.


Constructor & Destructor Documentation

preprocessor_file::preprocessor_file ( preprocessor_streambuf t,
std::vector< std::string > *  callstack,
std::string const &  name 
)


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 333 of file preprocessor.cpp.

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


Member Data Documentation

std::vector< std::string > preprocessor_file::files_ [private]

Definition at line 259 of file preprocessor.cpp.

Referenced by preprocessor_file().

std::vector< std::string >::const_iterator preprocessor_file::pos_ [private]

Definition at line 260 of file preprocessor.cpp.

Referenced by get_chunk(), and preprocessor_file().

std::vector< std::string >::const_iterator preprocessor_file::end_ [private]

Definition at line 260 of file preprocessor.cpp.

Referenced by get_chunk(), and preprocessor_file().


The documentation for this class was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs