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

A wrapper for bool to get the correct streaming ("yes"/"no"). More...

#include <config.hpp>

Public Member Functions

 yes_no (bool value=false)
 
 operator bool () const
 
const std::stringstr () const
 

Private Attributes

bool value_
 

Detailed Description

A wrapper for bool to get the correct streaming ("yes"/"no").

Most visitors can simply treat this as bool.

Definition at line 243 of file config.hpp.

Constructor & Destructor Documentation

config::attribute_value::yes_no::yes_no ( bool  value = false)
inlineexplicit

Definition at line 247 of file config.hpp.

Member Function Documentation

config::attribute_value::yes_no::operator bool ( ) const
inline

Definition at line 248 of file config.hpp.

References value_.

const std::string& config::attribute_value::yes_no::str ( ) const
inline

Member Data Documentation

bool config::attribute_value::yes_no::value_
private

Definition at line 245 of file config.hpp.

Referenced by operator bool().


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