Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core6/src/libraries/core/CorePrereqs.h @ 9561

Last change on this file since 9561 was 9561, checked in by landauf, 11 years ago

OrxonoxClass now takes a 'Context' object as constructor argument. Not yet enforced nor used

  • Property svn:eol-style set to native
File size: 8.5 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#  define _CorePrivate
57#elif defined (ORXONOX_GCC_VISIBILITY)
58#  define _CoreExport  __attribute__ ((visibility("default")))
59#  define _CorePrivate __attribute__ ((visibility("hidden")))
60#else
61#  define _CoreExport
62#  define _CorePrivate
63#endif
64
65//-----------------------------------------------------------------------
66// Constants
67//-----------------------------------------------------------------------
68
69namespace orxonox
70{
71    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
72}
73
74//-----------------------------------------------------------------------
75// Enums
76//-----------------------------------------------------------------------
77
78namespace orxonox
79{
80    namespace XMLPort
81    {
82        enum Mode
83        {
84            NOP,
85            LoadObject,
86            SaveObject,
87            ExpandObject
88        };
89    }
90
91    namespace ConfigFileType
92    {
93        enum Value
94        {
95            Settings,
96            JoyStickCalibration,
97            CommandHistory
98            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
99        };
100    }
101
102    namespace KeybindMode
103    {
104        enum Value
105        {
106            OnPress,
107            OnHold,
108            OnRelease,
109            None
110        };
111    };
112}
113
114//-----------------------------------------------------------------------
115// Forward declarations
116//-----------------------------------------------------------------------
117
118namespace orxonox
119{
120    typedef std::string LanguageEntryLabel;
121
122    template <class T, class U>
123    T orxonox_cast(U*);
124
125    class BaseObject;
126    template <class T>
127    class ClassFactory;
128    template <class T>
129    class ClassIdentifier;
130    class ClassTreeMask;
131    class ClassTreeMaskIterator;
132    class ClassTreeMaskNode;
133    class ClassTreeMaskObjectIterator;
134    class CommandLineParser;
135    class CommandLineArgument;
136    class ConfigFile;
137    class ConfigFileEntry;
138    class ConfigFileEntryComment;
139    class ConfigFileEntryValue;
140    class ConfigFileManager;
141    class ConfigFileSection;
142    class ConfigValueContainer;
143    class Context;
144    class Core;
145    class DestructionListener;
146    class DynLib;
147    class DynLibManager;
148    struct Event;
149    class EventState;
150    class Factory;
151    class Game;
152    class GameState;
153    struct GameStateInfo;
154    struct GameStateTreeNode;
155    class GraphicsManager;
156    class GUIManager;
157    class Identifier;
158    template <class T>
159    class Iterator;
160    class Language;
161    class LuaFunctor;
162    class LuaState;
163    class MemoryArchive;
164    class MemoryArchiveFactory;
165    class MetaObjectList;
166    class MetaObjectListElement;
167    class Namespace;
168    class NamespaceNode;
169    template <class T>
170    class ObjectList;
171    class ObjectListBase;
172    class ObjectListBaseElement;
173    template <class T>
174    class ObjectListElement;
175    template <class T>
176    class ObjectListIterator;
177    class OgreWindowEventListener;
178    class OrxonoxClass;
179    class PathConfig;
180    struct ResourceInfo;
181    class SettingsConfigFile;
182    template <class T>
183    class SmartPtr;
184    template <class T>
185    class SubclassIdentifier;
186    class Template;
187    class Thread;
188    class ThreadPool;
189    class ViewportEventListener;
190    template <class T>
191    class WeakPtr;
192    class WindowEventListener;
193    class XMLFile;
194    class XMLNameListener;
195    template <class T, class O>
196    class XMLPortClassObjectContainer;
197    template <class T>
198    class XMLPortClassParamContainer;
199    class XMLPortObjectContainer;
200    class XMLPortParamContainer;
201
202    // Command
203    class ArgumentCompleter;
204    class ArgumentCompletionListElement;
205    class CommandEvaluation;
206    class ConsoleCommand;
207    class Executor;
208    template <class T>
209    class ExecutorMember;
210    class ExecutorStatic;
211    class Functor;
212    template <class O>
213    class FunctorMember;
214    typedef FunctorMember<void> FunctorStatic;
215    template <class F, class O>
216    class FunctorPointer;
217    class IOConsole;
218    class IRC;
219    class Shell;
220    class ShellListener;
221    class TclBind;
222    struct TclInterpreterBundle;
223    template <class T>
224    class TclThreadList;
225    class TclThreadManager;
226
227    // Input
228    class BaseCommand;
229    class BufferedParamCommand;
230    class Button;
231    class HalfAxis;
232    class InputBuffer;
233    class InputDevice;
234    template <class Traits>
235    class InputDeviceTemplated;
236    class InputHandler;
237    class InputManager;
238    class InputState;
239    struct InputStatePriority;
240    class JoyStickQuantityListener;
241    class JoyStick;
242    class KeyBinder;
243    class KeyBinderManager;
244    class Keyboard;
245    class KeyDetector;
246    class KeyEvent;
247    class Mouse;
248    class ParamCommand;
249    class SimpleCommand;
250}
251
252#include "command/FunctorPtr.h"
253#include "command/ExecutorPtr.h"
254
255// CppTcl
256namespace Tcl
257{
258    class interpreter;
259    class object;
260}
261
262// Boost
263namespace boost
264{
265#if (BOOST_VERSION < 104400)
266
267    namespace filesystem
268    {
269        struct path_traits;
270        template <class String, class Traits> class basic_path;
271        typedef basic_path<std::string, path_traits> path;
272    }
273
274#elif (BOOST_VERSION < 104800)
275
276# if BOOST_FILESYSTEM_VERSION == 2
277    namespace filesystem2
278    {
279        struct path_traits;
280        template <class String, class Traits> class basic_path;
281        typedef basic_path<std::string, path_traits> path;
282    }
283    namespace filesystem
284    {
285        using filesystem2::basic_path;
286        using filesystem2::path_traits;
287        using filesystem2::path;
288    }
289# elif BOOST_FILESYSTEM_VERSION == 3
290    namespace filesystem3
291    {
292        class path;
293    }
294    namespace filesystem
295    {
296        using filesystem3::path;
297    }
298# endif
299
300#else
301
302    // TODO: Check this once boost 1.48 is released
303    namespace filesystem
304    {
305        class path;
306    }
307
308#endif
309
310    class thread;
311    class mutex;
312    class shared_mutex;
313    class condition_variable;
314}
315
316// Ogre
317namespace Ogre
318{
319    class DataStream;
320    template <class T> class SharedPtr;
321    typedef SharedPtr<DataStream> DataStreamPtr;
322}
323namespace orxonox
324{
325    // Import the Ogre::DataStream
326    using Ogre::DataStream;
327    using Ogre::DataStreamPtr;
328}
329
330// CEGUI
331namespace CEGUI
332{
333    class DefaultLogger;
334    class Logger;
335    class LuaScriptModule;
336
337#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
338    class OgreCEGUIRenderer;
339    class OgreCEGUIResourceProvider;
340    class OgreCEGUITexture;
341#else
342    class OgreRenderer;
343    class OgreResourceProvider;
344    class OgreImageCodec;
345#endif
346}
347
348// Lua
349struct lua_State;
350
351// TinyXML and TinyXML++
352class TiXmlString;
353class TiXmlOutStream;
354class TiXmlNode;
355class TiXmlHandle;
356class TiXmlDocument;
357class TiXmlElement;
358class TiXmlComment;
359class TiXmlUnknown;
360class TiXmlAttribute;
361class TiXmlText;
362class TiXmlDeclaration;
363class TiXmlParsingData;
364namespace ticpp
365{
366    class Document;
367    class Element;
368    class Declaration;
369    class StylesheetReference;
370    class Text;
371    class Comment;
372    class Attribute;
373}
374namespace orxonox
375{
376    using ticpp::Element;
377}
378
379#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.