Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core7/src/libraries/core/CorePrereqs.h @ 10395

Last change on this file since 10395 was 10392, checked in by landauf, 9 years ago

Loader is now a singleton instead of a static class. fixes issue with statically initialized ClassTreeMask (which again requires a BaseObject-Identifier)

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