Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. ***to simulator.h*****
  2. boost::property_tree::ptree reportsPt;
  3. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  4.  
  5.  
  6. void junctionReport:: writeReport(){
  7.  
  8. Junction& reportedJunction = (*simulator.JunctionMap[junctionId]);
  9. simulator.reportsPt.add(id + ".junctionId" , junctionId);
  10. string timeSlices="";
  11. if (reportedJunction.incomingRoads.empty()==false){
  12. for (vector<Road*>::iterator it = reportedJunction.incomingRoads.begin(); it!=reportedJunction.incomingRoads.end(); it++){
  13. string timeSlice = SSTR((*it)->greenSliceTime);
  14. string leftGreen = SSTR ((*it)->leftGreenTime)
  15. }
  16.  
  17. }
  18.  
  19. simulator.reportsPt.add(id + ".timeSlices" , reportedCar.history);
  20. simulator.reportsPt.add(id + ".faultyTimeLeft" , reportedCar.faultTimeLeft);
  21. write_ini( "Report.ini" , simulator.reportsPt );
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement