Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

use the generic UpdateListener interface to receive calls to preUpdate() and postUpdate() instead of limiting this functionality to singletons.

  • 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 DestructionListener;
160    class DynLib;
161    class DynLibManager;
162    struct Event;
163    class EventState;
164    class Factory;
165    class Game;
166    class GameState;
167    struct GameStateInfo;
168    struct GameStateTreeNode;
169    class GraphicsManager;
170    class GUIManager;
171    class Identifiable;
172    class Identifier;
173    template <class T>
174    class Iterator;
175    class Language;
176    class Listable;
177    class Loader;
178    class LuaFunctor;
179    class LuaState;
180    class MemoryArchive;
181    class MemoryArchiveFactory;
182    class ModuleInstance;
183    class Namespace;
184    class NamespaceNode;
185    template <class T>
186    class ObjectList;
187    class ObjectListBase;
188    class ObjectListBaseElement;
189    template <class T>
190    class ObjectListElement;
191    template <class T>
192    class ObjectListIterator;
193    class OgreWindowEventListener;
194    class OrxonoxClass;
195    class OrxonoxInterface;
196    class PathConfig;
197    struct ResourceInfo;
198    template <ScopeID::Value>
199    class Scope;
200    template <class, ScopeID::Value>
201    class ScopedSingleton;
202    class SettingsConfigFile;
203    template <class T>
204    class SmartPtr;
205    class StaticallyInitializedInstance;
206    template <class T>
207    class SubclassIdentifier;
208    class Template;
209    class Thread;
210    class ThreadPool;
211    class UpdateListener;
212    class ViewportEventListener;
213    template <class T>
214    class WeakPtr;
215    class WindowEventListener;
216    class XMLFile;
217    class XMLNameListener;
218    template <class T, class O>
219    class XMLPortClassObjectContainer;
220    template <class T>
221    class XMLPortClassParamContainer;
222    class XMLPortObjectContainer;
223    class XMLPortParamContainer;
224
225    // Command
226    class ArgumentCompleter;
227    class ArgumentCompletionListElement;
228    class CommandEvaluation;
229    class ConsoleCommand;
230    class ConsoleCommandManager;
231    class Executor;
232    template <class T>
233    class ExecutorMember;
234    class ExecutorStatic;
235    class Functor;
236    template <class O>
237    class FunctorMember;
238    typedef FunctorMember<void> FunctorStatic;
239    template <class F, class O>
240    class FunctorPointer;
241    class IOConsole;
242    class IRC;
243    class Shell;
244    class ShellListener;
245    class TclBind;
246    struct TclInterpreterBundle;
247    template <class T>
248    class TclThreadList;
249    class TclThreadManager;
250
251    // Input
252    class BaseCommand;
253    class BufferedParamCommand;
254    class Button;
255    class HalfAxis;
256    class InputBuffer;
257    class InputDevice;
258    template <class Traits>
259    class InputDeviceTemplated;
260    class InputHandler;
261    class InputManager;
262    class InputState;
263    struct InputStatePriority;
264    class JoyStickQuantityListener;
265    class JoyStick;
266    class KeyBinder;
267    class KeyBinderManager;
268    class Keyboard;
269    class KeyDetector;
270    class KeyEvent;
271    class Mouse;
272    class ParamCommand;
273    class SimpleCommand;
274}
275
276#include "command/FunctorPtr.h"
277#include "command/ExecutorPtr.h"
278
279// CppTcl
280namespace Tcl
281{
282    class interpreter;
283    class object;
284}
285
286// Boost
287namespace boost
288{
289#if (BOOST_VERSION < 104400)
290
291    namespace filesystem
292    {
293        struct path_traits;
294        template <class String, class Traits> class basic_path;
295        typedef basic_path<std::string, path_traits> path;
296    }
297
298#elif (BOOST_VERSION < 105000)
299
300# if BOOST_FILESYSTEM_VERSION == 2
301    namespace filesystem2
302    {
303        struct path_traits;
304        template <class String, class Traits> class basic_path;
305        typedef basic_path<std::string, path_traits> path;
306    }
307    namespace filesystem
308    {
309        using filesystem2::basic_path;
310        using filesystem2::path_traits;
311        using filesystem2::path;
312    }
313# elif BOOST_FILESYSTEM_VERSION == 3
314    namespace filesystem3
315    {
316        class path;
317    }
318    namespace filesystem
319    {
320        using filesystem3::path;
321    }
322# endif
323
324#else
325
326    namespace filesystem
327    {
328        class path;
329    }
330
331#endif
332
333    class thread;
334    class mutex;
335    class shared_mutex;
336    class condition_variable;
337}
338
339// Ogre
340namespace Ogre
341{
342    class DataStream;
343    template <class T> class SharedPtr;
344    typedef SharedPtr<DataStream> DataStreamPtr;
345}
346namespace orxonox
347{
348    // Import the Ogre::DataStream
349    using Ogre::DataStream;
350    using Ogre::DataStreamPtr;
351}
352
353// CEGUI
354namespace CEGUI
355{
356    class DefaultLogger;
357    class Logger;
358    class LuaScriptModule;
359
360#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
361    class OgreCEGUIRenderer;
362    class OgreCEGUIResourceProvider;
363    class OgreCEGUITexture;
364#else
365    class OgreRenderer;
366    class OgreResourceProvider;
367    class OgreImageCodec;
368#endif
369}
370
371// Lua
372struct lua_State;
373
374// TinyXML and TinyXML++
375class TiXmlString;
376class TiXmlOutStream;
377class TiXmlNode;
378class TiXmlHandle;
379class TiXmlDocument;
380class TiXmlElement;
381class TiXmlComment;
382class TiXmlUnknown;
383class TiXmlAttribute;
384class TiXmlText;
385class TiXmlDeclaration;
386class TiXmlParsingData;
387namespace ticpp
388{
389    class Document;
390    class Element;
391    class Declaration;
392    class StylesheetReference;
393    class Text;
394    class Comment;
395    class Attribute;
396}
397namespace orxonox
398{
399    using ticpp::Element;
400}
401
402#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.