2017-04-30 05:39:03 +00:00
|
|
|
#ifndef FTESTS_TASK_H
|
|
|
|
#define FTESTS_TASK_H
|
|
|
|
#include <string>
|
|
|
|
#include "../json/json.h"
|
2017-06-09 03:49:13 +00:00
|
|
|
#include "Unit.h"
|
|
|
|
#include "Suite.h"
|
2017-04-30 05:39:03 +00:00
|
|
|
|
|
|
|
class Task
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::string name;
|
|
|
|
Json::Value dependencies;
|
|
|
|
bool has_succeeded;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Task( Json::Value loader_root );
|
2017-06-09 03:49:13 +00:00
|
|
|
Task();
|
|
|
|
|
|
|
|
int load_root( Json::Value loader_root );
|
|
|
|
|
2017-04-30 05:39:03 +00:00
|
|
|
std::string get_name();
|
|
|
|
Json::Value get_dependencies();
|
|
|
|
Json::Value set_dependencies();
|
2017-06-09 03:49:13 +00:00
|
|
|
|
|
|
|
// appends associated_unit as child member
|
2017-04-30 05:39:03 +00:00
|
|
|
bool isDone();
|
|
|
|
void finish();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FTESTS_TASK_H
|