Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 1, 2008, 9:29:23 PM (16 years ago)
Author:
landauf
Message:

(1) removed ExportClass and ExportAbstractClass macros
(2) removed _UtilExport from templates

reto, i hope (2) removed some of your compiler errors and orxonox works still on your system with (1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/util/Convert.h

    r827 r845  
    4141// DEFAULT CLASS
    4242template <typename FromType, typename ToType>
    43 class _UtilExport Converter
     43class Converter
    4444{
    4545  public:
     
    5252// PARTIAL SPECIALIZATION TO CONVERT TO STRINGS
    5353template<typename FromType>
    54 class _UtilExport Converter<FromType, std::string>
     54class Converter<FromType, std::string>
    5555{
    5656  public:
     
    7070// PARTIAL SPECIALIZATION TO CONVERT FROM STRING
    7171template<typename ToType>
    72 class _UtilExport Converter<std::string, ToType>
     72class Converter<std::string, ToType>
    7373{
    7474  public:
     
    8585// FUNCTION SO WE DO NOT HAVE TO TELL THE COMPILER ABOUT THE TYPE
    8686template<typename FromType, typename ToType>
    87 static _UtilExport bool ConvertValue(ToType* output, const FromType& input)
     87static bool ConvertValue(ToType* output, const FromType& input)
    8888{
    8989  Converter<FromType, ToType> converter;
     
    9393// THE SAME, BUT WITH DEFAULT VALUE
    9494template<typename FromType, typename ToType>
    95 static _UtilExport bool ConvertValue(ToType* output, const FromType& input, const ToType& fallback)
     95static bool ConvertValue(ToType* output, const FromType& input, const ToType& fallback)
    9696{
    9797  Converter<FromType, ToType> converter;
     
    108108// Vector2 to std::string
    109109template <>
    110 class _UtilExport Converter<orxonox::Vector2, std::string>
     110class Converter<orxonox::Vector2, std::string>
    111111{
    112112  public:
     
    126126// Vector3 to std::string
    127127template <>
    128 class _UtilExport Converter<orxonox::Vector3, std::string>
     128class Converter<orxonox::Vector3, std::string>
    129129{
    130130  public:
     
    144144// Vector4 to std::string
    145145template <>
    146 class _UtilExport Converter<orxonox::Vector4, std::string>
     146class Converter<orxonox::Vector4, std::string>
    147147{
    148148  public:
     
    162162// Quaternion to std::string
    163163template <>
    164 class _UtilExport Converter<orxonox::Quaternion, std::string>
     164class Converter<orxonox::Quaternion, std::string>
    165165{
    166166  public:
     
    180180// ColourValue to std::string
    181181template <>
    182 class _UtilExport Converter<orxonox::ColourValue, std::string>
     182class Converter<orxonox::ColourValue, std::string>
    183183{
    184184  public:
Note: See TracChangeset for help on using the changeset viewer.