icinga2/base/i2-base.h

96 lines
1.7 KiB
C
Raw Normal View History

#ifndef I2BASE_H
#define I2BASE_H
2012-03-28 13:24:49 +02:00
2012-04-03 15:47:32 +02:00
#ifdef _MSC_VER
# define HAVE_CXX11
# pragma warning(disable:4251)
# define _CRT_SECURE_NO_DEPRECATE
2012-04-03 15:47:32 +02:00
#else /* _MSC_VER */
# include "config.h"
#endif /* _MSC_VER */
#include <cstdlib>
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cerrno>
2012-03-28 13:24:49 +02:00
#include <memory>
#include <string>
#include <vector>
2012-04-19 08:46:41 +02:00
#include <set>
2012-03-28 13:24:49 +02:00
#include <iostream>
#include <list>
#include <typeinfo>
#include <map>
2012-03-28 13:24:49 +02:00
#include <list>
2012-04-24 14:02:15 +02:00
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#ifdef HAVE_GCC_ABI_DEMANGLE
# include <cxxabi.h>
#endif /* HAVE_GCC_ABI_DEMANGLE */
using namespace std;
2012-04-03 15:47:32 +02:00
#ifdef HAVE_CXX11
2012-03-28 13:24:49 +02:00
# include <memory>
# include <functional>
using namespace std::placeholders;
2012-03-28 13:24:49 +02:00
#else
# include <tr1/memory>
# include <tr1/functional>
using namespace std::tr1;
using namespace std::tr1::placeholders;
# include "cxx11-compat.h"
2012-03-28 13:24:49 +02:00
#endif
#define PLATFORM_WINDOWS 1
#define PLATFORM_UNIX 2
#ifdef _WIN32
# define I2_PLATFORM PLATFORM_WINDOWS
2012-03-28 13:24:49 +02:00
# include "win32.h"
#else
# define I2_PLATFORM PLATFORM_UNIX
2012-03-28 13:24:49 +02:00
# include "unix.h"
#endif
#ifdef I2_BASE_BUILD
# define I2_BASE_API I2_EXPORT
#else /* I2_BASE_BUILD */
# define I2_BASE_API I2_IMPORT
#endif /* I2_BASE_BUILD */
#include "mutex.h"
#include "condvar.h"
2012-03-31 09:36:00 +02:00
#include "thread.h"
2012-04-22 16:45:31 +02:00
#include "utility.h"
2012-03-28 13:24:49 +02:00
#include "object.h"
#include "exception.h"
2012-03-28 13:24:49 +02:00
#include "memory.h"
#include "delegate.h"
#include "event.h"
2012-04-18 15:22:25 +02:00
#include "variant.h"
#include "dictionary.h"
2012-03-28 13:24:49 +02:00
#include "timer.h"
#include "fifo.h"
#include "socket.h"
#include "tcpsocket.h"
#include "tcpclient.h"
#include "tcpserver.h"
2012-04-24 14:02:15 +02:00
#include "tlsclient.h"
#include "configobject.h"
#include "configcollection.h"
#include "confighive.h"
2012-03-28 13:24:49 +02:00
#include "application.h"
#include "component.h"
2012-03-28 13:24:49 +02:00
#endif /* I2BASE_H */