Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added destroyLater() to Destroyable. This will destroy the object (like destroy()) but not until the current tick has ended.

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