2017-04-30 05:39:03 +00:00
|
|
|
//
|
|
|
|
// Created by phanes on 4/29/17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef FTESTS_UNIT_H
|
|
|
|
#define FTESTS_UNIT_H
|
|
|
|
#include <string>
|
|
|
|
#include "../json/json.h"
|
|
|
|
|
|
|
|
class Unit
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::string name;
|
|
|
|
std::string target;
|
|
|
|
std::string output;
|
|
|
|
std::string rectifier;
|
|
|
|
std::string active;
|
|
|
|
std::string required;
|
|
|
|
std::string rectify;
|
|
|
|
|
|
|
|
public:
|
2017-06-09 03:49:13 +00:00
|
|
|
Unit();
|
2017-04-30 05:39:03 +00:00
|
|
|
Unit( Json::Value loader_root );
|
2017-06-09 03:49:13 +00:00
|
|
|
|
|
|
|
int load_root( Json::Value loader_root );
|
|
|
|
|
2017-04-30 05:39:03 +00:00
|
|
|
std::string get_name();
|
|
|
|
std::string get_target();
|
|
|
|
std::string get_output();
|
|
|
|
std::string get_rectifier();
|
|
|
|
std::string get_active();
|
|
|
|
std::string get_required();
|
|
|
|
std::string get_rectify();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FTESTS_UNIT_H
|