preprocessor_streambuf Class Reference

Inheritance diagram for preprocessor_streambuf:

Inheritance graph
[legend]
Collaboration diagram for preprocessor_streambuf:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 preprocessor_streambuf (preproc_map *, std::string *)
std::string lineno_string (std::string const &)
void error (const std::string &, const std::string &)

Private Member Functions

virtual int underflow ()
 preprocessor_streambuf (preprocessor_streambuf const &)

Private Attributes

std::string out_buffer_
std::ostringstream buffer_
preprocessorcurrent_
preproc_mapdefines_
preproc_map default_defines_
std::string textdomain_
std::string location_
std::string * error_log
int linenum_
int depth_
int buffer_size_
bool quoted_

Friends

class preprocessor
class preprocessor_file
class preprocessor_data
struct preprocessor_deleter


Detailed Description

Definition at line 64 of file preprocessor.cpp.


Constructor & Destructor Documentation

preprocessor_streambuf::preprocessor_streambuf ( preprocessor_streambuf const &  t  )  [private]

Definition at line 107 of file preprocessor.cpp.

preprocessor_streambuf::preprocessor_streambuf ( preproc_map def,
std::string *  err_log 
)

Definition at line 90 of file preprocessor.cpp.


Member Function Documentation

int preprocessor_streambuf::underflow (  )  [private, virtual]

std::string preprocessor_streambuf::lineno_string ( std::string const &  lineno  ) 

Definition at line 169 of file preprocessor.cpp.

References boost::foreach_detail_::end(), file, pos, and utils::quoted_split().

Referenced by error().

void preprocessor_streambuf::error ( const std::string &  error_type,
const std::string &  pos 
)

Definition at line 186 of file preprocessor.cpp.

References ERR_CF, error_log, and lineno_string().

Referenced by preprocessor_data::get_chunk().


Friends And Related Function Documentation

friend class preprocessor [friend]

Definition at line 79 of file preprocessor.cpp.

friend class preprocessor_file [friend]

Definition at line 80 of file preprocessor.cpp.

friend class preprocessor_data [friend]

Definition at line 81 of file preprocessor.cpp.

friend struct preprocessor_deleter [friend]

Definition at line 82 of file preprocessor.cpp.


Member Data Documentation

std::string preprocessor_streambuf::out_buffer_ [private]

Definition at line 66 of file preprocessor.cpp.

Referenced by underflow().

std::ostringstream preprocessor_streambuf::buffer_ [private]

Definition at line 70 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().

Definition at line 71 of file preprocessor.cpp.

std::string preprocessor_streambuf::textdomain_ [private]

std::string preprocessor_streambuf::location_ [private]

std::string* preprocessor_streambuf::error_log [private]

Definition at line 74 of file preprocessor.cpp.

Referenced by error().

Definition at line 78 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().


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