Concordia
concordia_config.hpp
1 #ifndef CONCORDIA_CONFIG_HDR
2 #define CONCORDIA_CONFIG_HDR
3 
4 #include <string>
5 #include <list>
6 #include <libconfig.h++>
7 
8 #include "concordia/concordia_exception.hpp"
9 
14 public:
20  explicit ConcordiaConfig(const std::string & configFilePath)
21  throw(ConcordiaException);
22 
25  virtual ~ConcordiaConfig();
26 
31  std::string & getHtmlTagsFilePath() {
32  return _htmlTagsFilePath;
33  }
34 
39  bool & isStopWordsEnabled() {
40  return _stopWordsEnabled;
41  }
42 
47  std::string & getStopWordsFilePath() {
48  return _stopWordsFilePath;
49  }
50 
55  std::string & getNamedEntitiesFilePath() {
56  return _namedEntitiesFilePath;
57  }
58 
63  double getAnubisThreshold() {
64  return _anubisThreshold;
65  }
66 
67 private:
68  libconfig::Config _config;
69 
70  std::string _htmlTagsFilePath;
71 
72  bool _stopWordsEnabled;
73 
74  std::string _stopWordsFilePath;
75 
76  std::string _namedEntitiesFilePath;
77 
78  double _anubisThreshold;
79 
80  std::string _readConfigParameterStr(const std::string & name)
81  throw(ConcordiaException);
82 
83  std::string _readConfigParameterStr(const std::string & name,
84  const std::string & defaultValue)
85  throw(ConcordiaException);
86 };
87 
88 #endif
virtual ~ConcordiaConfig()
Definition: concordia_config.cpp:39
Definition: concordia_exception.hpp:11
std::string & getHtmlTagsFilePath()
Definition: concordia_config.hpp:31
std::string & getNamedEntitiesFilePath()
Definition: concordia_config.hpp:55
ConcordiaConfig(const std::string &configFilePath)
Definition: concordia_config.cpp:14
double getAnubisThreshold()
Definition: concordia_config.hpp:63
bool & isStopWordsEnabled()
Definition: concordia_config.hpp:39
std::string & getStopWordsFilePath()
Definition: concordia_config.hpp:47
Definition: concordia_config.hpp:13