configFile.h 468 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #ifndef CONFIGFILE_H
  3. #define CONFIGFILE_H
  4. #include <string>
  5. #include <vector>
  6. class ConfigFile {
  7. public:
  8. ConfigFile(std::string filePath);
  9. ~ConfigFile();
  10. bool isNewParagraph(std::string input);
  11. bool GetNextParagraph(std::string& aktparamgraph, bool &disabled, bool &eof);
  12. bool getNextLine(std::string* rt, bool &disabled, bool &eof);
  13. bool ConfigFileExists(){return pFile;};
  14. private:
  15. FILE* pFile;
  16. };
  17. #endif //CONFIGFILE_H