00001
00002
00003
00004 #ifndef OPENDDS_FEDERATOR_EXPORT_H
00005 #define OPENDDS_FEDERATOR_EXPORT_H
00006
00007 #include "ace/config-all.h"
00008
00009 #if defined (ACE_AS_STATIC_LIBS) && !defined (OPENDDS_FEDERATOR_HAS_DLL)
00010 # define OPENDDS_FEDERATOR_HAS_DLL 0
00011 #endif
00012
00013 #if !defined (OPENDDS_FEDERATOR_HAS_DLL)
00014 # define OPENDDS_FEDERATOR_HAS_DLL 1
00015 #endif
00016
00017 #if defined (OPENDDS_FEDERATOR_HAS_DLL) && (OPENDDS_FEDERATOR_HAS_DLL == 1)
00018 # if defined (OPENDDS_FEDERATOR_BUILD_DLL)
00019 # define OpenDDS_Federator_Export ACE_Proper_Export_Flag
00020 # define OPENDDS_FEDERATOR_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
00021 # define OPENDDS_FEDERATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00022 # else
00023 # define OpenDDS_Federator_Export ACE_Proper_Import_Flag
00024 # define OPENDDS_FEDERATOR_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
00025 # define OPENDDS_FEDERATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00026 # endif
00027 #else
00028 # define OpenDDS_Federator_Export
00029 # define OPENDDS_FEDERATOR_SINGLETON_DECLARATION(T)
00030 # define OPENDDS_FEDERATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00031 #endif
00032
00033
00034
00035 #if !defined (OPENDDS_FEDERATOR_NTRACE)
00036 # if (ACE_NTRACE == 1)
00037 # define OPENDDS_FEDERATOR_NTRACE 1
00038 # else
00039 # define OPENDDS_FEDERATOR_NTRACE 0
00040 # endif
00041 #endif
00042
00043 #if (OPENDDS_FEDERATOR_NTRACE == 1)
00044 # define OPENDDS_FEDERATOR_TRACE(X)
00045 #else
00046 # if !defined (ACE_HAS_TRACE)
00047 # define ACE_HAS_TRACE
00048 # endif
00049 # define OPENDDS_FEDERATOR_TRACE(X) ACE_TRACE_IMPL(X)
00050 # include "ace/Trace.h"
00051 #endif
00052
00053 #endif
00054
00055