// Custom includes
#include "Node.hh"
#include <boost/intrusive_ptr.hpp>
+#include <boost/range/iterator_range.hpp>
#include "../../Utils/intrusive_refcount.hh"
//#include "OverloadedCommand.mpp"
std::string type; ///< Argument type (string representation)
std::string defaultValue; ///< Default value (string representation) or empty string
std::string doc; ///< Documentation for this argument
+ bool singleToken; ///< \c true, if argument is parsed from single token
};
/** \brief Base class for command overload of OverloadedCommandNode
class OverloadedCommandNode
: public CommandNode
{
+ typedef std::vector<CommandOverload::ptr> Overloads;
+
public:
///////////////////////////////////////////////////////////////////////////
// Types
typedef OverloadedCommandNode node_type;
typedef OverloadedCommandNode & return_type;
+ typedef boost::iterator_range<Overloads::const_iterator> OverloadsRange;
+
///////////////////////////////////////////////////////////////////////////
///\name Structors and default members
///@{
/**< overloadIndex returns the index of \a overload in the
internal list of overloads. */
+ OverloadsRange overloads() const; ///< Get all overloads
+
ptr thisptr();
cptr thisptr() const;
virtual void v_execute(boost::any & rv, std::ostream & os, ParseCommandInfo const & command)
const;
- typedef std::vector<CommandOverload::ptr> Overloads;
-
Overloads overloads_;
std::string doc_;
std::string shortdoc_;