Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7169 was 7169, checked in by landauf, 14 years ago

fixed an issue with boost 1.44.0

  • Property svn:eol-style set to native
File size: 7.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
55#elif defined ( ORXONOX_GCC_VISIBILITY )
56#  define _CoreExport  __attribute__ ((visibility("default")))
57#else
58#  define _CoreExport
59#endif
[682]60
[5929]61//-----------------------------------------------------------------------
62// Constants
63//-----------------------------------------------------------------------
[728]64
[5929]65namespace orxonox
66{
67    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
68}
69
[682]70//-----------------------------------------------------------------------
[5929]71// Enums
[728]72//-----------------------------------------------------------------------
[5929]73
[728]74namespace orxonox
[684]75{
[3196]76    namespace XMLPort
[1052]77    {
[3196]78        enum Mode
79        {
[5929]80            NOP,
[3196]81            LoadObject,
82            SaveObject,
83            ExpandObject
84        };
85    }
[1052]86
[6536]87    namespace ConfigFileType
88    {
89        enum Value
90        {
91            Settings,
92            JoyStickCalibration,
93            CommandHistory
94            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
95        };
96    }
97
[3196]98    namespace KeybindMode
[1502]99    {
[3280]100        enum Value
[3196]101        {
102            OnPress,
103            OnHold,
104            OnRelease,
105            None
106        };
[1502]107    };
[5929]108}
[1349]109
[5929]110//-----------------------------------------------------------------------
111// Forward declarations
112//-----------------------------------------------------------------------
113
114namespace orxonox
115{
[3196]116    typedef std::string LanguageEntryLabel;
[1024]117
[3196]118    class ArgumentCompleter;
119    class ArgumentCompletionListElement;
120    class BaseObject;
121    template <class T>
122    class ClassFactory;
123    template <class T>
124    class ClassIdentifier;
125    class ClassTreeMask;
126    class ClassTreeMaskIterator;
127    class ClassTreeMaskNode;
128    class ClassTreeMaskObjectIterator;
129    class CommandEvaluation;
[6021]130    class CommandLineParser;
[3196]131    class CommandLineArgument;
132    class ConfigFile;
133    class ConfigFileEntry;
134    class ConfigFileEntryComment;
135    class ConfigFileEntryValue;
136    class ConfigFileManager;
137    class ConfigFileSection;
138    class ConfigValueContainer;
139    class ConsoleCommand;
140    class Core;
[5693]141    class DynLib;
142    class DynLibManager;
[3196]143    struct Event;
[5929]144    class EventState;
[3196]145    class Executor;
146    template <class T>
147    class ExecutorMember;
148    class ExecutorStatic;
149    class Factory;
150    class Functor;
151    template <class T>
152    class FunctorMember;
153    class FunctorStatic;
[5929]154    class Game;
155    class GameState;
156    struct GameStateInfo;
157    struct GameStateTreeNode;
[3370]158    class GraphicsManager;
159    class GUIManager;
[3196]160    class Identifier;
[6105]161    class IOConsole;
[3196]162    class IRC;
163    template <class T>
164    class Iterator;
165    class Language;
[5695]166    class LuaState;
167    class MemoryArchive;
168    class MemoryArchiveFactory;
[3196]169    class MetaObjectList;
170    class MetaObjectListElement;
171    class Namespace;
172    class NamespaceNode;
173    template <class T>
174    class ObjectList;
175    class ObjectListBase;
176    class ObjectListBaseElement;
177    template <class T>
178    class ObjectListElement;
179    template <class T>
180    class ObjectListIterator;
[3370]181    class OgreWindowEventListener;
[3196]182    class OrxonoxClass;
[5929]183    class PathConfig;
[5695]184    struct ResourceInfo;
[6536]185    class SettingsConfigFile;
[3196]186    class Shell;
187    class ShellListener;
188    template <class T>
[5929]189    class SmartPtr;
190    template <class T>
[3196]191    class SubclassIdentifier;
192    class TclBind;
[3318]193    struct TclInterpreterBundle;
194    template <class T>
195    class TclThreadList;
[3196]196    class TclThreadManager;
197    class Template;
[5929]198    class Thread;
199    class ThreadPool;
200    template <class T>
201    class WeakPtr;
[3327]202    class WindowEventListener;
[3196]203    class XMLFile;
204    class XMLNameListener;
205    template <class T, class O>
206    class XMLPortClassObjectContainer;
207    template <class T>
208    class XMLPortClassParamContainer;
209    class XMLPortObjectContainer;
210    class XMLPortParamContainer;
[1219]211
[5929]212    // Input
[3196]213    class BaseCommand;
214    class BufferedParamCommand;
215    class Button;
216    class HalfAxis;
217    class InputBuffer;
[3327]218    class InputDevice;
219    template <class Traits>
220    class InputDeviceTemplated;
221    class InputHandler;
[3196]222    class InputManager;
223    class InputState;
[5929]224    struct InputStatePriority;
225    class JoyStickQuantityListener;
[3327]226    class JoyStick;
[5929]227    class KeyBinder;
228    class KeyBinderManager;
[3327]229    class Keyboard;
[3196]230    class KeyDetector;
[5929]231    class KeyEvent;
232    class Mouse;
[3196]233    class ParamCommand;
234    class SimpleCommand;
[682]235}
236
[3196]237// CppTcl
238namespace Tcl
239{
240    class interpreter;
241    class object;
242}
243
244// Boost
[3304]245namespace boost
[3318]246{
[7169]247#if (BOOST_VERSION < 104400)
[3304]248    namespace filesystem
249    {
250        struct path_traits;
251        template <class String, class Traits> class basic_path;
252        typedef basic_path<std::string, path_traits> path;
253    }
[7169]254#else
255    namespace filesystem2
256    {
257        struct path_traits;
258        template <class String, class Traits> class basic_path;
259        typedef basic_path<std::string, path_traits> path;
260    }
261    namespace filesystem
262    {
263        using filesystem2::basic_path;
264        using filesystem2::path_traits;
265        using filesystem2::path;
266    }
267#endif
[3304]268    class thread;
269    class mutex;
[3318]270    class shared_mutex;
271    class condition_variable;
[3304]272}
[3196]273
[5695]274// Ogre
275namespace Ogre
276{
277    class DataStream;
278    template <class T> class SharedPtr;
279    typedef SharedPtr<DataStream> DataStreamPtr;
280}
281namespace orxonox
282{
283    // Import the Ogre::DataStream
284    using Ogre::DataStream;
285    using Ogre::DataStreamPtr;
286}
287
[3370]288// CEGUI
289namespace CEGUI
290{
291    class DefaultLogger;
292    class Logger;
293    class LuaScriptModule;
294
295    class OgreCEGUIRenderer;
296    class OgreCEGUIResourceProvider;
297    class OgreCEGUITexture;
298}
299
300// Lua
301struct lua_State;
302
[3196]303// TinyXML and TinyXML++
304class TiXmlString;
305class TiXmlOutStream;
306class TiXmlNode;
307class TiXmlHandle;
308class TiXmlDocument;
309class TiXmlElement;
310class TiXmlComment;
311class TiXmlUnknown;
312class TiXmlAttribute;
313class TiXmlText;
314class TiXmlDeclaration;
315class TiXmlParsingData;
316namespace ticpp
317{
318    class Document;
319    class Element;
320    class Declaration;
321    class StylesheetReference;
322    class Text;
323    class Comment;
324    class Attribute;
325}
326namespace orxonox
327{
328    using ticpp::Element;
329}
330
[682]331#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.