MAK RTIspy API Documentation for HLA 1.3
SpecificConfig.h
Go to the documentation of this file.
00001 /***********************************************************************
00002    The IEEE hereby grants a general, royalty-free license to copy, distribute,
00003    display and make derivative works from this material, for all purposes,
00004    provided that any use of the material contains the following
00005    attribution: "Reprinted with permission from IEEE 1516.1(TM)-2010".
00006    Should you require additional information, contact the Manager, Standards
00007    Intellectual Property, IEEE Standards Association (stds-ipr@ieee.org).
00008 ***********************************************************************/
00009 /***********************************************************************
00010    IEEE 1516.1 High Level Architecture Interface Specification C++ API
00011    File: RTI/SpecificConfig.h
00012 ***********************************************************************/
00013 
00014 // Purpose: This file contains definitions that are used to isolate
00015 // platform-specific elements of the API.  It is not implementation-specific.
00016 
00017 #ifndef RTI_SpecificConfig_h
00018 #define RTI_SpecificConfig_h
00019 
00020 #if defined(_WIN32)
00021 #if defined(_MSC_VER) && defined(RTI_DISABLE_WARNINGS)
00022 // disable warning about truncating template instantiation symbol names
00023 #pragma warning(disable: 4786)
00024 // disable warning about exceptions not being part of a method's signature
00025 #pragma warning(disable: 4290)
00026 // disable warnings about a "dllexport" class using a regular class
00027 #pragma warning(disable: 4251)
00028 #endif
00029 //
00030 // On Windows, BUILDING_RTI should be defined only when compiling
00031 // the RTI DLL (i.e. by RTI developers).  BUILDING_FEDTIME should
00032 // be defined only when building a libfedtime DLL.  STATIC_RTI
00033 // should be defined when building a static (non-DLL) RTI library,
00034 // or when building a federate that wants to statically link to
00035 // an RTI library.  STATIC_FEDTIME should be defined when building
00036 // a static (non-DLL) fedtime library, or when building a federate
00037 // that wants to statically link to a fedtime library.
00038 //
00039 #if defined(STATIC_RTI)
00040 #define RTI_EXPORT
00041 #else
00042 #if defined(BUILDING_RTI)
00043 // define the proper qualifiers to import/export symbols from/to DLL
00044 #define RTI_EXPORT __declspec(dllexport)
00045 #else // !BUILDING_RTI
00046 #define RTI_EXPORT __declspec(dllimport)
00047 #endif // BUILDING_RTI
00048 #endif // STATIC_RTI
00049 
00050 #if defined(STATIC_FEDTIME)
00051 #define RTI_EXPORT_FEDTIME
00052 #else
00053 #if defined(BUILDING_FEDTIME)
00054 // define the proper qualifiers to import/export symbols from/to DLL
00055 #define RTI_EXPORT_FEDTIME __declspec(dllexport)
00056 #else // !BUILDING_FEDTIME
00057 #define RTI_EXPORT_FEDTIME __declspec(dllimport)
00058 #endif // BUILDING_FEDTIME
00059 #endif // STATIC_FEDTIME
00060 
00061 #else // !_WIN32
00062 // no special qualfifers are necessary on non-WIN32 platforms
00063 #define RTI_EXPORT
00064 #define RTI_EXPORT_FEDTIME
00065 #endif
00066 
00067 #endif // RTI_SpecificConfig_h

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)