The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 122 of file map_command_handler.hpp.

Constructor & Destructor Documentation

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 128 of file map_command_handler.hpp.

Member Function Documentation

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

Definition at line 137 of file map_command_handler.hpp.

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

Definition at line 133 of file map_command_handler.hpp.

Member Data Documentation

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

Definition at line 127 of file map_command_handler.hpp.

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

Definition at line 124 of file map_command_handler.hpp.

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

Definition at line 125 of file map_command_handler.hpp.

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

Definition at line 126 of file map_command_handler.hpp.


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