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
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;
142    class ConfigValueContainer;
[9561]143    class Context;
[3196]144    class Core;
[7849]145    class DestructionListener;
[5693]146    class DynLib;
147    class DynLibManager;
[3196]148    struct Event;
[5929]149    class EventState;
[3196]150    class Factory;
[5929]151    class Game;
152    class GameState;
153    struct GameStateInfo;
154    struct GameStateTreeNode;
[3370]155    class GraphicsManager;
156    class GUIManager;
[9565]157    class Identifiable;
[3196]158    class Identifier;
159    template <class T>
160    class Iterator;
161    class Language;
[7284]162    class LuaFunctor;
[5695]163    class LuaState;
164    class MemoryArchive;
165    class MemoryArchiveFactory;
[3196]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;
[3370]178    class OgreWindowEventListener;
[3196]179    class OrxonoxClass;
[5929]180    class PathConfig;
[5695]181    struct ResourceInfo;
[6536]182    class SettingsConfigFile;
[3196]183    template <class T>
[5929]184    class SmartPtr;
185    template <class T>
[3196]186    class SubclassIdentifier;
187    class Template;
[5929]188    class Thread;
189    class ThreadPool;
[8079]190    class ViewportEventListener;
[5929]191    template <class T>
192    class WeakPtr;
[3327]193    class WindowEventListener;
[3196]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;
[1219]202
[7284]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
[5929]228    // Input
[3196]229    class BaseCommand;
230    class BufferedParamCommand;
231    class Button;
232    class HalfAxis;
233    class InputBuffer;
[3327]234    class InputDevice;
235    template <class Traits>
236    class InputDeviceTemplated;
237    class InputHandler;
[3196]238    class InputManager;
239    class InputState;
[5929]240    struct InputStatePriority;
241    class JoyStickQuantityListener;
[3327]242    class JoyStick;
[5929]243    class KeyBinder;
244    class KeyBinderManager;
[3327]245    class Keyboard;
[3196]246    class KeyDetector;
[5929]247    class KeyEvent;
248    class Mouse;
[3196]249    class ParamCommand;
250    class SimpleCommand;
[682]251}
252
[7284]253#include "command/FunctorPtr.h"
254#include "command/ExecutorPtr.h"
255
[3196]256// CppTcl
257namespace Tcl
258{
259    class interpreter;
260    class object;
261}
262
263// Boost
[3304]264namespace boost
[3318]265{
[7169]266#if (BOOST_VERSION < 104400)
[8351]267
[3304]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    }
[8351]274
275#elif (BOOST_VERSION < 104800)
276
277# if BOOST_FILESYSTEM_VERSION == 2
[7169]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    }
[8351]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
[7169]309#endif
[8351]310
[3304]311    class thread;
312    class mutex;
[3318]313    class shared_mutex;
314    class condition_variable;
[3304]315}
[3196]316
[5695]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
[3370]331// CEGUI
332namespace CEGUI
333{
334    class DefaultLogger;
335    class Logger;
336    class LuaScriptModule;
337
[8351]338#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
[3370]339    class OgreCEGUIRenderer;
340    class OgreCEGUIResourceProvider;
341    class OgreCEGUITexture;
[8351]342#else
343    class OgreRenderer;
344    class OgreResourceProvider;
345    class OgreImageCodec;
346#endif
[3370]347}
348
349// Lua
350struct lua_State;
351
[3196]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
[682]380#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.