diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-30 23:27:30 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-30 23:27:30 +0200 |
commit | 94e7c81fe571dd6b977e1da1c43ca54323fe4de1 (patch) | |
tree | 565e913f64d527248ad4c2806cd2bd6ef1d4ea8c /src/Client/CommandParser.h | |
parent | 4f8c2ba997d4f89b392a3b0683773a71d21a4f80 (diff) | |
download | mad-94e7c81fe571dd6b977e1da1c43ca54323fe4de1.tar mad-94e7c81fe571dd6b977e1da1c43ca54323fe4de1.zip |
Man kann jetzt mehrere Hosts mit einem Befehl herunterfahren oder neustarten
Diffstat (limited to 'src/Client/CommandParser.h')
-rw-r--r-- | src/Client/CommandParser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Client/CommandParser.h b/src/Client/CommandParser.h index 86be22f..daca0b9 100644 --- a/src/Client/CommandParser.h +++ b/src/Client/CommandParser.h @@ -21,8 +21,10 @@ #define MAD_CLIENT_COMMANDPARSER_H_ #include "CommandManager.h" +#include <Common/HostInfo.h> #include <Common/Request.h> +#include <map> #include <string> #include <vector> @@ -56,6 +58,8 @@ class CommandParser { const Command* findCommand(const std::string& command); void printUsage(const std::string& command); + std::map<std::string, Common::HostInfo> parseHostList(const std::vector<std::string> &args, bool mustBeActive = false); + void helpCommand(const std::vector<std::string> &args); void listHostsCommand(const std::vector<std::string> &args); void rebootCommand(const std::vector<std::string> &args); |