X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FExecutor.hh;h=81dafd9468b3e77e79ee630b98fec9dd75ced674;hb=748363b235c4651b3992cc291a95dc2e18e45724;hp=93071acbeb2c0ddd61443022cee52ab86006098c;hpb=c70f7413515b513656f850f51a3cc2ea9d776a37;p=senf.git diff --git a/Console/Executor.hh b/Console/Executor.hh index 93071ac..81dafd9 100644 --- a/Console/Executor.hh +++ b/Console/Executor.hh @@ -58,14 +58,13 @@ namespace console { : boost::noncopyable { SENF_LOG_CLASS_AREA(); - SENF_LOG_DEFAULT_LEVEL( senf::log::NOTICE ); + SENF_LOG_DEFAULT_LEVEL( senf::log::VERBOSE ); public: /////////////////////////////////////////////////////////////////////////// // Types - typedef boost::iterator_range< ParseCommandInfo::argument_iterator> Arguments; - - struct ExitException {}; ///< Thrown by built-in 'exit' command + /// Thrown by built-in 'exit' command + struct ExitException {}; /////////////////////////////////////////////////////////////////////////// //\/name Structors and default members @@ -76,9 +75,15 @@ namespace console { ///\} /////////////////////////////////////////////////////////////////////////// - void operator()(ParseCommandInfo const & command, std::ostream & output); + void execute(std::ostream & output, ParseCommandInfo const & command); + ///< Execute command + /**< Output will be written to \a output. + Same as operator()(). */ + + void operator()(std::ostream & output, ParseCommandInfo const & command); ///< Execute command - /**< Output will be written to \a output. */ + /**< Output will be written to \a output. + Same as execute(). */ DirectoryNode & cwd() const; ///< Current working directory protected: