The Battle for Wesnoth  1.15.2+dev
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_attribute_value.hpp>

Public Member Functions

 yes_no (bool value=false)
 
 operator bool () const
 
const std::string & str () 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 80 of file config_attribute_value.hpp.

Constructor & Destructor Documentation

◆ yes_no()

config_attribute_value::yes_no::yes_no ( bool  value = false)
inlineexplicit

Definition at line 84 of file config_attribute_value.hpp.

Member Function Documentation

◆ operator bool()

config_attribute_value::yes_no::operator bool ( ) const
inline

◆ str()

const std::string& config_attribute_value::yes_no::str ( ) const
inline

Member Data Documentation

◆ value_

bool config_attribute_value::yes_no::value_
private

Definition at line 82 of file config_attribute_value.hpp.


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