-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration_parser.hpp
47 lines (36 loc) · 1.3 KB
/
configuration_parser.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/.
*
*
* Copyright (c) 2016, Lutz, Clemens <[email protected]>
*/
#ifndef CONFIGURATION_PARSER_HPP
#define CONFIGURATION_PARSER_HPP
#include "benchmark_configuration.hpp"
#include "kmeans_configuration.hpp"
#include "labeling_configuration.hpp"
#include "mass_update_configuration.hpp"
#include "centroid_update_configuration.hpp"
#include "fused_configuration.hpp"
#include <cstddef>
#include <string>
#include <boost/program_options.hpp>
namespace Clustering {
class ConfigurationParser {
public:
void parse_file(std::string file);
BenchmarkConfiguration get_benchmark_configuration();
KmeansConfiguration get_kmeans_configuration();
LabelingConfiguration get_labeling_configuration();
MassUpdateConfiguration get_mass_update_configuration();
CentroidUpdateConfiguration get_centroid_update_configuration();
FusedConfiguration get_fused_configuration();
private:
boost::program_options::options_description benchmark_options();
boost::program_options::options_description kmeans_options();
boost::program_options::variables_map vm;
};
}
#endif /* CONFIGURATION_PARSER_HPP */