Public Member Functions | Public Attributes

write_key_val_visitor Struct Reference

Collaboration diagram for write_key_val_visitor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 write_key_val_visitor (std::ostream &out, unsigned level, std::string &textdomain, const std::string &key)
void operator() (boost::blank const &) const
void operator() (bool b) const
void operator() (double d) const
void operator() (size_t s) const
void operator() (long t) const
void operator() (int i) const
void operator() (std::string const &s) const
void operator() (t_string const &s) const
 Writes all the parts of a translatable string.

Public Attributes

std::ostream & out_
unsigned level_
std::string & textdomain_
const std::string & key_

Detailed Description

Definition at line 418 of file parser.cpp.


Constructor & Destructor Documentation

write_key_val_visitor::write_key_val_visitor ( std::ostream &  out,
unsigned  level,
std::string &  textdomain,
const std::string &  key 
) [inline]

Definition at line 425 of file parser.cpp.


Member Function Documentation

void write_key_val_visitor::operator() ( boost::blank const &   )  const [inline]

Definition at line 430 of file parser.cpp.

References out_.

void write_key_val_visitor::operator() ( t_string const &  value  )  const

Writes all the parts of a translatable string.

Note:
If the first part is translatable and in the wrong textdomain, the textdomain change has to happen before the attribute name. That is the reason for not outputting the key beforehand and letting this function do it.

Definition at line 454 of file parser.cpp.

References escaped_string(), key_, level_, out_, textdomain_, and w.

Here is the call graph for this function:

void write_key_val_visitor::operator() ( std::string const &  s  )  const [inline]

Definition at line 442 of file parser.cpp.

References escaped_string(), and out_.

Here is the call graph for this function:

void write_key_val_visitor::operator() ( int  i  )  const [inline]

Definition at line 440 of file parser.cpp.

References out_.

void write_key_val_visitor::operator() ( long  t  )  const [inline]

Definition at line 438 of file parser.cpp.

References out_.

void write_key_val_visitor::operator() ( size_t  s  )  const [inline]

Definition at line 436 of file parser.cpp.

References out_.

void write_key_val_visitor::operator() ( double  d  )  const [inline]

Definition at line 434 of file parser.cpp.

References out_.

void write_key_val_visitor::operator() ( bool  b  )  const [inline]

Definition at line 432 of file parser.cpp.

References out_.


Member Data Documentation

const std::string& write_key_val_visitor::key_

Definition at line 423 of file parser.cpp.

Referenced by operator()().

Definition at line 421 of file parser.cpp.

Referenced by operator()().

Definition at line 420 of file parser.cpp.

Referenced by operator()().

Definition at line 422 of file parser.cpp.

Referenced by operator()().


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

Generated by doxygen 1.7.1 on Fri May 25 2012 01:16:19 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs