//---------------------------------------------------------------------------

#ifndef AppGlobalFH
#define AppGlobalFH
//#include "ITS_OPLibF.h"
//---------------------------------------------------------------------------

#include <map.h>
#include "ITSDbF.h"
#include "DataTypesF.h"
#include "ITSLogF.h"
#include "CDSCodeF.h"
#include "FrmResourceF.h"


/*
******************************************************************************
* Global variable definitions
******************************************************************************
*/
extern String           CenterCd;       // 지역센터 코드
extern String           CenterId;       // 지역센터 아이디
extern String           CenterName;     // 지역센터 명칭
extern int              g_nPid;         // Application Process ID
extern String           g_sAppDir;      // Application Directory
extern String           g_sAppName;     // Program name
extern String           g_sCfgDir;      // Config File Directory
extern String           g_sLogDir;      // Program Log Directory
extern String           g_sTempDir;     // Program Temp Directory
extern String           g_sFormsDir;    // Program Forms Directory
extern String           g_sBlackBox;
extern String           g_sLangDir;
extern String           g_sImageDir;
extern String           g_sVideoDir;

extern LOGININFO       *g_pLOGIN;
extern LOG_INFO         g_LogCfg;
extern TITSLog         *FDbLog;
extern String           g_sLang;

/*
******************************************************************************
* Global function definitios
******************************************************************************
*/
bool LoadDefaultConfigInfo(String ACfgFile);

int  UserLogin();
int  UserLogout();

bool WriteConfigInfo(String sCfgFile, String sTitle, String sItem, String sValue);
bool ReadConfigInfo(String sCfgFile, String sTitle, String sItem, String &sValue);


//----------------------------------------------------------------------------

#endif

