The Battle for Wesnoth  1.15.3+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)
 
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.

Referenced by addon_info_translation(), and addon_info::read().

◆ 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 addon_info_translation(), and 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)
inline

Definition at line 61 of file info.hpp.

References description, read(), supported, title, and write().

◆ read()

void addon_info_translation::read ( const config cfg)

Definition at line 61 of file info.cpp.

References description, supported, and title.

Referenced by addon_info::addon_info(), addon_info_translation(), operator=(), and addon_info::operator=().

◆ valid()

bool addon_info_translation::valid ( )
inline

◆ write()

void addon_info_translation::write ( config cfg) const

Definition at line 68 of file info.cpp.

References description, supported, and title.

Referenced by operator=(), and addon_info::operator=().

Member Data Documentation

◆ description

std::string addon_info_translation::description

◆ invalid

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

Definition at line 32 of file info.hpp.

Referenced by addon_info::display_title(), and addon_info::translated_info().

◆ supported

bool addon_info_translation::supported

Definition at line 34 of file info.hpp.

Referenced by operator=(), read(), and write().

◆ title

std::string addon_info_translation::title

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