suite reimpl started, good stopping point

This commit is contained in:
Chris Punches
2017-06-09 00:49:56 -04:00
parent 7db682e503
commit eef2dd2173
13 changed files with 228 additions and 211 deletions

View File

@@ -41,11 +41,14 @@ Task Plan::get_task(std::string provided_name)
return * returnable;
}
Plan::Plan( std::string filename ): JSON_Loader( filename )
Plan::Plan( std::string filename ): JSON_Loader()
/* Plan loads a file and deserializes the Unit JSON object to Task types as a vector member
* Plan { vector<Task> }
*/
{
// plan always loads from file
this->load_json_file( filename );
Json::Value raw_tasks = this->as_serialized()["plan"];
for ( int index = 0; index < raw_tasks.size(); index++ )