/***************************************************************************
                    fhs_raidmond Header ( fhs_raidmond.h )
                -----------------------------------------
	begin      : 2010/03/09
	copyright  : (C) 2005 SolutionBox Inc.
	author     : Service 1 Team
	email      : svc1@solbox.com
	version    : 1.0

	CopyRight(C) 2005 SolutionBox Inc. All Rights reserved.
	Redistribution and use in source and binary forms, with or with out
	modification, are not permitted in outside of SolutionBox Inc.
***************************************************************************/

#ifndef __FHS_RAIDMOND_GLOBAL_VALUE_H__
#define __FHS_RAIDMOND_GLOBAL_VALUE_H__

#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <iostream>
using namespace std;

#include "Logger.h"

struct st_config
{
	// Common Part
	std::string szLogDir;
	int	nLogLevel;

	// fhs_raidmond Part
	int nCheckTerm;

	int nReportPort;

	int nEventLevel;

	std::string szSMSHost;
	int nSMSPort;
	std::string szSMSSendfile;

	
	// »ý¼ºÀÚ
	st_config()
	{
		nLogLevel = 0;
		nCheckTerm = 0;
		nReportPort = 0;
		nEventLevel = 0;
		nSMSPort = 0;
	}
};

#ifdef __cplusplus
extern "C" {
#endif

	/// @brief Global config object.
	extern struct st_config g_envConfig;
		
#ifdef __cplusplus
}
#endif

#endif /* __FHS_RAIDMOND_GLOBAL_VALUE_H__ */

