2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-12 01:39:06 +00:00
metaforce/hecl/driver/CToolBase.hpp
2015-05-19 19:22:32 -10:00

30 lines
525 B
C++

#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 SToolPassInfo& m_info;
public:
CToolBase(const SToolPassInfo& info)
: m_info(info) {}
virtual ~CToolBase() {}
virtual std::string toolName() const=0;
virtual int run()=0;
};
#endif // CTOOL_BASE