Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

moved functions and attributes needed to identify the class from OrxonoxClass to Identifiable

  • 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 Identifiable;
158    class Identifier;
159    template <class T>
160    class Iterator;
161    class Language;
162    class LuaFunctor;
163    class LuaState;
164    class MemoryArchive;
165    class MemoryArchiveFactory;
166    class MetaObjectList;
167    class MetaObjectListElement;
168    class Namespace;
169    class NamespaceNode;
170    template <class T>
171    class ObjectList;
172    class ObjectListBase;
173    class ObjectListBaseElement;
174    template <class T>
175    class ObjectListElement;
176    template <class T>
177    class ObjectListIterator;
178    class OgreWindowEventListener;
179    class OrxonoxClass;
180    class PathConfig;
181    struct ResourceInfo;
182    class SettingsConfigFile;
183    template <class T>
184    class SmartPtr;
185    template <class T>
186    class SubclassIdentifier;
187    class Template;
188    class Thread;
189    class ThreadPool;
190    class ViewportEventListener;
191    template <class T>
192    class WeakPtr;
193    class WindowEventListener;
194    class XMLFile;
195    class XMLNameListener;
196    template <class T, class O>
197    class XMLPortClassObjectContainer;
198    template <class T>
199    class XMLPortClassParamContainer;
200    class XMLPortObjectContainer;
201    class XMLPortParamContainer;
202
203    // Command
204    class ArgumentCompleter;
205    class ArgumentCompletionListElement;
206    class CommandEvaluation;
207    class ConsoleCommand;
208    class Executor;
209    template <class T>
210    class ExecutorMember;
211    class ExecutorStatic;
212    class Functor;
213    template <class O>
214    class FunctorMember;
215    typedef FunctorMember<void> FunctorStatic;
216    template <class F, class O>
217    class FunctorPointer;
218    class IOConsole;
219    class IRC;
220    class Shell;
221    class ShellListener;
222    class TclBind;
223    struct TclInterpreterBundle;
224    template <class T>
225    class TclThreadList;
226    class TclThreadManager;
227
228    // Input
229    class BaseCommand;
230    class BufferedParamCommand;
231    class Button;
232    class HalfAxis;
233    class InputBuffer;
234    class InputDevice;
235    template <class Traits>
236    class InputDeviceTemplated;
237    class InputHandler;
238    class InputManager;
239    class InputState;
240    struct InputStatePriority;
241    class JoyStickQuantityListener;
242    class JoyStick;
243    class KeyBinder;
244    class KeyBinderManager;
245    class Keyboard;
246    class KeyDetector;
247    class KeyEvent;
248    class Mouse;
249    class ParamCommand;
250    class SimpleCommand;
251}
252
253#include "command/FunctorPtr.h"
254#include "command/ExecutorPtr.h"
255
256// CppTcl
257namespace Tcl
258{
259    class interpreter;
260    class object;
261}
262
263// Boost
264namespace boost
265{
266#if (BOOST_VERSION < 104400)
267
268    namespace filesystem
269    {
270        struct path_traits;
271        template <class String, class Traits> class basic_path;
272        typedef basic_path<std::string, path_traits> path;
273    }
274
275#elif (BOOST_VERSION < 104800)
276
277# if BOOST_FILESYSTEM_VERSION == 2
278    namespace filesystem2
279    {
280        struct path_traits;
281        template <class String, class Traits> class basic_path;
282        typedef basic_path<std::string, path_traits> path;
283    }
284    namespace filesystem
285    {
286        using filesystem2::basic_path;
287        using filesystem2::path_traits;
288        using filesystem2::path;
289    }
290# elif BOOST_FILESYSTEM_VERSION == 3
291    namespace filesystem3
292    {
293        class path;
294    }
295    namespace filesystem
296    {
297        using filesystem3::path;
298    }
299# endif
300
301#else
302
303    // TODO: Check this once boost 1.48 is released
304    namespace filesystem
305    {
306        class path;
307    }
308
309#endif
310
311    class thread;
312    class mutex;
313    class shared_mutex;
314    class condition_variable;
315}
316
317// Ogre
318namespace Ogre
319{
320    class DataStream;
321    template <class T> class SharedPtr;
322    typedef SharedPtr<DataStream> DataStreamPtr;
323}
324namespace orxonox
325{
326    // Import the Ogre::DataStream
327    using Ogre::DataStream;
328    using Ogre::DataStreamPtr;
329}
330
331// CEGUI
332namespace CEGUI
333{
334    class DefaultLogger;
335    class Logger;
336    class LuaScriptModule;
337
338#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
339    class OgreCEGUIRenderer;
340    class OgreCEGUIResourceProvider;
341    class OgreCEGUITexture;
342#else
343    class OgreRenderer;
344    class OgreResourceProvider;
345    class OgreImageCodec;
346#endif
347}
348
349// Lua
350struct lua_State;
351
352// TinyXML and TinyXML++
353class TiXmlString;
354class TiXmlOutStream;
355class TiXmlNode;
356class TiXmlHandle;
357class TiXmlDocument;
358class TiXmlElement;
359class TiXmlComment;
360class TiXmlUnknown;
361class TiXmlAttribute;
362class TiXmlText;
363class TiXmlDeclaration;
364class TiXmlParsingData;
365namespace ticpp
366{
367    class Document;
368    class Element;
369    class Declaration;
370    class StylesheetReference;
371    class Text;
372    class Comment;
373    class Attribute;
374}
375namespace orxonox
376{
377    using ticpp::Element;
378}
379
380#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.