The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Public Attributes | List of all members
events::map_command_handler< Worker >::command Struct Reference

#include <map_command_handler.hpp>

Public Member Functions

 command (command_handler h, const std::string &help="", const std::string &usage="", const std::string &flags="")
 
bool has_flag (const char f) const
 
commandadd_flag (const char f)
 

Public Attributes

command_handler handler
 
std::string help
 
std::string usage
 
std::string flags
 

Detailed Description

template<class Worker>
struct events::map_command_handler< Worker >::command

Definition at line 126 of file map_command_handler.hpp.

Constructor & Destructor Documentation

◆ command()

template<class Worker >
events::map_command_handler< Worker >::command::command ( command_handler  h,
const std::string &  help = "",
const std::string &  usage = "",
const std::string &  flags = "" 
)
inlineexplicit

Definition at line 132 of file map_command_handler.hpp.

Member Function Documentation

◆ add_flag()

template<class Worker >
command& events::map_command_handler< Worker >::command::add_flag ( const char  f)
inline

◆ has_flag()

template<class Worker >
bool events::map_command_handler< Worker >::command::has_flag ( const char  f) const
inline

Member Data Documentation

◆ flags

template<class Worker >
std::string events::map_command_handler< Worker >::command::flags

◆ handler

template<class Worker >
command_handler events::map_command_handler< Worker >::command::handler

Definition at line 128 of file map_command_handler.hpp.

◆ help

template<class Worker >
std::string events::map_command_handler< Worker >::command::help

Definition at line 129 of file map_command_handler.hpp.

◆ usage

template<class Worker >
std::string events::map_command_handler< Worker >::command::usage

Definition at line 130 of file map_command_handler.hpp.


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