The Battle for Wesnoth  1.15.2+dev
Static Public Member Functions | List of all members
ai::variant_value_translator< std::string > Class Template Reference

#include <value_translator.hpp>

Static Public Member Functions

static void variant_to_value (const wfl::variant &var, std::string &value)
 
static void value_to_variant (const std::string &value, wfl::variant &var)
 
static wfl::variant value_to_variant (const std::string &value)
 
static std::string variant_to_value (const wfl::variant &var)
 

Detailed Description

template<>
class ai::variant_value_translator< std::string >

Definition at line 301 of file value_translator.hpp.

Member Function Documentation

◆ value_to_variant() [1/2]

static void ai::variant_value_translator< std::string >::value_to_variant ( const std::string &  value,
wfl::variant var 
)
inlinestatic

Definition at line 309 of file value_translator.hpp.

◆ value_to_variant() [2/2]

static wfl::variant ai::variant_value_translator< std::string >::value_to_variant ( const std::string &  value)
inlinestatic

Definition at line 314 of file value_translator.hpp.

◆ variant_to_value() [1/2]

static void ai::variant_value_translator< std::string >::variant_to_value ( const wfl::variant var,
std::string &  value 
)
inlinestatic

Definition at line 304 of file value_translator.hpp.

References wfl::variant::as_string().

◆ variant_to_value() [2/2]

static std::string ai::variant_value_translator< std::string >::variant_to_value ( const wfl::variant var)
inlinestatic

Definition at line 321 of file value_translator.hpp.


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