35 lines
666 B
C++
35 lines
666 B
C++
#ifndef SSAINI_H
|
|
#define SSAINI_H
|
|
|
|
#include "stdafx.h"
|
|
#include <stdio.h>
|
|
|
|
#define ENV_DEBUG "SSA-DEBUG" //abilitazione livello di debug
|
|
#define ENV_PORT "SSA-PORT" //ip:porta di ssaagent.exe
|
|
|
|
#define ENV_PING_MAXTIME "PING-MAXTIME" //tempo in secondi dopo il quale un utente puo' essere dichiarato scaduto
|
|
#define ENV_PING_DELAY "PING-DELAY" //tempo in secondi ogni quanto pingare
|
|
|
|
class SSAIni
|
|
{
|
|
private:
|
|
static SSAIni* __inst;
|
|
static void createInst();
|
|
|
|
public:
|
|
static SSAIni* getInst();
|
|
|
|
private:
|
|
map<string, string> m_props;
|
|
|
|
private:
|
|
SSAIni();
|
|
void readLine(string s);
|
|
void loadDefaults();
|
|
|
|
public:
|
|
const char* getProp(const char* p);
|
|
};
|
|
|
|
#endif
|