#include <boost/optional.hpp>
//#include "OverloadedCommand.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
namespace console {
: public senf::intrusive_refcount
{
public:
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
// Types
typedef boost::intrusive_ptr<CommandOverload> ptr;
typedef boost::intrusive_ptr<CommandOverload const> cptr;
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
virtual ~CommandOverload();
typedef std::vector<CommandOverload::ptr> Overloads;
public:
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
// Types
typedef boost::shared_ptr<OverloadedCommandNode> ptr;
typedef boost::iterator_range<Overloads::const_iterator> OverloadsRange;
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
///\name Structors and default members
- ///@{
+ //\{
static ptr create();
- ///@}
- ///////////////////////////////////////////////////////////////////////////
+ //\}
+ //-////////////////////////////////////////////////////////////////////////
template <class Command>
Command & add(boost::intrusive_ptr<Command> overload); ///< Add an additional overload
: public CommandOverload
{
public:
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
// Types
typedef boost::intrusive_ptr<SimpleCommandOverload> ptr;
typedef boost::function<void (std::ostream &, ParseCommandInfo const &)> Function;
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
///\name Structors and default members
- ///@{
+ //\{
static SimpleCommandOverload::ptr create(Function fn);
///< Create new SimpleCommandOverload
/**< \param[in] fn callback to call */
- ///@}
- ///////////////////////////////////////////////////////////////////////////
+ //\}
+ //-////////////////////////////////////////////////////////////////////////
SimpleCommandOverload & doc(std::string const & doc);
///< Assign overload specific documentation
}}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#include "OverloadedCommand.cci"
//#include "OverloadedCommand.ct"
#include "OverloadedCommand.cti"