6 #ifndef _DAZEUS_CONFIG_H
7 #define _DAZEUS_CONFIG_H
19 struct ConfigReaderState;
43 std::map<std::string, std::string>
config;
50 return "unix:" +
path;
51 }
else if(
type ==
"tcp") {
56 assert(!
"Unknown type in SocketConfig::toString()");
66 std::vector<NetworkConfig*> networks;
67 std::vector<PluginConfig*> plugins;
68 std::vector<SocketConfig*> sockets;
90 const std::vector<NetworkConfig*> &
getNetworks() {
return networks; }
91 const std::vector<PluginConfig*> &
getPlugins() {
return plugins; }
92 const std::vector<SocketConfig*> &
getSockets() {
return sockets; }
94 if(sockets.size() == 0) {
95 throw std::runtime_error(
"No sockets defined, cannot run plugins");