core.h

Go to the documentation of this file.
00001 /*
00002 **  ClanLib SDK
00003 **  Copyright (c) 1997-2011 The ClanLib Team
00004 **
00005 **  This software is provided 'as-is', without any express or implied
00006 **  warranty.  In no event will the authors be held liable for any damages
00007 **  arising from the use of this software.
00008 **
00009 **  Permission is granted to anyone to use this software for any purpose,
00010 **  including commercial applications, and to alter it and redistribute it
00011 **  freely, subject to the following restrictions:
00012 **
00013 **  1. The origin of this software must not be misrepresented; you must not
00014 **     claim that you wrote the original software. If you use this software
00015 **     in a product, an acknowledgment in the product documentation would be
00016 **     appreciated but is not required.
00017 **  2. Altered source versions must be plainly marked as such, and must not be
00018 **     misrepresented as being the original software.
00019 **  3. This notice may not be removed or altered from any source distribution.
00020 **
00021 **  Note: Some of the libraries ClanLib may link to may have additional
00022 **  requirements or restrictions.
00023 **
00024 **  File Author(s):
00025 **
00026 **    Magnus Norddahl
00027 **    Harry Storbacka
00028 */
00029 
00033 
00034 #pragma once
00035 
00036 #define CL_VERSION(x,y,z)       ( (x << 16) | (y << 8) | (z) )
00037 #define CL_CURRENT_VERSION      CL_VERSION(2,3,5)
00038 #define CL_VERSION_STRING "2.3.5"
00039 
00040 #ifdef _MSC_VER
00041 #pragma warning( disable : 4786)
00042 #endif
00043 
00044 #ifdef __BORLANDC__
00045 #define BORLAND
00046 #endif
00047 
00048 #ifdef __cplusplus_cli
00049 #pragma managed(push, off)
00050 #endif
00051 
00052 #ifdef WIN32
00053 #include <windows.h> 
00054 #endif
00055 
00056 #include "Core/System/cl_platform.h"
00057 
00058 #ifdef WIN32
00059 #include "Core/System/comptr.h"
00060 #endif
00061 
00062 #include "Core/Text/string_types.h"
00063 #include "Core/Text/file_logger.h"
00064 #include "Core/Text/console.h"
00065 #include "Core/Text/console_logger.h"
00066 #include "Core/Text/logger.h"
00067 #include "Core/Text/string_format.h"
00068 #include "Core/Text/string_help.h"
00069 #include "Core/Text/string_allocator.h"
00070 #include "Core/Text/utf8_reader.h"
00071 #include "Core/System/databuffer.h"
00072 #include "Core/System/block_allocator.h"
00073 #include "Core/System/console_window.h"
00074 #include "Core/System/datetime.h"
00075 #include "Core/System/disposable_object.h"
00076 #include "Core/System/event.h"
00077 #include "Core/System/event_provider.h"
00078 #include "Core/System/exception.h"
00079 #include "Core/System/mutex.h"
00080 #include "Core/System/runnable.h"
00081 #include "Core/System/service.h"
00082 #include "Core/System/setup_core.h"
00083 #include "Core/System/thread.h"
00084 #include "Core/System/thread_local_storage.h"
00085 #include "Core/System/uniqueptr.h"
00086 #include "Core/System/weakptr.h"
00087 #include "Core/System/sharedptr.h"
00088 #include "Core/System/system.h"
00089 #include "Core/System/command_line.h"
00090 #include "Core/System/keep_alive.h"
00091 #include "Core/System/timer.h"
00092 #include "Core/System/registry_key.h"
00093 #include "Core/System/interlocked_variable.h"
00094 #include "Core/Signals/callback_0.h"
00095 #include "Core/Signals/callback_1.h"
00096 #include "Core/Signals/callback_2.h"
00097 #include "Core/Signals/callback_3.h"
00098 #include "Core/Signals/callback_4.h"
00099 #include "Core/Signals/callback_5.h"
00100 #include "Core/Signals/callback_v0.h"
00101 #include "Core/Signals/callback_v1.h"
00102 #include "Core/Signals/callback_v2.h"
00103 #include "Core/Signals/callback_v3.h"
00104 #include "Core/Signals/callback_v4.h"
00105 #include "Core/Signals/callback_v5.h"
00106 #include "Core/Signals/signal_v0.h"
00107 #include "Core/Signals/signal_v1.h"
00108 #include "Core/Signals/signal_v2.h"
00109 #include "Core/Signals/signal_v3.h"
00110 #include "Core/Signals/signal_v4.h"
00111 #include "Core/Signals/signal_v5.h"
00112 #include "Core/Signals/virtual_function_0.h"
00113 #include "Core/Signals/virtual_function_1.h"
00114 #include "Core/Signals/virtual_function_2.h"
00115 #include "Core/Signals/virtual_function_3.h"
00116 #include "Core/Signals/virtual_function_4.h"
00117 #include "Core/Signals/virtual_function_5.h"
00118 #include "Core/Signals/slot.h"
00119 #include "Core/Signals/slot_container.h"
00120 #include "Core/Resources/resource.h"
00121 #include "Core/Resources/resource_manager.h"
00122 #include "Core/Resources/resource_data_session.h"
00123 #include "Core/XML/dom_processing_instruction.h"
00124 #include "Core/XML/dom_entity_reference.h"
00125 #include "Core/XML/dom_notation.h"
00126 #include "Core/XML/dom_exception.h"
00127 #include "Core/XML/dom_cdata_section.h"
00128 #include "Core/XML/dom_document_fragment.h"
00129 #include "Core/XML/dom_comment.h"
00130 #include "Core/XML/dom_attr.h"
00131 #include "Core/XML/dom_entity.h"
00132 #include "Core/XML/dom_document_type.h"
00133 #include "Core/XML/dom_document.h"
00134 #include "Core/XML/dom_implementation.h"
00135 #include "Core/XML/dom_node_list.h"
00136 #include "Core/XML/dom_text.h"
00137 #include "Core/XML/dom_node.h"
00138 #include "Core/XML/dom_character_data.h"
00139 #include "Core/XML/dom_named_node_map.h"
00140 #include "Core/XML/dom_element.h"
00141 #include "Core/XML/dom_string.h"
00142 #include "Core/XML/xml_tokenizer.h"
00143 #include "Core/XML/xml_writer.h"
00144 #include "Core/XML/xml_token.h"
00145 #include "Core/XML/xpath_evaluator.h"
00146 #include "Core/XML/xpath_object.h"
00147 #include "Core/CSS/css_document.h"
00148 #include "Core/CSS/css_property.h"
00149 #include "Core/CSS/css_tokenizer.h"
00150 #include "Core/CSS/css_token.h"
00151 #include "Core/IOData/access_control_list.h"
00152 #include "Core/IOData/file.h"
00153 #include "Core/IOData/file_help.h"
00154 #include "Core/IOData/path_help.h"
00155 #include "Core/IOData/iodevice.h"
00156 #include "Core/IOData/iodevice_provider.h"
00157 #include "Core/IOData/pipe_connection.h"
00158 #include "Core/IOData/pipe_listen.h"
00159 #include "Core/IOData/security_descriptor.h"
00160 #include "Core/IOData/directory.h"
00161 #include "Core/IOData/security_identifier.h"
00162 #include "Core/IOData/cl_endian.h"
00163 #include "Core/IOData/directory_scanner.h"
00164 #include "Core/IOData/virtual_directory.h"
00165 #include "Core/IOData/virtual_file_system.h"
00166 #include "Core/IOData/virtual_file_source.h"
00167 #include "Core/IOData/iodevice_memory.h"
00168 #include "Core/IOData/virtual_directory_listing.h"
00169 #include "Core/IOData/html_url.h"
00170 #include "Core/Zip/zip_archive.h"
00171 #include "Core/Zip/zip_writer.h"
00172 #include "Core/Zip/zip_reader.h"
00173 #include "Core/Zip/zip_file_entry.h"
00174 #include "Core/Math/angle.h"
00175 #include "Core/Math/base64_encoder.h"
00176 #include "Core/Math/base64_decoder.h"
00177 #include "Core/Math/bezier_curve.h"
00178 #include "Core/Math/circle.h"
00179 #include "Core/Math/vec1.h"
00180 #include "Core/Math/vec2.h"
00181 #include "Core/Math/vec3.h"
00182 #include "Core/Math/vec4.h"
00183 #include "Core/Math/delauney_triangulator.h"
00184 #include "Core/Math/ear_clip_triangulator.h"
00185 #include "Core/Math/ear_clip_result.h"
00186 #include "Core/Math/line_math.h"
00187 #include "Core/Math/cl_math.h"
00188 #include "Core/Math/quaternion.h"
00189 #include "Core/Math/mat2.h"
00190 #include "Core/Math/mat3.h"
00191 #include "Core/Math/mat4.h"
00192 #include "Core/Math/origin.h"
00193 #include "Core/Math/outline_triangulator.h"
00194 #include "Core/Math/point.h"
00195 #include "Core/Math/pointset_math.h"
00196 #include "Core/Math/quad.h"
00197 #include "Core/Math/rect.h"
00198 #include "Core/Math/rect_packer.h"
00199 #include "Core/Math/size.h"
00200 #include "Core/Math/triangle_math.h"
00201 #include "Core/Math/line.h"
00202 #include "Core/Math/line_ray.h"
00203 #include "Core/Math/line_segment.h"
00204 #include "Core/Math/hash_functions.h"
00205 #include "Core/Crypto/random.h"
00206 #include "Core/Crypto/secret.h"
00207 #include "Core/Math/sha1.h"
00208 #include "Core/Crypto/md5.h"
00209 #include "Core/Crypto/sha224.h"
00210 #include "Core/Crypto/sha256.h"
00211 #include "Core/Crypto/sha384.h"
00212 #include "Core/Crypto/sha512.h"
00213 #include "Core/Crypto/sha512_224.h"
00214 #include "Core/Crypto/sha512_256.h"
00215 #include "Core/Crypto/aes128_encrypt.h"
00216 #include "Core/Crypto/aes128_decrypt.h"
00217 #include "Core/Crypto/aes192_encrypt.h"
00218 #include "Core/Crypto/aes192_decrypt.h"
00219 #include "Core/Crypto/aes256_encrypt.h"
00220 #include "Core/Crypto/aes256_decrypt.h"
00221 #include "Core/Crypto/rsa.h"
00222 #include "Core/core_iostream.h"
00223 
00224 #ifdef __cplusplus_cli
00225 #pragma managed(pop)
00226 #endif
00227 
00228 #if defined(_MSC_VER)
00229         #if !defined(_MT)
00230                 #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.
00231         #endif
00232         #if !defined(_DEBUG)
00233                 #if defined(CL_DLL)
00234                         #pragma comment(lib, "clanCore-dll.lib")
00235                 #elif defined(_DLL)
00236                         #pragma comment(lib, "clanCore-static-mtdll.lib")
00237                         #pragma comment(lib, "zlib-static-mtdll.lib")
00238                 #else
00239                         #pragma comment(lib, "clanCore-static-mt.lib")
00240                         #pragma comment(lib, "zlib-static-mt.lib")
00241                 #endif
00242         #else
00243                 #if defined(CL_DLL)
00244                         #pragma comment(lib, "clanCore-dll-debug.lib")
00245                 #elif defined(_DLL)
00246                         #pragma comment(lib, "clanCore-static-mtdll-debug.lib")
00247                         #pragma comment(lib, "zlib-static-mtdll-debug.lib")
00248                 #else
00249                         #pragma comment(lib, "clanCore-static-mt-debug.lib")
00250                         #pragma comment(lib, "zlib-static-mt-debug.lib")
00251                 #endif
00252         #endif
00253 #endif
00254