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
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
41//-----------------------------------------------------------------------
42// Shared library settings
43//-----------------------------------------------------------------------
44
45#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
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
55#  define _CorePrivate
56#elif defined (ORXONOX_GCC_VISIBILITY)
57#  define _CoreExport  __attribute__ ((visibility("default")))
58#  define _CorePrivate __attribute__ ((visibility("hidden")))
59#else
60#  define _CoreExport
61#  define _CorePrivate
62#endif
63
64//-----------------------------------------------------------------------
65// Constants
66//-----------------------------------------------------------------------
67
68namespace orxonox
69{
70    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
71}
72
73//-----------------------------------------------------------------------
74// Enums
75//-----------------------------------------------------------------------
76
77namespace orxonox
78{
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
89    namespace XMLPort
90    {
91        enum Mode
92        {
93            NOP,
94            LoadObject,
95            SaveObject,
96            ExpandObject
97        };
98    }
99
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
111    namespace KeybindMode
112    {
113        enum Value
114        {
115            OnPress,
116            OnHold,
117            OnRelease,
118            OnPressAndRelease,
119            None
120        };
121    };
122}
123
124//-----------------------------------------------------------------------
125// Forward declarations
126//-----------------------------------------------------------------------
127
128namespace orxonox
129{
130    typedef std::string LanguageEntryLabel;
131
132    template <class T, class U>
133    T orxonox_cast(U*);
134
135    class BaseObject;
136    template <class T>
137    class ClassFactory;
138    template <class T>
139    class ClassFactoryWithContext;
140    template <class T>
141    class ClassIdentifier;
142    class ClassTreeMask;
143    class ClassTreeMaskIterator;
144    class ClassTreeMaskNode;
145    class ClassTreeMaskObjectIterator;
146    class CommandLineParser;
147    class CommandLineArgument;
148    class ConfigFile;
149    class ConfigFileEntry;
150    class ConfigFileEntryComment;
151    class ConfigFileEntryValue;
152    class ConfigFileManager;
153    class ConfigFileSection;
154    class Configurable;
155    class ConfigValueContainer;
156    class Context;
157    class Core;
158    class Destroyable;
159    class DestroyLaterManager;
160    class DestructionListener;
161    class DynLib;
162    class DynLibManager;
163    struct Event;
164    class EventState;
165    class Factory;
166    class Game;
167    class GameState;
168    struct GameStateInfo;
169    struct GameStateTreeNode;
170    class GraphicsManager;
171    class GUIManager;
172    class Identifiable;
173    class Identifier;
174    template <class T>
175    class Iterator;
176    class Language;
177    class Listable;
178    class Loader;
179    class LuaFunctor;
180    class LuaState;
181    class MemoryArchive;
182    class MemoryArchiveFactory;
183    class ModuleInstance;
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;
194    class OgreWindowEventListener;
195    class OrxonoxClass;
196    class OrxonoxInterface;
197    class PathConfig;
198    struct ResourceInfo;
199    template <ScopeID::Value>
200    class Scope;
201    template <class, ScopeID::Value>
202    class ScopedSingleton;
203    class SettingsConfigFile;
204    template <class T>
205    class SmartPtr;
206    class StaticallyInitializedInstance;
207    template <class T>
208    class SubclassIdentifier;
209    class Template;
210    class Thread;
211    class ThreadPool;
212    class UpdateListener;
213    class ViewportEventListener;
214    template <class T>
215    class WeakPtr;
216    class WindowEventListener;
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;
225
226    // Command
227    class ArgumentCompleter;
228    class ArgumentCompletionListElement;
229    class CommandEvaluation;
230    class ConsoleCommand;
231    class ConsoleCommandManager;
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
252    // Input
253    class BaseCommand;
254    class BufferedParamCommand;
255    class Button;
256    class HalfAxis;
257    class InputBuffer;
258    class InputDevice;
259    template <class Traits>
260    class InputDeviceTemplated;
261    class InputHandler;
262    class InputManager;
263    class InputState;
264    struct InputStatePriority;
265    class JoyStickQuantityListener;
266    class JoyStick;
267    class KeyBinder;
268    class KeyBinderManager;
269    class Keyboard;
270    class KeyDetector;
271    class KeyEvent;
272    class Mouse;
273    class ParamCommand;
274    class SimpleCommand;
275}
276
277#include "command/FunctorPtr.h"
278#include "command/ExecutorPtr.h"
279
280// CppTcl
281namespace Tcl
282{
283    class interpreter;
284    class object;
285}
286
287// Boost
288namespace boost
289{
290#if (BOOST_VERSION < 104400)
291
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    }
298
299#elif (BOOST_VERSION < 105000)
300
301# if BOOST_FILESYSTEM_VERSION == 2
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    }
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
332#endif
333
334    class thread;
335    class mutex;
336    class shared_mutex;
337    class condition_variable;
338}
339
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
354// CEGUI
355namespace CEGUI
356{
357    class DefaultLogger;
358    class Logger;
359    class LuaScriptModule;
360
361#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
362    class OgreCEGUIRenderer;
363    class OgreCEGUIResourceProvider;
364    class OgreCEGUITexture;
365#else
366    class OgreRenderer;
367    class OgreResourceProvider;
368    class OgreImageCodec;
369#endif
370}
371
372// Lua
373struct lua_State;
374
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
403#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.