Template Class Parser::CmdFunction

Nested Relationships

This class is a nested type of Class Parser.

Inheritance Relationships

Base Type

  • public SmartPeak::cli::Parser::CmdBase

Class Documentation

template<typename T>
class CmdFunction : public SmartPeak::cli::Parser::CmdBase

Public Functions

inline explicit CmdFunction(const std::string &name, const std::string &alternative, const std::string &description, bool required, bool dominant)
inline virtual bool parse(std::ostream &output, std::ostream &error)
inline virtual std::string print_value() const

Public Members

std::function<T(CallbackArgs&)> callback
T value