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
SphinxIndexer.hpp
Go to the documentation of this file.
1
14
#ifndef SPHINX_INDEXER_HPP
15
#define SPHINX_INDEXER_HPP
16
17
#include <Poco/Exception.h>
18
#include "
SphinxSearchInterface.hpp
"
19
#include "
CustomMessage.hpp
"
20
21
namespace
HCE
22
{
23
namespace
sphinx
24
{
25
class
SphinxFunctionalObject;
26
//-----------------------------------------------------------------------------
27
class
SphinxIndexer
:
public
SphinxSearchInterface
28
{
29
public
:
30
explicit
SphinxIndexer
(
SphinxFunctionalObject
&
fObj
);
31
virtual
~SphinxIndexer
(
void
) {};
32
33
std::string
Process
(
const
std::string& json);
// make search (black box)
34
SphinxOutputJsonMessage
Process
(
SphinxInputJsonMessage
& inputJsonMessage);
35
36
protected
:
37
void
makeIndexCommand
(
const
std::string& json)
throw
(Poco::Exception);
38
void
makeAdminCommand
(
const
std::string& json, std::string& resultData)
throw
(Poco::Exception);
39
40
SphinxFunctionalObject
&
fObj
;
41
CustomMessage
&
message
;
42
43
typedef
SphinxSearchInterface
inherited
;
44
friend
class
SphinxFunctionalObject
;
45
};
46
//-----------------------------------------------------------------------------
47
//-----------------------------------------------------------------------------
48
}
// end namespace sphinx
49
}
// end namespace HCE
50
51
#endif // SPHINX_INDEXER_HPP
sources
sphinx
src
SphinxIndexer.hpp
Generated on Mon Jan 13 2014 13:08:39 for HCE project C++ developers source code library by
1.8.1.2