BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
algorithm
AlgorithmConfig.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_ALGORITHM_CONFIG_H__
18
#define __BUSBOY_ALGORITHM_CONFIG_H__
19
20
#include <string>
21
#include <set>
22
#include <map>
23
24
namespace
BUSBOY {
25
26
class
AlgorithmConfigImpl;
27
34
class
AlgorithmConfig
{
35
36
public
:
37
38
AlgorithmConfig
();
39
40
AlgorithmConfig
(
const
std::map<std::string,std::string>& params);
41
AlgorithmConfig
(
const
AlgorithmConfig
& config);
42
43
std::set<std::string>
getAllParamNames
()
const
;
44
45
bool
hasConfigParam
(
const
std::string& name)
const
;
46
47
std::string
getConfigParam
(
const
std::string& name)
const
;
48
49
bool
getConfigParamAsBoolean
(
const
std::string& name)
const
;
50
51
int
getConfigParamAsInt
(
const
std::string& name)
const
;
52
53
double
getConfigParamAsDouble
(
const
std::string& name)
const
;
54
55
bool
operator==
(
const
AlgorithmConfig
& config)
const
;
56
57
bool
operator!=
(
const
AlgorithmConfig
& config)
const
;
58
59
AlgorithmConfig
&
operator=
(
const
AlgorithmConfig
& config);
60
61
~AlgorithmConfig
();
62
63
private
:
64
65
AlgorithmConfigImpl
* m_impl;
66
67
};
68
69
}
70
71
#endif
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.