Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core7/src/libraries/core/CorePrereqs.h @ 10376

Last change on this file since 10376 was 10346, checked in by landauf, 9 years ago

moved static contents from ConsoleCommand to ConsoleCommandManager

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