HCE project C++ developers source code library
1.1.1
HCE project developer library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
SphinxDataFile.hpp
Go to the documentation of this file.
1
14
#ifndef SPHINX_DATA_FILE_H
15
#define SPHINX_DATA_FILE_H
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
24
namespace
HCE
25
{
26
namespace
sphinx
27
{
28
//-----------------------------------------------------------------------------
29
class
SphinxDataFile
30
{
31
public
:
32
SphinxDataFile
(
void
);
33
virtual
~SphinxDataFile
(
void
) {};
34
35
bool
append
(std::istream& is);
36
void
save
(std::ostream& os);
37
38
std::string
getErrorMsg
(
void
)
const
{
return
errorMsg;}
39
bool
isError
(
void
)
const
{
return
_IsError;}
40
41
size_t
documentCount
(std::istream& is);
42
bool
validateData
(std::istream& is);
43
private
:
44
Poco::AutoPtr<Poco::XML::Document> pOutDoc;
45
Poco::AutoPtr<Poco::XML::Element> pRoot;
46
std::string errorMsg;
47
bool
_IsError;
48
private
:
49
friend
std::ostream&
operator <<
(std::ostream& os,
const
SphinxDataFile
& dataFile);
50
};
51
//-----------------------------------------------------------------------------
52
//-----------------------------------------------------------------------------
53
}
// namespace sphinx
54
}
// namespace HCE
55
56
#endif // SPHINX_DATA_FILE_H
sources
sphinx
src
SphinxDataFile.hpp
Generated on Mon Jan 13 2014 13:08:39 for HCE project C++ developers source code library by
1.8.1.2