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
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
[7197]237#include "FunctorPtr.h"
238#include "ExecutorPtr.h"
239
[3196]240// CppTcl
241namespace Tcl
242{
243    class interpreter;
244    class object;
245}
246
247// Boost
[3304]248namespace boost
[3318]249{
[7169]250#if (BOOST_VERSION < 104400)
[3304]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    }
[7169]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
[3304]271    class thread;
272    class mutex;
[3318]273    class shared_mutex;
274    class condition_variable;
[3304]275}
[3196]276
[5695]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
[3370]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
[3196]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
[682]334#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.