Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

adapted all console commands to the new interface

  • Property svn:eol-style set to native
File size: 7.7 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 BaseObject;
119    template <class T>
120    class ClassFactory;
121    template <class T>
122    class ClassIdentifier;
123    class ClassTreeMask;
124    class ClassTreeMaskIterator;
125    class ClassTreeMaskNode;
126    class ClassTreeMaskObjectIterator;
[6021]127    class CommandLineParser;
[3196]128    class CommandLineArgument;
129    class ConfigFile;
130    class ConfigFileEntry;
131    class ConfigFileEntryComment;
132    class ConfigFileEntryValue;
133    class ConfigFileManager;
134    class ConfigFileSection;
135    class ConfigValueContainer;
136    class Core;
[5693]137    class DynLib;
138    class DynLibManager;
[3196]139    struct Event;
[5929]140    class EventState;
[3196]141    class Factory;
[5929]142    class Game;
143    class GameState;
144    struct GameStateInfo;
145    struct GameStateTreeNode;
[3370]146    class GraphicsManager;
147    class GUIManager;
[3196]148    class Identifier;
149    template <class T>
150    class Iterator;
151    class Language;
[7199]152    class LuaFunctor;
[5695]153    class LuaState;
154    class MemoryArchive;
155    class MemoryArchiveFactory;
[3196]156    class MetaObjectList;
157    class MetaObjectListElement;
158    class Namespace;
159    class NamespaceNode;
160    template <class T>
161    class ObjectList;
162    class ObjectListBase;
163    class ObjectListBaseElement;
164    template <class T>
165    class ObjectListElement;
166    template <class T>
167    class ObjectListIterator;
[3370]168    class OgreWindowEventListener;
[3196]169    class OrxonoxClass;
[5929]170    class PathConfig;
[5695]171    struct ResourceInfo;
[6536]172    class SettingsConfigFile;
[3196]173    template <class T>
[5929]174    class SmartPtr;
175    template <class T>
[3196]176    class SubclassIdentifier;
177    class Template;
[5929]178    class Thread;
179    class ThreadPool;
180    template <class T>
181    class WeakPtr;
[3327]182    class WindowEventListener;
[3196]183    class XMLFile;
184    class XMLNameListener;
185    template <class T, class O>
186    class XMLPortClassObjectContainer;
187    template <class T>
188    class XMLPortClassParamContainer;
189    class XMLPortObjectContainer;
190    class XMLPortParamContainer;
[1219]191
[7204]192    // Command
193    class ArgumentCompleter;
194    class ArgumentCompletionListElement;
195    class CommandEvaluation;
[7219]196    class _ConsoleCommand;
[7204]197    class Executor;
198    template <class T>
199    class ExecutorMember;
200    class ExecutorStatic;
201    class Functor;
[7212]202    template <class O>
[7204]203    class FunctorMember;
[7212]204    typedef FunctorMember<void> FunctorStatic;
205    template <class F, class O>
206    class FunctorPointer;
[7204]207    class IOConsole;
208    class IRC;
209    class Shell;
210    class ShellListener;
211    class TclBind;
212    struct TclInterpreterBundle;
213    template <class T>
214    class TclThreadList;
215    class TclThreadManager;
216
[5929]217    // Input
[3196]218    class BaseCommand;
219    class BufferedParamCommand;
220    class Button;
221    class HalfAxis;
222    class InputBuffer;
[3327]223    class InputDevice;
224    template <class Traits>
225    class InputDeviceTemplated;
226    class InputHandler;
[3196]227    class InputManager;
228    class InputState;
[5929]229    struct InputStatePriority;
230    class JoyStickQuantityListener;
[3327]231    class JoyStick;
[5929]232    class KeyBinder;
233    class KeyBinderManager;
[3327]234    class Keyboard;
[3196]235    class KeyDetector;
[5929]236    class KeyEvent;
237    class Mouse;
[3196]238    class ParamCommand;
239    class SimpleCommand;
[682]240}
241
[7204]242#include "command/FunctorPtr.h"
243#include "command/ExecutorPtr.h"
[7197]244
[3196]245// CppTcl
246namespace Tcl
247{
248    class interpreter;
249    class object;
250}
251
252// Boost
[3304]253namespace boost
[3318]254{
[7169]255#if (BOOST_VERSION < 104400)
[3304]256    namespace filesystem
257    {
258        struct path_traits;
259        template <class String, class Traits> class basic_path;
260        typedef basic_path<std::string, path_traits> path;
261    }
[7169]262#else
263    namespace filesystem2
264    {
265        struct path_traits;
266        template <class String, class Traits> class basic_path;
267        typedef basic_path<std::string, path_traits> path;
268    }
269    namespace filesystem
270    {
271        using filesystem2::basic_path;
272        using filesystem2::path_traits;
273        using filesystem2::path;
274    }
275#endif
[3304]276    class thread;
277    class mutex;
[3318]278    class shared_mutex;
279    class condition_variable;
[3304]280}
[3196]281
[5695]282// Ogre
283namespace Ogre
284{
285    class DataStream;
286    template <class T> class SharedPtr;
287    typedef SharedPtr<DataStream> DataStreamPtr;
288}
289namespace orxonox
290{
291    // Import the Ogre::DataStream
292    using Ogre::DataStream;
293    using Ogre::DataStreamPtr;
294}
295
[3370]296// CEGUI
297namespace CEGUI
298{
299    class DefaultLogger;
300    class Logger;
301    class LuaScriptModule;
302
303    class OgreCEGUIRenderer;
304    class OgreCEGUIResourceProvider;
305    class OgreCEGUITexture;
306}
307
308// Lua
309struct lua_State;
310
[3196]311// TinyXML and TinyXML++
312class TiXmlString;
313class TiXmlOutStream;
314class TiXmlNode;
315class TiXmlHandle;
316class TiXmlDocument;
317class TiXmlElement;
318class TiXmlComment;
319class TiXmlUnknown;
320class TiXmlAttribute;
321class TiXmlText;
322class TiXmlDeclaration;
323class TiXmlParsingData;
324namespace ticpp
325{
326    class Document;
327    class Element;
328    class Declaration;
329    class StylesheetReference;
330    class Text;
331    class Comment;
332    class Attribute;
333}
334namespace orxonox
335{
336    using ticpp::Element;
337}
338
[682]339#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.