tool.h (451B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef tool_h__ 6 #define tool_h__ 7 8 #include <string> 9 #include <vector> 10 11 class Tool { 12 public: 13 virtual bool Run(const std::vector<std::string>& arguments) = 0; 14 virtual ~Tool() {} 15 16 private: 17 virtual void Usage() = 0; 18 }; 19 20 #endif // tool_h__