2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 16:27:43 +00:00

driver frontend in place

This commit is contained in:
Jack Andersen
2015-05-19 19:22:32 -10:00
parent 66d07af26e
commit 93a602be9a
17 changed files with 419 additions and 93 deletions

View File

@@ -1,14 +1,29 @@
#ifndef CTOOL_BASE
#define CTOOL_BASE
#include <string>
#include <vector>
#include <HECLDatabase.hpp>
struct SToolPassInfo
{
std::string pname;
std::vector<std::string> args;
std::string output;
unsigned verbosityLevel = 0;
bool force = false;
};
class CToolBase
{
protected:
const std::vector<std::string>& m_args;
const SToolPassInfo& m_info;
public:
CToolBase(const std::vector<std::string>& args)
: m_args(args) {}
CToolBase(const SToolPassInfo& info)
: m_info(info) {}
virtual ~CToolBase() {}
virtual std::string toolName() const=0;
virtual int run()=0;
};
#endif // CTOOL_BASE