29 #ifndef IMPBASE_CONFIG_H
30 #define IMPBASE_CONFIG_H
32 #include <IMP/base/base_config.h>
37 #ifdef IMPBASE_EXPORTS
38 #define IMPBASEEXPORT __declspec(dllexport)
40 #define IMPBASEEXPORT __declspec(dllimport)
46 #define IMPBASEEXPORT __attribute__((visibility("default")))
47 #else // GCC_VISIBILITY
49 #endif // GCC_VISIBILITY
53 #if defined(_MSC_VER) && !defined(SWIG)
54 #ifdef IMPBASE_EXPORTS
56 #define IMPBASE_EXPORT_TEMPLATE(name) \
57 template class __declspec(dllexport) name
61 #define IMPBASE_EXPORT_TEMPLATE(name) \
62 template class __declspec(dllimport) name
67 #define IMPBASE_EXPORT_TEMPLATE(name) IMP_REQUIRE_SEMICOLON_NAMESPACE
69 #endif // MSC and SWIG
71 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
73 #define IMPBASE_BEGIN_NAMESPACE \
74 IMP_COMPILER_ENABLE_WARNINGS namespace IMP{namespace base {
76 #define IMPBASE_END_NAMESPACE } } \
77 IMP_COMPILER_DISABLE_WARNINGS
79 #define IMPBASE_BEGIN_INTERNAL_NAMESPACE IMPBASE_BEGIN_NAMESPACE \
82 #define IMPBASE_END_INTERNAL_NAMESPACE } IMPBASE_END_NAMESPACE
84 #else // SWIG and DOXYGEN
85 #define IMPBASE_BEGIN_NAMESPACE namespace IMP{namespace base {
87 #define IMPBASE_END_NAMESPACE } }
89 #define IMPBASE_BEGIN_INTERNAL_NAMESPACE IMPBASE_BEGIN_NAMESPACE\
92 #define IMPBASE_END_INTERNAL_NAMESPACE } IMPBASE_END_NAMESPACE
94 #endif // SWIG AND DOXYGEN
96 #define IMP_BUILD IMP_RELEASE
97 #define IMP_HAS_LOG IMP_VERBOSE
98 #define IMP_HAS_CHECKS IMP_INTERNAL
100 #define IMP_RELEASE 1
102 #define IMP_PROGRESS 2
104 #define IMP_VERBOSE 4
108 #define IMP_INTERNAL 2
109 #define IMP_BASE_HAS_LOG4CXX 0
110 #define IMP_COMPILER_HAS_AUTO 0
111 #define IMP_COMPILER_HAS_DEBUG_VECTOR 1
112 #define IMP_BASE_USE_BOOST_RANDOM
113 #define IMP_BASE_HAS_BOOST_RANDOM 1
114 #define IMP_BASE_NO_GPERFTOOLS
115 #define IMP_BASE_HAS_GPERFTOOLS 0
116 #define IMP_BASE_NO_TCMALLOC_HEAPCHECKER
117 #define IMP_BASE_HAS_TCMALLOC_HEAPCHECKER 0
118 #define IMP_BASE_NO_TCMALLOC_HEAPPROFILER
119 #define IMP_BASE_HAS_TCMALLOC_HEAPPROFILER 0
130 IMPBASEEXPORT std::string get_module_version();
135 inline std::string get_module_name() {
return "IMP::base"; }
158 IMPBASEEXPORT std::string
get_data_path(std::string file_name);
192 #ifdef IMPBASE_DEPRECATED_HEADER
193 #undef IMPBASE_DEPRECATED_HEADER
194 #undef IMPBASE_DEPRECATED_VALUE_DEF
195 #undef IMPBASE_DEPRECATED_VALUE_DECL
196 #undef IMPBASE_DEPRECATED_OBJECT_DEF
197 #undef IMPBASE_DEPRECATED_OBJECT_DECL
198 #undef IMPBASE_DEPRECATED_FUNCTION_DEF
199 #undef IMPBASE_DEPRECATED_FUNCTION_DECL
200 #undef IMPBASE_DEPRECATED_METHOD_DEF
201 #undef IMPBASE_DEPRECATED_METHOD_DECL
202 #undef IMPBASE_DEPRECATED_MACRO
203 #undef IMPBASE_SHOW_WARNINGS
207 #if defined( IMPBASE_COMPILATION) \
208 || defined(SWIG) || defined(IMP_SWIG_WRAPPER) \
209 || defined( IMPBASE_ALL) || defined(IMP_DOXYGEN) \
210 || defined(IMPBASE_COMPILATION) || defined(IMPKERNEL_COMPILATION) \
211 || defined(IMPCORE_COMPILATION) || defined(IMPATOM_COMPILATION) \
212 || defined(IMPSTATISTICS_COMPILATION) || defined(IMPDOMINO_COMPILATION) \
213 || defined(IMPCONTAINER_COMPILATION) || defined(IMPDISPLAY_COMPILATION) \
214 || defined(IMPSCOREFUNCTOR_COMPILATION) || defined(IMPRMF_COMPILATION) \
215 || defined(IMPGSL_COMPILATION)
216 #define IMPBASE_SHOW_WARNINGS 0
218 #define IMPBASE_SHOW_WARNINGS 1
222 #if IMPBASE_SHOW_WARNINGS
223 #define IMPBASE_DEPRECATED_HEADER(version, help_message) \
224 IMP_PRAGMA(message(__FILE__ " is deprecated: " help_message))
225 #define IMPBASE_DEPRECATED_VALUE_DECL(version) \
226 IMP_DEPRECATED_ATTRIBUTE
227 #define IMPBASE_DEPRECATED_OBJECT_DECL(version) \
228 IMP_DEPRECATED_ATTRIBUTE
229 #define IMPBASE_DEPRECATED_FUNCTION_DECL(version) \
230 IMP_DEPRECATED_ATTRIBUTE
231 #define IMPBASE_DEPRECATED_METHOD_DECL(version) \
232 IMP_DEPRECATED_ATTRIBUTE
234 #else //IMPBASE_SHOW_WARNINGS
236 #define IMPBASE_DEPRECATED_HEADER(version, help_message) \
238 #define IMPBASE_DEPRECATED_VALUE_DECL(version)
240 #define IMPBASE_DEPRECATED_OBJECT_DECL(version)
242 #define IMPBASE_DEPRECATED_FUNCTION_DECL(version)
244 #define IMPBASE_DEPRECATED_METHOD_DECL(version)
246 #endif // IMPBASE_SHOW_WARNINGS
249 #if !defined(IMP_ALL) || defined(SWIG) || defined(IMP_DOXYGEN) \
250 || defined(IMPBASE_COMPILATION) || defined(IMPKERNEL_COMPILATION) \
251 || defined(IMPCORE_COMPILATION) || defined(IMPATOM_COMPILATION) \
252 || defined(IMPSTATISTICS_COMPILATION) || defined(IMPDOMINO_COMPILATION) \
253 || defined(IMPCONTAINER_COMPILATION) || defined(IMPDISPLAY_COMPILATION) \
254 || defined(IMPSCOREFUNCTOR_COMPILATION)
256 #define IMPBASE_DEPRECATED_MACRO(version, message)
259 #define IMPBASE_DEPRECATED_MACRO(version, message) \
260 IMP_DEPRECATED_MACRO(version, message)
264 #define IMPBASE_DEPRECATED_VALUE_DEF(version, message) \
265 IMP_DEPRECATED_VALUE_RUNTIME_WARNING(version, message)
268 #define IMPBASE_DEPRECATED_OBJECT_DEF(version, message) \
269 IMP_DEPRECATED_OBJECT_RUNTIME_WARNING(version, message)
272 #define IMPBASE_DEPRECATED_FUNCTION_DEF(version, message) \
273 IMP_DEPRECATED_FUNCTION_RUNTIME_WARNING(version, message)
276 #define IMPBASE_DEPRECATED_METHOD_DEF(version, message) \
277 IMP_DEPRECATED_METHOD_RUNTIME_WARNING(version, message)
282 #if defined(IMP_EXECUTABLE) && !defined(IMP_EXECUTABLE_WARNINGS)
283 IMP_COMPILER_ENABLE_WARNINGS
284 #define IMP_EXECUTABLE_WARNINGS
std::string get_data_path(std::string file_name)
Return the full path to installed data.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Various compiler workarounds.