The Battle for Wesnoth  1.17.12+dev
Public Member Functions | Private Attributes | List of all members
config_attribute_value::true_false Class Reference

A wrapper for bool to get the correct streaming ("true"/"false"). More...

#include <config_attribute_value.hpp>

Public Member Functions

 true_false (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 ("true"/"false").

Most visitors can simply treat this as bool.

Definition at line 59 of file config_attribute_value.hpp.

Constructor & Destructor Documentation

◆ true_false()

config_attribute_value::true_false::true_false ( bool  value = false)

Definition at line 63 of file config_attribute_value.hpp.

Member Function Documentation

◆ operator bool()

config_attribute_value::true_false::operator bool ( ) const

Definition at line 64 of file config_attribute_value.hpp.

References value_.

◆ str()

const std::string& config_attribute_value::true_false::str ( ) const

Member Data Documentation

◆ value_

bool config_attribute_value::true_false::value_

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