ClanLib  2.3.7
core.h
Go to the documentation of this file.
1 /*
2 ** ClanLib SDK
3 ** Copyright (c) 1997-2011 The ClanLib Team
4 **
5 ** This software is provided 'as-is', without any express or implied
6 ** warranty. In no event will the authors be held liable for any damages
7 ** arising from the use of this software.
8 **
9 ** Permission is granted to anyone to use this software for any purpose,
10 ** including commercial applications, and to alter it and redistribute it
11 ** freely, subject to the following restrictions:
12 **
13 ** 1. The origin of this software must not be misrepresented; you must not
14 ** claim that you wrote the original software. If you use this software
15 ** in a product, an acknowledgment in the product documentation would be
16 ** appreciated but is not required.
17 ** 2. Altered source versions must be plainly marked as such, and must not be
18 ** misrepresented as being the original software.
19 ** 3. This notice may not be removed or altered from any source distribution.
20 **
21 ** Note: Some of the libraries ClanLib may link to may have additional
22 ** requirements or restrictions.
23 **
24 ** File Author(s):
25 **
26 ** Magnus Norddahl
27 ** Harry Storbacka
28 */
29 
33 
34 #pragma once
35 
36 #define CL_VERSION(x,y,z) ( (x << 16) | (y << 8) | (z) )
37 #define CL_CURRENT_VERSION CL_VERSION(2,3,7)
38 #define CL_VERSION_STRING "2.3.7"
39 
40 #ifdef _MSC_VER
41 #pragma warning( disable : 4786)
42 #endif
43 
44 #ifdef __BORLANDC__
45 #define BORLAND
46 #endif
47 
48 #ifdef __cplusplus_cli
49 #pragma managed(push, off)
50 #endif
51 
52 #ifdef WIN32
53 #include <windows.h>
54 #endif
55 
57 
58 #ifdef WIN32
59 #include "Core/System/comptr.h"
60 #endif
61 
62 #include "Core/Text/string_types.h"
63 #include "Core/Text/file_logger.h"
64 #include "Core/Text/console.h"
66 #include "Core/Text/logger.h"
68 #include "Core/Text/string_help.h"
70 #include "Core/Text/utf8_reader.h"
71 #include "Core/System/databuffer.h"
74 #include "Core/System/datetime.h"
76 #include "Core/System/event.h"
78 #include "Core/System/exception.h"
79 #include "Core/System/mutex.h"
80 #include "Core/System/runnable.h"
81 #include "Core/System/service.h"
82 #include "Core/System/setup_core.h"
83 #include "Core/System/thread.h"
85 #include "Core/System/uniqueptr.h"
86 #include "Core/System/weakptr.h"
87 #include "Core/System/sharedptr.h"
88 #include "Core/System/system.h"
90 #include "Core/System/keep_alive.h"
91 #include "Core/System/timer.h"
106 #include "Core/Signals/signal_v0.h"
107 #include "Core/Signals/signal_v1.h"
108 #include "Core/Signals/signal_v2.h"
109 #include "Core/Signals/signal_v3.h"
110 #include "Core/Signals/signal_v4.h"
111 #include "Core/Signals/signal_v5.h"
118 #include "Core/Signals/slot.h"
120 #include "Core/Resources/resource.h"
125 #include "Core/XML/dom_notation.h"
126 #include "Core/XML/dom_exception.h"
129 #include "Core/XML/dom_comment.h"
130 #include "Core/XML/dom_attr.h"
131 #include "Core/XML/dom_entity.h"
133 #include "Core/XML/dom_document.h"
135 #include "Core/XML/dom_node_list.h"
136 #include "Core/XML/dom_text.h"
137 #include "Core/XML/dom_node.h"
140 #include "Core/XML/dom_element.h"
141 #include "Core/XML/dom_string.h"
142 #include "Core/XML/xml_tokenizer.h"
143 #include "Core/XML/xml_writer.h"
144 #include "Core/XML/xml_token.h"
146 #include "Core/XML/xpath_object.h"
147 #include "Core/CSS/css_document.h"
148 #include "Core/CSS/css_property.h"
149 #include "Core/CSS/css_tokenizer.h"
150 #include "Core/CSS/css_token.h"
152 #include "Core/IOData/file.h"
153 #include "Core/IOData/file_help.h"
154 #include "Core/IOData/path_help.h"
155 #include "Core/IOData/iodevice.h"
158 #include "Core/IOData/pipe_listen.h"
160 #include "Core/IOData/directory.h"
162 #include "Core/IOData/cl_endian.h"
169 #include "Core/IOData/html_url.h"
170 #include "Core/Zip/zip_archive.h"
171 #include "Core/Zip/zip_writer.h"
172 #include "Core/Zip/zip_reader.h"
173 #include "Core/Zip/zip_file_entry.h"
174 #include "Core/Math/angle.h"
177 #include "Core/Math/bezier_curve.h"
178 #include "Core/Math/circle.h"
179 #include "Core/Math/vec1.h"
180 #include "Core/Math/vec2.h"
181 #include "Core/Math/vec3.h"
182 #include "Core/Math/vec4.h"
186 #include "Core/Math/line_math.h"
187 #include "Core/Math/cl_math.h"
188 #include "Core/Math/quaternion.h"
189 #include "Core/Math/mat2.h"
190 #include "Core/Math/mat3.h"
191 #include "Core/Math/mat4.h"
192 #include "Core/Math/origin.h"
194 #include "Core/Math/point.h"
195 #include "Core/Math/pointset_math.h"
196 #include "Core/Math/quad.h"
197 #include "Core/Math/rect.h"
198 #include "Core/Math/rect_packer.h"
199 #include "Core/Math/size.h"
200 #include "Core/Math/triangle_math.h"
201 #include "Core/Math/line.h"
202 #include "Core/Math/line_ray.h"
203 #include "Core/Math/line_segment.h"
205 #include "Core/Crypto/random.h"
206 #include "Core/Crypto/secret.h"
207 #include "Core/Math/sha1.h"
208 #include "Core/Crypto/md5.h"
209 #include "Core/Crypto/sha224.h"
210 #include "Core/Crypto/sha256.h"
211 #include "Core/Crypto/sha384.h"
212 #include "Core/Crypto/sha512.h"
213 #include "Core/Crypto/sha512_224.h"
214 #include "Core/Crypto/sha512_256.h"
221 #include "Core/Crypto/rsa.h"
222 #include "Core/core_iostream.h"
223 
224 #ifdef __cplusplus_cli
225 #pragma managed(pop)
226 #endif
227 
228 #if defined(_MSC_VER)
229  #if !defined(_MT)
230  #error Your application is set to link with the single-threaded version of the run-time library. Go to project settings, in the C++ section, and change it to multi-threaded.
231  #endif
232  #if !defined(_DEBUG)
233  #if defined(CL_DLL)
234  #pragma comment(lib, "clanCore-dll.lib")
235  #elif defined(_DLL)
236  #pragma comment(lib, "clanCore-static-mtdll.lib")
237  #pragma comment(lib, "zlib-static-mtdll.lib")
238  #else
239  #pragma comment(lib, "clanCore-static-mt.lib")
240  #pragma comment(lib, "zlib-static-mt.lib")
241  #endif
242  #else
243  #if defined(CL_DLL)
244  #pragma comment(lib, "clanCore-dll-debug.lib")
245  #elif defined(_DLL)
246  #pragma comment(lib, "clanCore-static-mtdll-debug.lib")
247  #pragma comment(lib, "zlib-static-mtdll-debug.lib")
248  #else
249  #pragma comment(lib, "clanCore-static-mt-debug.lib")
250  #pragma comment(lib, "zlib-static-mt-debug.lib")
251  #endif
252  #endif
253  #pragma comment(lib, "advapi32.lib")
254 #endif
255