Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/kicklib2/src/libraries/core/CorePrereqs.h @ 8283

Last change on this file since 8283 was 8283, checked in by rgrieder, 13 years ago

Merged revisions 7940-7974 from kicklib to kicklib2.

  • Property svn:eol-style set to native
File size: 8.0 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30@file
31@brief
32    Shared library macros, enums, constants and forward declarations for the core library
33*/
34
35#ifndef _CorePrereqs_H__
36#define _CorePrereqs_H__
37
38#include "OrxonoxConfig.h"
39#include <boost/version.hpp>
40#include <CEGUIVersion.h>
41
42//-----------------------------------------------------------------------
43// Shared library settings
44//-----------------------------------------------------------------------
45
46#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
47#  ifdef CORE_SHARED_BUILD
48#    define _CoreExport __declspec(dllexport)
49#  else
50#    if defined( __MINGW32__ )
51#      define _CoreExport
52#    else
53#      define _CoreExport __declspec(dllimport)
54#    endif
55#  endif
56#elif defined ( ORXONOX_GCC_VISIBILITY )
57#  define _CoreExport  __attribute__ ((visibility("default")))
58#else
59#  define _CoreExport
60#endif
61
62//-----------------------------------------------------------------------
63// Constants
64//-----------------------------------------------------------------------
65
66namespace orxonox
67{
68    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
69}
70
71//-----------------------------------------------------------------------
72// Enums
73//-----------------------------------------------------------------------
74
75namespace orxonox
76{
77    namespace XMLPort
78    {
79        enum Mode
80        {
81            NOP,
82            LoadObject,
83            SaveObject,
84            ExpandObject
85        };
86    }
87
88    namespace ConfigFileType
89    {
90        enum Value
91        {
92            Settings,
93            JoyStickCalibration,
94            CommandHistory
95            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
96        };
97    }
98
99    namespace KeybindMode
100    {
101        enum Value
102        {
103            OnPress,
104            OnHold,
105            OnRelease,
106            None
107        };
108    };
109}
110
111//-----------------------------------------------------------------------
112// Forward declarations
113//-----------------------------------------------------------------------
114
115namespace orxonox
116{
117    typedef std::string LanguageEntryLabel;
118
119    template <class T, class U>
120    T orxonox_cast(U*);
121
122    class BaseObject;
123    template <class T>
124    class ClassFactory;
125    template <class T>
126    class ClassIdentifier;
127    class ClassTreeMask;
128    class ClassTreeMaskIterator;
129    class ClassTreeMaskNode;
130    class ClassTreeMaskObjectIterator;
131    class CommandLineParser;
132    class CommandLineArgument;
133    class ConfigFile;
134    class ConfigFileEntry;
135    class ConfigFileEntryComment;
136    class ConfigFileEntryValue;
137    class ConfigFileManager;
138    class ConfigFileSection;
139    class ConfigValueContainer;
140    class Core;
141    class DestructionListener;
142    class DynLib;
143    class DynLibManager;
144    struct Event;
145    class EventState;
146    class Factory;
147    class Game;
148    class GameState;
149    struct GameStateInfo;
150    struct GameStateTreeNode;
151    class GraphicsManager;
152    class GUIManager;
153    class Identifier;
154    template <class T>
155    class Iterator;
156    class Language;
157    class LuaFunctor;
158    class LuaState;
159    class MemoryArchive;
160    class MemoryArchiveFactory;
161    class MetaObjectList;
162    class MetaObjectListElement;
163    class Namespace;
164    class NamespaceNode;
165    template <class T>
166    class ObjectList;
167    class ObjectListBase;
168    class ObjectListBaseElement;
169    template <class T>
170    class ObjectListElement;
171    template <class T>
172    class ObjectListIterator;
173    class OgreWindowEventListener;
174    class OrxonoxClass;
175    class PathConfig;
176    struct ResourceInfo;
177    class SettingsConfigFile;
178    template <class T>
179    class SmartPtr;
180    template <class T>
181    class SubclassIdentifier;
182    class Template;
183    class Thread;
184    class ThreadPool;
185    class ViewportEventListener;
186    template <class T>
187    class WeakPtr;
188    class WindowEventListener;
189    class XMLFile;
190    class XMLNameListener;
191    template <class T, class O>
192    class XMLPortClassObjectContainer;
193    template <class T>
194    class XMLPortClassParamContainer;
195    class XMLPortObjectContainer;
196    class XMLPortParamContainer;
197
198    // Command
199    class ArgumentCompleter;
200    class ArgumentCompletionListElement;
201    class CommandEvaluation;
202    class ConsoleCommand;
203    class Executor;
204    template <class T>
205    class ExecutorMember;
206    class ExecutorStatic;
207    class Functor;
208    template <class O>
209    class FunctorMember;
210    typedef FunctorMember<void> FunctorStatic;
211    template <class F, class O>
212    class FunctorPointer;
213    class IOConsole;
214    class IRC;
215    class Shell;
216    class ShellListener;
217    class TclBind;
218    struct TclInterpreterBundle;
219    template <class T>
220    class TclThreadList;
221    class TclThreadManager;
222
223    // Input
224    class BaseCommand;
225    class BufferedParamCommand;
226    class Button;
227    class HalfAxis;
228    class InputBuffer;
229    class InputDevice;
230    template <class Traits>
231    class InputDeviceTemplated;
232    class InputHandler;
233    class InputManager;
234    class InputState;
235    struct InputStatePriority;
236    class JoyStickQuantityListener;
237    class JoyStick;
238    class KeyBinder;
239    class KeyBinderManager;
240    class Keyboard;
241    class KeyDetector;
242    class KeyEvent;
243    class Mouse;
244    class ParamCommand;
245    class SimpleCommand;
246}
247
248#include "command/FunctorPtr.h"
249#include "command/ExecutorPtr.h"
250
251// CppTcl
252namespace Tcl
253{
254    class interpreter;
255    class object;
256}
257
258// Boost
259namespace boost
260{
261#if (BOOST_VERSION < 104400)
262    namespace filesystem
263    {
264        struct path_traits;
265        template <class String, class Traits> class basic_path;
266        typedef basic_path<std::string, path_traits> path;
267    }
268#else
269    namespace filesystem2
270    {
271        struct path_traits;
272        template <class String, class Traits> class basic_path;
273        typedef basic_path<std::string, path_traits> path;
274    }
275    namespace filesystem
276    {
277        using filesystem2::basic_path;
278        using filesystem2::path_traits;
279        using filesystem2::path;
280    }
281#endif
282    class thread;
283    class mutex;
284    class shared_mutex;
285    class condition_variable;
286}
287
288// Ogre
289namespace Ogre
290{
291    class DataStream;
292    template <class T> class SharedPtr;
293    typedef SharedPtr<DataStream> DataStreamPtr;
294}
295namespace orxonox
296{
297    // Import the Ogre::DataStream
298    using Ogre::DataStream;
299    using Ogre::DataStreamPtr;
300}
301
302// CEGUI
303namespace CEGUI
304{
305    class DefaultLogger;
306    class Logger;
307    class LuaScriptModule;
308
309#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
310    class OgreCEGUIRenderer;
311    class OgreCEGUIResourceProvider;
312    class OgreCEGUITexture;
313#else
314    class OgreRenderer;
315    class OgreResourceProvider;
316    class OgreImageCodec;
317#endif
318}
319
320// Lua
321struct lua_State;
322
323// TinyXML and TinyXML++
324class TiXmlString;
325class TiXmlOutStream;
326class TiXmlNode;
327class TiXmlHandle;
328class TiXmlDocument;
329class TiXmlElement;
330class TiXmlComment;
331class TiXmlUnknown;
332class TiXmlAttribute;
333class TiXmlText;
334class TiXmlDeclaration;
335class TiXmlParsingData;
336namespace ticpp
337{
338    class Document;
339    class Element;
340    class Declaration;
341    class StylesheetReference;
342    class Text;
343    class Comment;
344    class Attribute;
345}
346namespace orxonox
347{
348    using ticpp::Element;
349}
350
351#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.