Project.cpp 627 B

1234567891011121314151617181920212223242526272829
  1. #include "pch.h"
  2. #include "Project.h"
  3. void Project::addMetalogFile(std::string metaLogFile)
  4. {
  5. //If file exist and can be open
  6. runVec.push_back(Wrapper(metaLogFile));
  7. }
  8. void Project::removeRunData(RunData* data)
  9. {
  10. auto wrapperIter = std::find_if(runVec.begin(), runVec.end(), [&data](Wrapper& wrap) -> bool {return(&wrap.data == data); });
  11. //Remove RunData from all GraphVec
  12. //TODO
  13. //remove from list -> delete itself;
  14. //TODO
  15. }
  16. void Project::addGraphView(GraphView* view)
  17. {
  18. viewVec.push_back(view);
  19. }
  20. void Project::assignRunDataPointVecToView(RunData* data, std::vector<GraphDataPoint>* vec, GraphView* view)
  21. {
  22. }