Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
tools
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
33
class
DataCleaner
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
}
ISM::TableHelper::dropModelTables
void dropModelTables() const
Definition:
TableHelper.cpp:149
ISM::DataCleaner
Definition:
DataCleaner.hpp:33
ISM::DataCleaner::cleanRecords
void cleanRecords(const std::vector< std::string > &databaseFiles)
Definition:
DataCleaner.hpp:46
ISM::DataCleaner::cleanModels
void cleanModels(const std::vector< std::string > &databaseFiles)
Definition:
DataCleaner.hpp:36
ISM::TableHelper::dropRecordTables
void dropRecordTables() const
Definition:
TableHelper.cpp:130
ISM::TableHelper
Definition:
TableHelper.hpp:46
ISM
this namespace contains all generally usable classes.
Definition:
AcceptanceFunction.hpp:22
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