rex/examplar.cpp

20 lines
443 B
C++
Raw Normal View History

2017-04-18 23:04:21 +00:00
#include <iostream>
#include "src/json/json.h"
#include "src/loaders.h"
int main()
{
2017-04-19 05:50:34 +00:00
Conf configuration = Conf("config.json");
UnitHolder unitHolder = UnitHolder( configuration.get_units_path() );
Plan plan = Plan( configuration.get_plan_path() );
2017-04-19 06:27:54 +00:00
2017-04-19 05:50:34 +00:00
for ( int i = 0; i < plan.tasks.size(); ++i )
{
2017-04-19 06:27:54 +00:00
std::cout << unitHolder.select_unit( plan.tasks[i].get_name() ).get_target() << std::endl;
2017-04-19 05:54:34 +00:00
}
2017-04-19 05:50:34 +00:00
2017-04-18 23:04:21 +00:00
return 0;
}