hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxSchemaFile.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINX_SCHEMA_FILE_HPP
15 #define SPHINX_SCHEMA_FILE_HPP
16 
17 #include <Poco/SAX/InputSource.h>
18 #include <Poco/DOM/Node.h>
19 #include <Poco/DOM/Document.h>
20 #include <Poco/AutoPtr.h>
21 
22 #include <iostream>
23 #include <map>
24 
25 namespace HCE
26 {
27 namespace sphinx
28 {
29 //-----------------------------------------------------------------------------
31 {
32 public:
33  explicit SphinxSchemaFile(std::istream& istrSchema);
34  virtual ~SphinxSchemaFile(void) {};
35 
36  bool getFields(std::vector<std::pair<std::string, int> >& Vec);
37  bool getNames(std::vector<std::string>& names);
38 
39  std::string getErrorMsg(void) const {return errorMsg;}
40  bool isError(void) const {return _IsError;}
41  unsigned int getAttributesCount(void) const {return attributesCount;}
42 private:
43  Poco::XML::InputSource sourceSchema;
44  std::string errorMsg;
45  bool _IsError;
46  unsigned int attributesCount;
47 };
48 //-----------------------------------------------------------------------------
49 //-----------------------------------------------------------------------------
50 } // namespace sphinx
51 } // namespace HCE
52 
53 #endif // SPHINX_SCHEMA_FILE_HPP