2017-04-30 05:39:03 +00:00
|
|
|
#ifndef FTESTS_UNITS_H
|
|
|
|
#define FTESTS_UNITS_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "../json/json.h"
|
2017-06-09 03:49:13 +00:00
|
|
|
#include "JSON_Loader.h"
|
2017-04-30 05:39:03 +00:00
|
|
|
#include "Unit.h"
|
|
|
|
|
2017-06-09 03:49:13 +00:00
|
|
|
class Suite: public JSON_Loader
|
2017-04-30 05:39:03 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::vector<Unit> units;
|
|
|
|
|
|
|
|
public:
|
|
|
|
// constructor
|
|
|
|
Suite( std::string filename );
|
2017-06-09 03:49:13 +00:00
|
|
|
Suite();
|
2017-04-30 05:39:03 +00:00
|
|
|
|
2017-06-09 03:49:13 +00:00
|
|
|
int load_file( std::string filename );
|
2017-04-30 05:39:03 +00:00
|
|
|
// returns the unit type identified by name or null
|
|
|
|
Unit get_unit(std::string provided_name);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FTESTS_UNITS_H
|