DataCleaner.hpp
Go to the documentation of this file.
1 
19 #pragma once
20 
21 #include "../utility/TableHelper.hpp"
22 
23 #include <string>
24 #include <vector>
25 
26 
27 namespace ISM
28 {
29 
34 {
35  public:
36  void cleanModels(const std::vector<std::string>& databaseFiles)
37  {
38  for (const std::string& databaseFile : databaseFiles)
39  {
40  TableHelper database(databaseFile);
41  std::cout << "deleting model from " << databaseFile << std::endl;
42  database.dropModelTables();
43  }
44  }
45 
46  void cleanRecords(const std::vector<std::string>& databaseFiles)
47  {
48  for (const std::string& databaseFile : databaseFiles)
49  {
50  TableHelper database(databaseFile);
51  std::cout << "deleting record from " << databaseFile << std::endl;
52  database.dropRecordTables();
53  }
54  }
55 };
56 }
void dropModelTables() const
void cleanRecords(const std::vector< std::string > &databaseFiles)
Definition: DataCleaner.hpp:46
void cleanModels(const std::vector< std::string > &databaseFiles)
Definition: DataCleaner.hpp:36
void dropRecordTables() const
this namespace contains all generally usable classes.


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40