Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added draft for StaticInitializationHandler

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