Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/kicklib/src/libraries/core/CorePrereqs.h @ 7967

Last change on this file since 7967 was 7960, checked in by rgrieder, 13 years ago

Applied C++ code changes to compile Orxonox with CEGUI 0.7 (does not run yet).

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