SimpleCommandNode factory. More...
#include <senf/Utils/Console/Node.hh>
Public Types | |
typedef SimpleCommandNode | node_type |
typedef SimpleCommandNode & | result_type |
Public Member Functions | |
SimpleCommand (SimpleCommandNode::Function fn) | |
SimpleCommand const & | doc (std::string const &doc) const |
Set simple command documentation. More... | |
SimpleCommand const & | shortdoc (std::string const &doc) const |
Set simple command short documentation. More... | |
SimpleCommandNode factory.
This factory will create a SimpleCommandNode calling the given callback. A SimpleCommandNode does not support overloading or automatic argument parsing.
|
explicit |
SimpleCommand const& senf::console::factory::SimpleCommand::doc | ( | std::string const & | doc | ) | const |
Set simple command documentation.
SimpleCommand const& senf::console::factory::SimpleCommand::shortdoc | ( | std::string const & | doc | ) | const |
Set simple command short documentation.