Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/consolecommands3/src/libraries/core/CorePrereqs.h @ 7197

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

Changed the implementation of SharedPtr again. I decided to represent the inheritance of the underlying object pointers by using inheritance in the SharedPtr itself (with SharedChildPtr : public SharedPtr). The previous solution led to ambiguity in functions that are overloaded for different types of SharedPtr (for example createExecutor).

  • Property svn:eol-style set to native
File size: 7.6 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#include "FunctorPtr.h"
238#include "ExecutorPtr.h"
239
240// CppTcl
241namespace Tcl
242{
243    class interpreter;
244    class object;
245}
246
247// Boost
248namespace boost
249{
250#if (BOOST_VERSION < 104400)
251    namespace filesystem
252    {
253        struct path_traits;
254        template <class String, class Traits> class basic_path;
255        typedef basic_path<std::string, path_traits> path;
256    }
257#else
258    namespace filesystem2
259    {
260        struct path_traits;
261        template <class String, class Traits> class basic_path;
262        typedef basic_path<std::string, path_traits> path;
263    }
264    namespace filesystem
265    {
266        using filesystem2::basic_path;
267        using filesystem2::path_traits;
268        using filesystem2::path;
269    }
270#endif
271    class thread;
272    class mutex;
273    class shared_mutex;
274    class condition_variable;
275}
276
277// Ogre
278namespace Ogre
279{
280    class DataStream;
281    template <class T> class SharedPtr;
282    typedef SharedPtr<DataStream> DataStreamPtr;
283}
284namespace orxonox
285{
286    // Import the Ogre::DataStream
287    using Ogre::DataStream;
288    using Ogre::DataStreamPtr;
289}
290
291// CEGUI
292namespace CEGUI
293{
294    class DefaultLogger;
295    class Logger;
296    class LuaScriptModule;
297
298    class OgreCEGUIRenderer;
299    class OgreCEGUIResourceProvider;
300    class OgreCEGUITexture;
301}
302
303// Lua
304struct lua_State;
305
306// TinyXML and TinyXML++
307class TiXmlString;
308class TiXmlOutStream;
309class TiXmlNode;
310class TiXmlHandle;
311class TiXmlDocument;
312class TiXmlElement;
313class TiXmlComment;
314class TiXmlUnknown;
315class TiXmlAttribute;
316class TiXmlText;
317class TiXmlDeclaration;
318class TiXmlParsingData;
319namespace ticpp
320{
321    class Document;
322    class Element;
323    class Declaration;
324    class StylesheetReference;
325    class Text;
326    class Comment;
327    class Attribute;
328}
329namespace orxonox
330{
331    using ticpp::Element;
332}
333
334#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.