Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10555 was 10555, checked in by landauf, 5 years ago

renamed SmartPtr to StrongPtr (now we have weak and strong pointers)

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