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