hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
SphinxNodeOptions.hpp
Go to the documentation of this file.
1
14
#ifndef SPHINX_NODE_OPTIONS_HPP
15
#define SPHINX_NODE_OPTIONS_HPP
16
17
#include <iostream>
18
19
#include "
SphinxSearchInterface.hpp
"
20
21
namespace
HCE
22
{
23
namespace
sphinx
24
{
25
//-----------------------------------------------------------------------------
26
class
SphinxNodeOptions
27
{
28
public
:
29
explicit
SphinxNodeOptions
(
const
std::string& nodeName_=
""
,
30
unsigned
int
nodeNumber_=0,
31
const
std::string& homeDir_=
sphinx_search_const::defaultHomeDir
,
32
const
std::string& indexName_=
""
);
33
34
virtual
~SphinxNodeOptions
(
void
) {}
35
36
void
setNodeName
(
const
std::string& nodeName_) {nodeName=nodeName_;}
37
std::string
getNodeName
(
void
)
const
{
return
nodeName;}
38
39
void
setNodeNumber
(
unsigned
int
nodeNumber_) {nodeNumber=nodeNumber_;}
40
unsigned
int
getNodeNumber
(
void
)
const
{
return
nodeNumber;}
41
42
void
setHomeDir
(
const
std::string& homeDir_);
43
std::string
getHomeDir
(
void
)
const
{
return
homeDir;}
44
45
void
setIndexName
(
const
std::string& indexName_) {indexName=indexName_;}
46
std::string
getIndexName
(
void
)
const
{
return
indexName;}
47
48
std::string
getDataDir
(
void
)
const
{
return
dataDir;}
49
std::string
getRunDir
(
void
)
const
{
return
runDir;}
50
std::string
getLogDir
(
void
)
const
{
return
logDir;}
51
std::string
getEtcDir
(
void
)
const
{
return
etcDir;}
52
53
private
:
54
std::string nodeName;
55
unsigned
int
nodeNumber;
56
std::string homeDir;
57
std::string indexName;
58
59
std::string dataDir;
60
std::string runDir;
61
std::string logDir;
62
std::string etcDir;
63
};
64
//-----------------------------------------------------------------------------
65
//-----------------------------------------------------------------------------
66
}
// namespace sphinx
67
}
// namespace HCE
68
69
#endif // SPHINX_NODE_OPTIONS_HPP
sources
utils
sphinx
src
SphinxNodeOptions.hpp
Generated on Tue Jun 30 2015 19:42:17 for hce-node application by
1.8.1.2