#include <senf/Utils/Console/Node.hh>
This CommandNode implementation simply forwards the output and arguments arguments to an arbitrary callback. Thus, it allows to add callbacks with the signature
void callback(std::ostream & os, senf::console::ParseCommandInfo const & command) { ... }
Definition at line 629 of file Node.hh.
Public Types |
|
typedef boost::shared_ptr < SimpleCommandNode > |
ptr |
typedef boost::shared_ptr < SimpleCommandNode const > |
cptr |
typedef boost::weak_ptr < SimpleCommandNode > |
weak_ptr |
typedef boost::function< void(std::ostream &, ParseCommandInfo const &)> |
Function |
typedef SimpleCommandNode | node_type |
typedef SimpleCommandNode & | return_type |
Public Member Functions |
|
ptr | thisptr () |
Get smart pointer to node. |
|
cptr | thisptr () const |
Get smart pointer to node (const). |
|
SimpleCommandNode & | doc (std::string const &doc) |
SimpleCommandNode & | shortdoc (std::string const &doc) |
Structors and default members |
|
static ptr | create (Function const &fn) |
Protected Member Functions |
|
SimpleCommandNode (Function const &fn) |
typedef boost::shared_ptr<SimpleCommandNode const> senf::console::SimpleCommandNode:: | ||||
cptr | ||||
Reimplemented from senf::console::CommandNode.
typedef boost::function<void (std::ostream &, ParseCommandInfo const &)> senf::console::SimpleCommandNode:: | ||||
Function | ||||
typedef SimpleCommandNode senf::console::SimpleCommandNode:: | ||||
node_type | ||||
typedef boost::shared_ptr<SimpleCommandNode> senf::console::SimpleCommandNode:: | ||||
ptr | ||||
Reimplemented from senf::console::CommandNode.
typedef SimpleCommandNode& senf::console::SimpleCommandNode:: | ||||
return_type | ||||
typedef boost::weak_ptr<SimpleCommandNode> senf::console::SimpleCommandNode:: | ||||
weak_ptr | ||||
Reimplemented from senf::console::CommandNode.
senf::console::SimpleCommandNode:: | ||||
SimpleCommandNode | ( | Function const & | fn | ) |
senf::console::SimpleCommandNode::ptr senf::console::SimpleCommandNode:: | ||||
create | ( | Function const & | fn | ) |
senf::console::SimpleCommandNode & senf::console::SimpleCommandNode:: | ||||
doc | ( | std::string const & | doc | ) |
senf::console::SimpleCommandNode & senf::console::SimpleCommandNode:: | ||||
shortdoc | ( | std::string const & | doc | ) |
senf::console::SimpleCommandNode::cptr senf::console::SimpleCommandNode:: | ||||
thisptr | () | |||
Get smart pointer to node (const).
Reimplemented from senf::console::CommandNode.
senf::console::SimpleCommandNode::ptr senf::console::SimpleCommandNode:: | ||||
thisptr | () | |||
Get smart pointer to node.
Reimplemented from senf::console::CommandNode.