Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core6/src/libraries/core/CorePrereqs.h @ 9572

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

moved meta-object-list from Identifiable to Listable, a new base class for objects with objectlists (yep)

  • 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#include <CEGUIVersion.h>
41
42//-----------------------------------------------------------------------
43// Shared library settings
44//-----------------------------------------------------------------------
45
46#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
47#  ifdef CORE_SHARED_BUILD
48#    define _CoreExport __declspec(dllexport)
49#  else
50#    if defined( __MINGW32__ )
51#      define _CoreExport
52#    else
53#      define _CoreExport __declspec(dllimport)
54#    endif
55#  endif
56#  define _CorePrivate
57#elif defined (ORXONOX_GCC_VISIBILITY)
58#  define _CoreExport  __attribute__ ((visibility("default")))
59#  define _CorePrivate __attribute__ ((visibility("hidden")))
60#else
61#  define _CoreExport
62#  define _CorePrivate
63#endif
64
65//-----------------------------------------------------------------------
66// Constants
67//-----------------------------------------------------------------------
68
69namespace orxonox
70{
71    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
72}
73
74//-----------------------------------------------------------------------
75// Enums
76//-----------------------------------------------------------------------
77
78namespace orxonox
79{
80    namespace XMLPort
81    {
82        enum Mode
83        {
84            NOP,
85            LoadObject,
86            SaveObject,
87            ExpandObject
88        };
89    }
90
91    namespace ConfigFileType
92    {
93        enum Value
94        {
95            Settings,
96            JoyStickCalibration,
97            CommandHistory
98            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
99        };
100    }
101
102    namespace KeybindMode
103    {
104        enum Value
105        {
106            OnPress,
107            OnHold,
108            OnRelease,
109            None
110        };
111    };
112}
113
114//-----------------------------------------------------------------------
115// Forward declarations
116//-----------------------------------------------------------------------
117
118namespace orxonox
119{
120    typedef std::string LanguageEntryLabel;
121
122    template <class T, class U>
123    T orxonox_cast(U*);
124
125    class BaseObject;
126    template <class T>
127    class ClassFactory;
128    template <class T>
129    class ClassIdentifier;
130    class ClassTreeMask;
131    class ClassTreeMaskIterator;
132    class ClassTreeMaskNode;
133    class ClassTreeMaskObjectIterator;
134    class CommandLineParser;
135    class CommandLineArgument;
136    class ConfigFile;
137    class ConfigFileEntry;
138    class ConfigFileEntryComment;
139    class ConfigFileEntryValue;
140    class ConfigFileManager;
141    class ConfigFileSection;
142    class ConfigValueContainer;
143    class Context;
144    class Core;
145    class Destroyable;
146    class DestructionListener;
147    class DynLib;
148    class DynLibManager;
149    struct Event;
150    class EventState;
151    class Factory;
152    class Game;
153    class GameState;
154    struct GameStateInfo;
155    struct GameStateTreeNode;
156    class GraphicsManager;
157    class GUIManager;
158    class Identifiable;
159    class Identifier;
160    template <class T>
161    class Iterator;
162    class Language;
163    class Listable;
164    class LuaFunctor;
165    class LuaState;
166    class MemoryArchive;
167    class MemoryArchiveFactory;
168    class MetaObjectList;
169    class MetaObjectListElement;
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 PathConfig;
183    struct ResourceInfo;
184    class SettingsConfigFile;
185    template <class T>
186    class SmartPtr;
187    template <class T>
188    class SubclassIdentifier;
189    class Template;
190    class Thread;
191    class ThreadPool;
192    class ViewportEventListener;
193    template <class T>
194    class WeakPtr;
195    class WindowEventListener;
196    class XMLFile;
197    class XMLNameListener;
198    template <class T, class O>
199    class XMLPortClassObjectContainer;
200    template <class T>
201    class XMLPortClassParamContainer;
202    class XMLPortObjectContainer;
203    class XMLPortParamContainer;
204
205    // Command
206    class ArgumentCompleter;
207    class ArgumentCompletionListElement;
208    class CommandEvaluation;
209    class ConsoleCommand;
210    class Executor;
211    template <class T>
212    class ExecutorMember;
213    class ExecutorStatic;
214    class Functor;
215    template <class O>
216    class FunctorMember;
217    typedef FunctorMember<void> FunctorStatic;
218    template <class F, class O>
219    class FunctorPointer;
220    class IOConsole;
221    class IRC;
222    class Shell;
223    class ShellListener;
224    class TclBind;
225    struct TclInterpreterBundle;
226    template <class T>
227    class TclThreadList;
228    class TclThreadManager;
229
230    // Input
231    class BaseCommand;
232    class BufferedParamCommand;
233    class Button;
234    class HalfAxis;
235    class InputBuffer;
236    class InputDevice;
237    template <class Traits>
238    class InputDeviceTemplated;
239    class InputHandler;
240    class InputManager;
241    class InputState;
242    struct InputStatePriority;
243    class JoyStickQuantityListener;
244    class JoyStick;
245    class KeyBinder;
246    class KeyBinderManager;
247    class Keyboard;
248    class KeyDetector;
249    class KeyEvent;
250    class Mouse;
251    class ParamCommand;
252    class SimpleCommand;
253}
254
255#include "command/FunctorPtr.h"
256#include "command/ExecutorPtr.h"
257
258// CppTcl
259namespace Tcl
260{
261    class interpreter;
262    class object;
263}
264
265// Boost
266namespace boost
267{
268#if (BOOST_VERSION < 104400)
269
270    namespace filesystem
271    {
272        struct path_traits;
273        template <class String, class Traits> class basic_path;
274        typedef basic_path<std::string, path_traits> path;
275    }
276
277#elif (BOOST_VERSION < 104800)
278
279# if BOOST_FILESYSTEM_VERSION == 2
280    namespace filesystem2
281    {
282        struct path_traits;
283        template <class String, class Traits> class basic_path;
284        typedef basic_path<std::string, path_traits> path;
285    }
286    namespace filesystem
287    {
288        using filesystem2::basic_path;
289        using filesystem2::path_traits;
290        using filesystem2::path;
291    }
292# elif BOOST_FILESYSTEM_VERSION == 3
293    namespace filesystem3
294    {
295        class path;
296    }
297    namespace filesystem
298    {
299        using filesystem3::path;
300    }
301# endif
302
303#else
304
305    // TODO: Check this once boost 1.48 is released
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.