1 #ifndef EA4_STORAGE_RPC_SERVER_CONFIG_H
2 #define EA4_STORAGE_RPC_SERVER_CONFIG_H
7 #include "tools/ToolsConfig.h"
10 #include "storage/AutoIndex.h"
12 namespace ea4 {
namespace storage {
52 bool read(
const char *filename);
55 bool find(
int key, std::string& path);
Configuration entry.
Definition: RPCServerConfig.h:28
std::string verTxt
version
Definition: RPCServerConfig.h:69
std::string path
path to the Index file
Definition: RPCServerConfig.h:41
bool find(int key, std::string &path)
Finds path for key or returns false.
void clear()
clear
Definition: RPCServerConfig.h:33
const char * getConfigName()
Returns the name of the XML file defined by the env variable 'SERVERCONFIG'.
void dump()
Print this configuration.
bool read(const char *filename)
Reads the XML file that matches serverconfig.dtd.
Index * openIndex(int key)
Returns the selected Index file.
int key
entry key
Definition: RPCServerConfig.h:39
int ver
version
Definition: RPCServerConfig.h:72
std::string name
name
Definition: RPCServerConfig.h:40
Base interface for the archiver's indices.
Definition: Index.h:16
std::list< Entry > config
Collection of the config entries.
Definition: RPCServerConfig.h:66
static RPCServerConfig * getInstance()
Returns singleton.
The RPC Server Configuration.
Definition: RPCServerConfig.h:18