Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2007, 9:48:52 PM (16 years ago)
Author:
rgrieder
Message:
  • fixed multiple template instantiation problem under windows
  • removed some warnings by introducing explicit casts
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.