Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2007, 9:48:52 PM (17 years ago)
Author:
rgrieder
Message:
  • fixed multiple template instantiation problem under windows
  • removed some warnings by introducing explicit casts
Location:
code/branches/FICN/src/orxonox/core
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/CoreIncludes.h

    r708 r729  
    8888
    8989/**
     90    @brief Exports the necessary templates in order to make them available to all libraries.
     91    @param ClassName The name of the Class
     92    @param LibraryName The name of the Library
     93*/
     94#define ExportClass(ClassName, LibraryName) \
     95    template class _##LibraryName##Export orxonox::ClassIdentifier<ClassName>; \
     96    template class _##LibraryName##Export orxonox::ObjectList<ClassName>; \
     97    template class _##LibraryName##Export orxonox::ClassFactory<ClassName>
     98
     99/**
     100    @brief Exports the necessary templates in order to make them available to all libraries.
     101    @param ClassName The name of the Class
     102    @param LibraryName The name of the Library
     103*/
     104#define ExportAbstractClass(ClassName, LibraryName) \
     105    template class _##LibraryName##Export orxonox::ClassIdentifier<ClassName>; \
     106    template class _##LibraryName##Export orxonox::ObjectList<ClassName>
     107
     108/**
    90109    @brief Returns the Identifier of the given class.
    91110    @param ClassName The name of the class
  • code/branches/FICN/src/orxonox/core/DebugLevel.cc

    r728 r729  
    3131*/
    3232
    33 #include "CoreIncludes.h"
    3433#include "DebugLevel.h"
    3534
  • code/branches/FICN/src/orxonox/core/DebugLevel.h

    r708 r729  
    4141#include "OrxonoxClass.h"
    4242#include "OutputHandler.h"
     43#include "CoreIncludes.h"
    4344
    4445namespace orxonox
     
    6263            ConfigValueContainer* softDebugLevelContainer_; //!< The config value container for the debug level
    6364    };
     65    ExportAbstractClass(DebugLevel, Core);
    6466}
    6567
  • code/branches/FICN/src/orxonox/core/Identifier.h

    r723 r729  
    5454#include <map>
    5555#include <string>
     56#include <utility>
    5657
    5758#include "CorePrereqs.h"
  • code/branches/FICN/src/orxonox/core/Language.cc

    r728 r729  
    245245            if (lineString.compare("") != 0)
    246246            {
    247                 unsigned int pos = lineString.find('=');
     247                unsigned int pos = (unsigned int)lineString.find('=');
    248248
    249249                // Check if the length is at least 3 and if there's an entry before and behind the =
     
    288288            if (lineString.compare("") != 0)
    289289            {
    290                 unsigned int pos = lineString.find('=');
     290                unsigned int pos = (unsigned int)lineString.find('=');
    291291
    292292                // Check if the length is at least 3 and if there's an entry before and behind the =
  • code/branches/FICN/src/orxonox/core/Language.h

    r728 r729  
    8282            bool bTranslationSet_;                                  //!< True if the translation was set
    8383    };
     84    template class _CoreExport orxonox::ClassIdentifier<LanguageEntry>;
     85    template class _CoreExport orxonox::ObjectList<LanguageEntry>;
    8486
    8587    //! The Language class manges the language files and entries and stores the LanguageEntry objects in a map.
     
    108110            std::map<std::string, LanguageEntry*> languageEntries_; //!< A map to store all LanguageEntry objects and their name
    109111    };
     112    template class _CoreExport orxonox::ClassIdentifier<Language>;
     113    template class _CoreExport orxonox::ObjectList<Language>;
    110114}
    111115
  • code/branches/FICN/src/orxonox/core/ObjectList.h

    r698 r729  
    3939
    4040#include "CorePrereqs.h"
     41#include "Iterator.h"
    4142
    4243namespace orxonox
  • code/branches/FICN/src/orxonox/core/OrxonoxClass.h

    r715 r729  
    4141#include "CorePrereqs.h"
    4242#include "MetaObjectList.h"
    43 #include "Identifier.h"
     43#include "Iterator.h"
    4444
    4545namespace orxonox
     
    158158            bool bVisible_;                 //!< True = the object is visible
    159159    };
     160    template class _CoreExport orxonox::ClassIdentifier<OrxonoxClass>;
     161    template class _CoreExport orxonox::ObjectList<OrxonoxClass>;
    160162}
    161163
Note: See TracChangeset for help on using the changeset viewer.