Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/libraries/core/CorePrereqs.h @ 9703

Last change on this file since 9703 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
RevLine 
[682]1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
[1502]3 *                    > www.orxonox.net <
[682]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/**
[5929]30@file
31@brief
32    Shared library macros, enums, constants and forward declarations for the core library
[871]33*/
[682]34
35#ifndef _CorePrereqs_H__
36#define _CorePrereqs_H__
37
[2710]38#include "OrxonoxConfig.h"
[7169]39#include <boost/version.hpp>
[1062]40
[728]41//-----------------------------------------------------------------------
42// Shared library settings
43//-----------------------------------------------------------------------
[5929]44
[2710]45#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
[728]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
[8351]55#  define _CorePrivate
56#elif defined (ORXONOX_GCC_VISIBILITY)
[728]57#  define _CoreExport  __attribute__ ((visibility("default")))
[8351]58#  define _CorePrivate __attribute__ ((visibility("hidden")))
[728]59#else
60#  define _CoreExport
[8351]61#  define _CorePrivate
[728]62#endif
[682]63
[5929]64//-----------------------------------------------------------------------
65// Constants
66//-----------------------------------------------------------------------
[728]67
[5929]68namespace orxonox
69{
70    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
71}
72
[682]73//-----------------------------------------------------------------------
[5929]74// Enums
[728]75//-----------------------------------------------------------------------
[5929]76
[728]77namespace orxonox
[684]78{
[3196]79    namespace XMLPort
[1052]80    {
[3196]81        enum Mode
82        {
[5929]83            NOP,
[3196]84            LoadObject,
85            SaveObject,
86            ExpandObject
87        };
88    }
[1052]89
[6536]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
[3196]101    namespace KeybindMode
[1502]102    {
[3280]103        enum Value
[3196]104        {
105            OnPress,
106            OnHold,
107            OnRelease,
108            None
109        };
[1502]110    };
[5929]111}
[1349]112
[5929]113//-----------------------------------------------------------------------
114// Forward declarations
115//-----------------------------------------------------------------------
116
117namespace orxonox
118{
[3196]119    typedef std::string LanguageEntryLabel;
[1024]120
[7271]121    template <class T, class U>
122    T orxonox_cast(U*);
123
[3196]124    class BaseObject;
125    template <class T>
126    class ClassFactory;
127    template <class T>
[9667]128    class ClassFactoryWithContext;
129    template <class T>
[3196]130    class ClassIdentifier;
131    class ClassTreeMask;
132    class ClassTreeMaskIterator;
133    class ClassTreeMaskNode;
134    class ClassTreeMaskObjectIterator;
[6021]135    class CommandLineParser;
[3196]136    class CommandLineArgument;
137    class ConfigFile;
138    class ConfigFileEntry;
139    class ConfigFileEntryComment;
140    class ConfigFileEntryValue;
141    class ConfigFileManager;
142    class ConfigFileSection;
[9667]143    class Configurable;
[3196]144    class ConfigValueContainer;
[9667]145    class Context;
[3196]146    class Core;
[9667]147    class Destroyable;
[7849]148    class DestructionListener;
[5693]149    class DynLib;
150    class DynLibManager;
[3196]151    struct Event;
[5929]152    class EventState;
[3196]153    class Factory;
[5929]154    class Game;
155    class GameState;
156    struct GameStateInfo;
157    struct GameStateTreeNode;
[3370]158    class GraphicsManager;
159    class GUIManager;
[9667]160    class Identifiable;
[3196]161    class Identifier;
162    template <class T>
163    class Iterator;
164    class Language;
[9667]165    class Listable;
[7284]166    class LuaFunctor;
[5695]167    class LuaState;
168    class MemoryArchive;
169    class MemoryArchiveFactory;
[3196]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;
[3370]180    class OgreWindowEventListener;
[3196]181    class OrxonoxClass;
[9667]182    class OrxonoxInterface;
[5929]183    class PathConfig;
[5695]184    struct ResourceInfo;
[6536]185    class SettingsConfigFile;
[3196]186    template <class T>
[5929]187    class SmartPtr;
188    template <class T>
[3196]189    class SubclassIdentifier;
190    class Template;
[5929]191    class Thread;
192    class ThreadPool;
[8079]193    class ViewportEventListener;
[5929]194    template <class T>
195    class WeakPtr;
[3327]196    class WindowEventListener;
[3196]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;
[1219]205
[7284]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
[5929]231    // Input
[3196]232    class BaseCommand;
233    class BufferedParamCommand;
234    class Button;
235    class HalfAxis;
236    class InputBuffer;
[3327]237    class InputDevice;
238    template <class Traits>
239    class InputDeviceTemplated;
240    class InputHandler;
[3196]241    class InputManager;
242    class InputState;
[5929]243    struct InputStatePriority;
244    class JoyStickQuantityListener;
[3327]245    class JoyStick;
[5929]246    class KeyBinder;
247    class KeyBinderManager;
[3327]248    class Keyboard;
[3196]249    class KeyDetector;
[5929]250    class KeyEvent;
251    class Mouse;
[3196]252    class ParamCommand;
253    class SimpleCommand;
[682]254}
255
[7284]256#include "command/FunctorPtr.h"
257#include "command/ExecutorPtr.h"
258
[3196]259// CppTcl
260namespace Tcl
261{
262    class interpreter;
263    class object;
264}
265
266// Boost
[3304]267namespace boost
[3318]268{
[7169]269#if (BOOST_VERSION < 104400)
[8351]270
[3304]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    }
[8351]277
[9703]278#elif (BOOST_VERSION < 105000)
[8351]279
280# if BOOST_FILESYSTEM_VERSION == 2
[7169]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    }
[8351]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
[7169]311#endif
[8351]312
[3304]313    class thread;
314    class mutex;
[3318]315    class shared_mutex;
316    class condition_variable;
[3304]317}
[3196]318
[5695]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
[3370]333// CEGUI
334namespace CEGUI
335{
336    class DefaultLogger;
337    class Logger;
338    class LuaScriptModule;
339
[8351]340#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
[3370]341    class OgreCEGUIRenderer;
342    class OgreCEGUIResourceProvider;
343    class OgreCEGUITexture;
[8351]344#else
345    class OgreRenderer;
346    class OgreResourceProvider;
347    class OgreImageCodec;
348#endif
[3370]349}
350
351// Lua
352struct lua_State;
353
[3196]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
[682]382#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.