Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS13/src/libraries/core/CorePrereqs.h @ 10118

Last change on this file since 10118 was 9703, checked in by landauf, 11 years ago

fixed build with boost 1.48 and 1.49

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