senf::console::SimpleCommandOverload Class Reference

Basic command overload. More...

#include <senf/Utils/Console/OverloadedCommand.hh>

Inheritance diagram for senf::console::SimpleCommandOverload:
Inheritance graph
[legend]

List of all members.


Detailed Description

Basic command overload.

This is an implementation of CommandOverload which allows to call an arbitrary callback with the correct signature (void (std::ostream &, senf::console::ParseCommandInfo const &))

Definition at line 229 of file OverloadedCommand.hh.


Public Types

typedef boost::intrusive_ptr
< SimpleCommandOverload
ptr
typedef boost::function< void(std::ostream
&, ParseCommandInfo const &)> 
Function

Public Member Functions

SimpleCommandOverload doc (std::string const &doc)
  Assign overload specific documentation.

Structors and default members

static SimpleCommandOverload::ptr  create (Function fn)
  Create new SimpleCommandOverload.

Member Typedef Documentation

typedef boost::function<void (std::ostream &, ParseCommandInfo const &)> senf::console::SimpleCommandOverload::
Function

Definition at line 237 of file OverloadedCommand.hh.

typedef boost::intrusive_ptr<SimpleCommandOverload> senf::console::SimpleCommandOverload::
ptr

Reimplemented from senf::console::CommandOverload.

Definition at line 236 of file OverloadedCommand.hh.


Member Function Documentation

senf::console::SimpleCommandOverload::ptr senf::console::SimpleCommandOverload::
create ( Function  fn )

Create new SimpleCommandOverload.

Parameters:
[in]  fn  callback to call

Definition at line 140 of file OverloadedCommand.cci.

senf::console::SimpleCommandOverload & senf::console::SimpleCommandOverload::
doc ( std::string const &  doc )

Assign overload specific documentation.

Definition at line 146 of file OverloadedCommand.cci.


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