hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxDataSourceParameters.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINX_DATA_SOURCE_PARAMETERS_HPP
15 #define SPHINX_DATA_SOURCE_PARAMETERS_HPP
16 
17 #include<iostream>
18 #include <map>
19 
20 namespace HCE
21 {
22 namespace sphinx
23 {
24 //-----------------------------------------------------------------------------
26 {
27 public:
28  typedef std::map<std::string, unsigned long long> PARAM_ATTR__MAP;
29 public:
31  explicit SphinxDataSourceParameters(std::istream& is);
32  virtual ~SphinxDataSourceParameters(void) {};
33 
34  bool load(std::istream& is);
35 
37 
38  unsigned long long getMaxDocId(void);
39  unsigned long long getDocumentsCount(void);
40 
41  std::string getErrorMsg(void) const {return errorMsg;}
42  bool isError(void) const {return _IsError;}
43 private:
44  PARAM_ATTR__MAP Map;
45  std::string errorMsg;
46  bool _IsError;
47 };
48 //-----------------------------------------------------------------------------
49 //-----------------------------------------------------------------------------
50 } // namespace sphinx
51 } // namespace HCE
52 
53 #endif // SPHINX_DATA_SOURCE_PARAMETERS_HPP