rex/src/loaders/Task.h

31 lines
599 B
C++

#ifndef FTESTS_TASK_H
#define FTESTS_TASK_H
#include <string>
#include "../json/json.h"
#include "Unit.h"
#include "Suite.h"
class Task
{
private:
std::string name;
Json::Value dependencies;
bool has_succeeded;
public:
Task( Json::Value loader_root );
Task();
int load_root( Json::Value loader_root );
std::string get_name();
Json::Value get_dependencies();
Json::Value set_dependencies();
// appends associated_unit as child member
bool isDone();
void finish();
};
#endif //FTESTS_TASK_H