1
0

RunDataLite.h 515 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <vector>
  3. #include <string>
  4. #include <fstream>
  5. struct SolutionPointData {
  6. int iteration;
  7. double objectiveFunction;
  8. int particleNumber;
  9. std::vector<bool> bitVec;
  10. };
  11. class RunDataLite
  12. {
  13. public:
  14. std::string name;
  15. std::string information;
  16. std::string filePath;
  17. std::vector<SolutionPointData> solutionVec;
  18. RunDataLite(std::string filePath);
  19. bool badFile();
  20. private:
  21. bool badFileFlag = false;
  22. std::fstream fileStream;
  23. int actualLine = 0;
  24. void getLine(std::string& bufferString);
  25. };