able to move to plan impl now

master
Chris Punches 2017-06-23 15:24:11 -04:00
parent fb87c61e86
commit 9c1580ad95
3 changed files with 5 additions and 6 deletions

View File

@ -4,6 +4,7 @@
int main( ) int main( )
{ {
bool verbose = true;
// A Plan is made up of Tasks, and a Suite is made up of Units. // A Plan is made up of Tasks, and a Suite is made up of Units.
// A Plan declares what units are executed and a Suite declares the definitions of those units. // A Plan declares what units are executed and a Suite declares the definitions of those units.
Conf configuration = Conf("/home/phanes/Development/internal/Examplar/conf/config.json"); Conf configuration = Conf("/home/phanes/Development/internal/Examplar/conf/config.json");
@ -14,10 +15,7 @@ int main( )
// std::cout << definitions_file << std::endl << plan_file << std::endl; // std::cout << definitions_file << std::endl << plan_file << std::endl;
Suite available_definitions; Suite available_definitions;
available_definitions.load_units_file( definitions_file, verbose );
// Suite * unit_definitions = new Suite();
// unit_definitions->load_file( definitions_file );
// Plan plan = Plan( plan_file ); // Plan plan = Plan( plan_file );

View File

@ -50,6 +50,9 @@ void Suite::load_units_file( std::string filename, bool verbose )
tmp_U.load_root( this->json_root[ index ] ); tmp_U.load_root( this->json_root[ index ] );
// append to this->units // append to this->units
this->units.push_back( tmp_U ); this->units.push_back( tmp_U );
if ( verbose ) {
std::cout << "Added unit " << tmp_U.get_name() << " to Suite." << std::endl;
}
} }
} }

View File

@ -1,6 +1,5 @@
#include "Task.h" #include "Task.h"
Task::Task() {} Task::Task() {}
Task::Task( Json::Value loader_root ) Task::Task( Json::Value loader_root )
@ -15,7 +14,6 @@ int Task::load_root(Json::Value loader_root)
this->has_succeeded = false; this->has_succeeded = false;
} }
std::string Task::get_name() std::string Task::get_name()
{ {
return this->name; return this->name;