/***************************************************************************
                CC Stat Daemon Global Setting ( cc_statd.h )
                -----------------------------------------
	begin      : 2013/05/28
	copyright  : (C) 2013 Solbox Inc.
	author     : Development 1 Team
					- 2013/05/28 - 1st dadamin
	email      : dev1@solbox.com
	version    : 3.2.0

    CopyRight(C) 2011 Solbox Inc. All Rights reserved.
    Redistribution and use in source and binary forms, with or with out
    modification, are not permitted in outside of Solbox Inc.
***************************************************************************/
#ifndef	__CC_STATD_H__
#define	__CC_STATD_H__

#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <dirent.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <iostream>
#include <vector>
#include <map>
#include <list>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <exception>

// SOCI
#include <soci.h>
#include <soci-config.h>
#include <postgresql/soci-postgresql.h>

// XML 
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <libxml++/libxml++.h>

using namespace std;
using namespace soci;
using namespace xmlpp;

#define  LOGACONSOLE(level, msg) \
	if(level >= LDBG) {\
	_LOG( level, "%s", msg.str().c_str());\
	cout << msg.str() << endl; msg.str("");}\
	else  {\
	LOG( level, "%s", msg.str().c_str());\
	cerr << msg.str() << endl; msg.str("");}\
	msg.str("");

#endif // __CC_STATD_H__
