The Battle for Wesnoth  1.19.5+dev
Static Public Member Functions | List of all members
variable_info_implementation::vi_policy_throw Class Reference

Will throw an exception when trying to access a nonexistent table. More...

#include <variable_info_detail.hpp>

Static Public Member Functions

static configget_child_at (config &cfg, const std::string &key, int index)
 
static std::string error_message (const std::string &name)
 

Detailed Description

Will throw an exception when trying to access a nonexistent table.

Note that the other types can throw too if name is invlid, such as '..[[[a'.

Definition at line 84 of file variable_info_detail.hpp.

Member Function Documentation

◆ error_message()

static std::string variable_info_implementation::vi_policy_throw::error_message ( const std::string &  name)
inlinestatic

Definition at line 97 of file variable_info_detail.hpp.

◆ get_child_at()

static config& variable_info_implementation::vi_policy_throw::get_child_at ( config cfg,
const std::string &  key,
int  index 
)
inlinestatic

Definition at line 87 of file variable_info_detail.hpp.

References utf8::index(), and config::optional_child().


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