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