DRDE/AusRegCliever/include/masterDaemonConfig.h

48 lines
1.2 KiB
C++

#ifndef MD_CONFIG
#define MD_CONFIG
typedef struct MDCLIENT {
md_device devType;
int mdStdDevIdx;
} mdACClient;
typedef std::map<int,mdACClient*> ClientsByHandle;
typedef std::map<int,mdPeer*> PeersByHandle;
class masterDaemonConfig {
friend class mdState;
public:
int tkScenario; // How the AusRegistry toolkit used
bool daemonized;
bool halt;
bool shuttingDown;
bool shutdown;
const char *configPath,**err,*logPath,
*xmlrpcLogpath;
mdClientServer *cliever[MAX_CLIEVER];
mdMachine *machine[MAX_CLIEVER];
ClientsByHandle allClients;
PeersByHandle allEPPPeers;
//date epoch(MD_EPOCH);
int debugThreshold,nClients,nClievers,
servicePort,thisMachineContext,
clientPort;
pid_t daemonProcess, shellProcess;
std::string cfg_path,log_path;
std::string clievers[MAX_CLIEVER];
masterDaemonConfig();
int loadMachineConfiguration(int machineClass);
};
#endif