Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2010, 5:04:12 PM (14 years ago)
Author:
rgrieder
Message:

Moved Loki library files to separate loki folder in externals.
Also added TypeManip.h (now used in Convert.h) and static_check.h.

Location:
code/trunk/src/libraries
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Core.h

    r6746 r7266  
    3636#include <string>
    3737#include <boost/scoped_ptr.hpp>
    38 #include "util/ScopeGuard.h"
     38#include <loki/ScopeGuard.h>
     39
    3940#include "util/Singleton.h"
    4041#include "OrxonoxClass.h"
  • code/trunk/src/libraries/core/CorePrecompiledHeaders.h

    r5781 r7266  
    5757#include <cmath>    // 42
    5858
    59 #include "util/ScopeGuard.h" // 38
     59#include <loki/ScopeGuard.h> // 38
    6060
    6161#include <OgreMath.h>        // 36
  • code/trunk/src/libraries/core/Game.cc

    r6502 r7266  
    3737#include <exception>
    3838#include <boost/weak_ptr.hpp>
     39#include <loki/ScopeGuard.h>
    3940
    4041#include "util/Clock.h"
    4142#include "util/Debug.h"
    4243#include "util/Exception.h"
    43 #include "util/ScopeGuard.h"
    4444#include "util/Sleep.h"
    4545#include "util/SubString.h"
  • code/trunk/src/libraries/core/Game.h

    r6746 r7266  
    4646#include <boost/scoped_ptr.hpp>
    4747#include <boost/preprocessor/cat.hpp>
     48#include <loki/ScopeGuard.h>
    4849
    4950#include "util/Debug.h"
    50 #include "util/ScopeGuard.h"
    5151#include "util/Singleton.h"
    5252#include "OrxonoxClass.h"
  • code/trunk/src/libraries/core/Identifier.h

    r6536 r7266  
    5757#include <string>
    5858#include <typeinfo>
     59#include <loki/TypeTraits.h>
    5960
    6061#include "util/Debug.h"
    61 #include "util/TypeTraits.h"
    6262#include "MetaObjectList.h"
    6363#include "ObjectList.h"
  • code/trunk/src/libraries/core/LuaState.cc

    r6763 r7266  
    3535#include <lualib.h>
    3636}
     37#include <loki/ScopeGuard.h>
    3738
    3839#include "util/Debug.h"
    3940#include "util/Exception.h"
    40 #include "util/ScopeGuard.h"
    4141#include "IOConsole.h"
    4242#include "Resource.h"
  • code/trunk/src/libraries/core/LuaState.h

    r6763 r7266  
    3838#include <vector>
    3939#include <boost/shared_ptr.hpp>
     40#include <loki/ScopeGuard.h>
    4041
    41 #include "util/ScopeGuard.h"
    4242#include "Functor.h"
    4343#include "ToluaInterface.h"
  • code/trunk/src/libraries/core/input/InputManager.cc

    r7174 r7266  
    4040#include <ois/OISInputManager.h>
    4141#include <boost/foreach.hpp>
     42#include <loki/ScopeGuard.h>
    4243
    4344#include "util/Clock.h"
    4445#include "util/Convert.h"
    4546#include "util/Exception.h"
    46 #include "util/ScopeGuard.h"
    4747#include "core/CoreIncludes.h"
    4848#include "core/ConfigValueIncludes.h"
  • code/trunk/src/libraries/network/NetworkPrecompiledHeaders.h

    r5781 r7266  
    5353
    5454#include "util/Debug.h"      // 20
    55 #include "util/TypeTraits.h" // 18
     55#include <loki/TypeTraits.h> // 18
    5656
    5757#ifdef ORXONOX_COMPILER_MSVC
  • code/trunk/src/libraries/network/synchronisable/Serialise.h

    r7163 r7266  
    3535#define _NetworkSerialise_H__
    3636
     37#include "network/NetworkPrereqs.h"
     38
     39#include <loki/TypeTraits.h>
     40
    3741#include "util/Serialise.h"
    38 #include "util/TypeTraits.h"
    3942#include "core/CorePrereqs.h"
    4043#include "core/CoreIncludes.h"
  • code/trunk/src/libraries/network/synchronisable/SynchronisableVariable.h

    r6417 r7266  
    3535#include <cassert>
    3636#include <cstring>
     37#include <loki/TypeTraits.h>
     38
    3739#include "Serialise.h"
    38 #include "util/TypeTraits.h"
    3940#include "core/GameMode.h"
    4041#include "network/synchronisable/NetworkCallbackManager.h"
  • code/trunk/src/libraries/util/Convert.h

    r7163 r7266  
    4141#include <sstream>
    4242#include <typeinfo>
     43#include <loki/TypeManip.h>
    4344
    4445#include "Debug.h"
     
    7677namespace orxonox
    7778{
    78     namespace detail
    79     {
    80         //! Little template that maps integers to entire types (Alexandrescu 2001)
    81         template <int I>
    82         struct Int2Type { };
    83     }
    84 
    85 
    8679    ///////////////////
    8780    // No Conversion //
     
    215208    // implicit cast not possible, try stringstream conversion next
    216209    template <class FromType, class ToType>
    217     FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<false>)
     210    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, Loki::Int2Type<false>)
    218211    {
    219212        return ConverterStringStream<FromType, ToType>::convert(output, input);
     
    222215    // We can cast implicitely
    223216    template <class FromType, class ToType>
    224     FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<true>)
     217    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, Loki::Int2Type<true>)
    225218    {
    226219        (*output) = static_cast<ToType>(input);
     
    242235            // Try implict cast and probe first. If a simple cast is not possible, it will not compile
    243236            // We therefore have to out source it into another template function
    244             return convertImplicitely(output, input, detail::Int2Type<probe>());
     237            return convertImplicitely(output, input, Loki::Int2Type<probe>());
    245238        }
    246239    };
  • code/trunk/src/libraries/util/MultiType.h

    r7165 r7266  
    7676#include <OgreQuaternion.h>
    7777#include <OgreColourValue.h>
    78 
    79 #include "TypeTraits.h"
     78#include <loki/TypeTraits.h>
    8079
    8180namespace orxonox
  • code/trunk/src/libraries/util/Scope.h

    r5929 r7266  
    3535#include <map>
    3636#include <set>
     37#include <loki/ScopeGuard.h>
    3738
    3839#include "Debug.h"
    39 #include "ScopeGuard.h"
    4040
    4141namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.