The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
addon_info_translation Struct Reference

#include <info.hpp>

Public Member Functions

 addon_info_translation ()
 
 addon_info_translation (bool sup, std::string titl, std::string desc)
 
 addon_info_translation (const config &cfg)
 
 addon_info_translation (const addon_info_translation &)=default
 
addon_info_translationoperator= (const addon_info_translation &o)=default
 
void read (const config &cfg)
 
void write (config &cfg) const
 
bool valid ()
 

Public Attributes

bool supported
 
std::string title
 
std::string description
 

Static Public Attributes

static addon_info_translation invalid = {false, "", ""}
 

Detailed Description

Definition at line 30 of file info.hpp.

Constructor & Destructor Documentation

◆ addon_info_translation() [1/4]

addon_info_translation::addon_info_translation ( )
inline

Definition at line 38 of file info.hpp.

◆ addon_info_translation() [2/4]

addon_info_translation::addon_info_translation ( bool  sup,
std::string  titl,
std::string  desc 
)
inline

Definition at line 44 of file info.hpp.

◆ addon_info_translation() [3/4]

addon_info_translation::addon_info_translation ( const config cfg)
inlineexplicit

Definition at line 51 of file info.hpp.

References read().

◆ addon_info_translation() [4/4]

addon_info_translation::addon_info_translation ( const addon_info_translation )
default

Member Function Documentation

◆ operator=()

addon_info_translation& addon_info_translation::operator= ( const addon_info_translation o)
default

◆ read()

void addon_info_translation::read ( const config cfg)

Definition at line 60 of file info.cpp.

References description, supported, and title.

Referenced by addon_info_translation().

◆ valid()

bool addon_info_translation::valid ( )
inline

Definition at line 67 of file info.hpp.

References title.

◆ write()

void addon_info_translation::write ( config cfg) const

Definition at line 67 of file info.cpp.

References description, supported, and title.

Member Data Documentation

◆ description

std::string addon_info_translation::description

Definition at line 36 of file info.hpp.

Referenced by read(), and write().

◆ invalid

addon_info_translation addon_info_translation::invalid = {false, "", ""}
static

Definition at line 32 of file info.hpp.

Referenced by addon_info::translated_info().

◆ supported

bool addon_info_translation::supported

Definition at line 34 of file info.hpp.

Referenced by read(), and write().

◆ title

std::string addon_info_translation::title

Definition at line 35 of file info.hpp.

Referenced by read(), valid(), and write().


The documentation for this struct was generated from the following files: