Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7268 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
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#elif defined ( ORXONOX_GCC_VISIBILITY )
56#  define _CoreExport  __attribute__ ((visibility("default")))
57#else
58#  define _CoreExport
59#endif
60
61//-----------------------------------------------------------------------
62// Constants
63//-----------------------------------------------------------------------
64
65namespace orxonox
66{
67    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
68}
69
70//-----------------------------------------------------------------------
71// Enums
72//-----------------------------------------------------------------------
73
74namespace orxonox
75{
76    namespace XMLPort
77    {
78        enum Mode
79        {
80            NOP,
81            LoadObject,
82            SaveObject,
83            ExpandObject
84        };
85    }
86
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
98    namespace KeybindMode
99    {
100        enum Value
101        {
102            OnPress,
103            OnHold,
104            OnRelease,
105            None
106        };
107    };
108}
109
110//-----------------------------------------------------------------------
111// Forward declarations
112//-----------------------------------------------------------------------
113
114namespace orxonox
115{
116    typedef std::string LanguageEntryLabel;
117
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;
130    class CommandLineParser;
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;
141    class DynLib;
142    class DynLibManager;
143    struct Event;
144    class EventState;
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;
154    class Game;
155    class GameState;
156    struct GameStateInfo;
157    struct GameStateTreeNode;
158    class GraphicsManager;
159    class GUIManager;
160    class Identifier;
161    class IOConsole;
162    class IRC;
163    template <class T>
164    class Iterator;
165    class Language;
166    class LuaState;
167    class MemoryArchive;
168    class MemoryArchiveFactory;
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;
181    class OgreWindowEventListener;
182    class OrxonoxClass;
183    class PathConfig;
184    struct ResourceInfo;
185    class SettingsConfigFile;
186    class Shell;
187    class ShellListener;
188    template <class T>
189    class SmartPtr;
190    template <class T>
191    class SubclassIdentifier;
192    class TclBind;
193    struct TclInterpreterBundle;
194    template <class T>
195    class TclThreadList;
196    class TclThreadManager;
197    class Template;
198    class Thread;
199    class ThreadPool;
200    template <class T>
201    class WeakPtr;
202    class WindowEventListener;
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;
211
212    // Input
213    class BaseCommand;
214    class BufferedParamCommand;
215    class Button;
216    class HalfAxis;
217    class InputBuffer;
218    class InputDevice;
219    template <class Traits>
220    class InputDeviceTemplated;
221    class InputHandler;
222    class InputManager;
223    class InputState;
224    struct InputStatePriority;
225    class JoyStickQuantityListener;
226    class JoyStick;
227    class KeyBinder;
228    class KeyBinderManager;
229    class Keyboard;
230    class KeyDetector;
231    class KeyEvent;
232    class Mouse;
233    class ParamCommand;
234    class SimpleCommand;
235}
236
237// CppTcl
238namespace Tcl
239{
240    class interpreter;
241    class object;
242}
243
244// Boost
245namespace boost
246{
247#if (BOOST_VERSION < 104400)
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    }
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
268    class thread;
269    class mutex;
270    class shared_mutex;
271    class condition_variable;
272}
273
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
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
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
331#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.