Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added OrxonoxInterface, a base class for interfaces within the game logic (in contrast to OrxonoxClass which is for real classes)

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