Example #1
0
  //
  // Save
  //
  // Save a task
  //
  void SaveTask(FScope *fScope, const char *name, Task &task)
  {
    // Write the name given
    fScope = fScope->AddFunction(name);

    // Add the task configuration (type)
    fScope->AddArgString(task.GetName());

    // Add the task id
    fScope->AddArgInteger(task.GetTaskId());

    // Let the task do the rest
    task.Save(fScope);
  }