1 /******************************************************************************
3 * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License *
7 * as published by the Free Software Foundation; either version 2 *
8 * of the License, or (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software Foundation *
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ******************************************************************************/
24 * @mainpage Icinga Documentation
26 * Icinga implements a framework for run-time-loadable components which can
27 * pass messages between each other. These components can either be hosted in
28 * the same process or in several host processes (either on the same machine or
29 * on different machines).
31 * The framework's code critically depends on the following patterns:
33 * <list type="bullet">
34 * <item>Smart pointers
36 * The shared_ptr and weak_ptr template classes are used to simplify memory
37 * management and to avoid accidental memory leaks and use-after-free
40 * <item>Observer pattern
42 * Framework classes expose events which other objects can subscribe to. This
43 * is used to decouple clients of a class from the class' internal
44 * implementation.</item>
49 * @defgroup base Base class library
51 * The base class library implements commonly-used functionality like
52 * event handling for sockets and timers.
56 # define HAVE_STDCXX_0X
57 # pragma warning(disable:4251)
58 # define _CRT_SECURE_NO_DEPRECATE
59 # define _CRT_SECURE_NO_WARNINGS
64 #define PLATFORM_WINDOWS 1
65 #define PLATFORM_UNIX 2
68 # define I2_PLATFORM PLATFORM_WINDOWS
71 # define I2_PLATFORM PLATFORM_UNIX
100 # include <functional>
102 using namespace std::placeholders;
104 #else /* HAVE_STDCXX_0X */
106 # include <boost/smart_ptr.hpp>
107 # include <boost/make_shared.hpp>
108 # include <boost/bind.hpp>
109 # include <boost/function.hpp>
111 using namespace boost;
113 # else /* HAVE_BOOST */
114 # include <tr1/memory>
115 # include <tr1/functional>
116 # include "cxx11-compat.h"
118 using namespace std::tr1;
119 using namespace std::tr1::placeholders;
121 #endif /* HAVE_BOOST */
122 #endif /* HAVE_STDCXX_0X */
124 #if defined(__APPLE__) && defined(__MACH__)
125 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
128 #include <openssl/bio.h>
129 #include <openssl/ssl.h>
130 #include <openssl/err.h>
132 #ifdef HAVE_GCC_ABI_DEMANGLE
134 #endif /* HAVE_GCC_ABI_DEMANGLE */
137 # define I2_BASE_API I2_EXPORT
138 #else /* I2_BASE_BUILD */
139 # define I2_BASE_API I2_IMPORT
140 #endif /* I2_BASE_BUILD */
144 #include "exception.h"
146 #include "delegate.h"
147 #include "observable.h"
149 #include "dictionary.h"
153 #include "tcpsocket.h"
154 #include "tcpclient.h"
155 #include "tcpserver.h"
156 #include "tlsclient.h"
157 #include "objectset.h"
158 #include "objectmap.h"
159 #include "configobject.h"
160 #include "application.h"
161 #include "component.h"
163 #endif /* I2BASE_H */