The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
config::attribute_value::string_visitor Class Reference

Visitor for converting a variant to a string. More...

Inheritance diagram for config::attribute_value::string_visitor:
Inheritance graph

Public Member Functions

std::string operator() (const boost::blank &) const
 
std::string operator() (const yes_no &b) const
 
std::string operator() (const true_false &b) const
 
std::string operator() (int i) const
 
std::string operator() (unsigned long long u) const
 
std::string operator() (double d) const
 
std::string operator() (std::string const &s) const
 
std::string operator() (t_string const &s) const
 

Detailed Description

Visitor for converting a variant to a string.

Definition at line 339 of file config.cpp.

Member Function Documentation

std::string config::attribute_value::string_visitor::operator() ( const boost::blank &  ) const
inline

Definition at line 343 of file config.cpp.

std::string config::attribute_value::string_visitor::operator() ( const yes_no b) const
inline

Definition at line 344 of file config.cpp.

References config::attribute_value::yes_no::str().

std::string config::attribute_value::string_visitor::operator() ( const true_false b) const
inline

Definition at line 345 of file config.cpp.

References config::attribute_value::true_false::str().

std::string config::attribute_value::string_visitor::operator() ( int  i) const
inline

Definition at line 346 of file config.cpp.

References i, and lexical_cast().

std::string config::attribute_value::string_visitor::operator() ( unsigned long long  u) const
inline

Definition at line 347 of file config.cpp.

References lexical_cast().

std::string config::attribute_value::string_visitor::operator() ( double  d) const
inline

Definition at line 348 of file config.cpp.

References d, and lexical_cast().

std::string config::attribute_value::string_visitor::operator() ( std::string const &  s) const
inline

Definition at line 349 of file config.cpp.

std::string config::attribute_value::string_visitor::operator() ( t_string const &  s) const
inline

Definition at line 350 of file config.cpp.

References t_string::str().


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