X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FExecutor.hh;h=81dafd9468b3e77e79ee630b98fec9dd75ced674;hb=869df8df564cd4f4934d4cd1c1b290c2aeabbd92;hp=48d62ba251a0ff17039fb2a741d699086044dc60;hpb=9a782796586d1f6708e1baab64f2140c3c7972e8;p=senf.git diff --git a/Console/Executor.hh b/Console/Executor.hh index 48d62ba..81dafd9 100644 --- a/Console/Executor.hh +++ b/Console/Executor.hh @@ -63,8 +63,6 @@ namespace console { /////////////////////////////////////////////////////////////////////////// // Types - typedef boost::iterator_range< ParseCommandInfo::argument_iterator> Arguments; - /// Thrown by built-in 'exit' command struct ExitException {}; @@ -77,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: