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"; }
150 IMPBASEEXPORT std::string
get_data_path(std::string file_name);
182 #ifdef IMPBASE_DEPRECATED_HEADER
183 #undef IMPBASE_DEPRECATED_HEADER
184 #undef IMPBASE_DEPRECATED_VALUE_DEF
185 #undef IMPBASE_DEPRECATED_VALUE_DECL
186 #undef IMPBASE_DEPRECATED_OBJECT_DEF
187 #undef IMPBASE_DEPRECATED_OBJECT_DECL
188 #undef IMPBASE_DEPRECATED_FUNCTION_DEF
189 #undef IMPBASE_DEPRECATED_FUNCTION_DECL
190 #undef IMPBASE_DEPRECATED_METHOD_DEF
191 #undef IMPBASE_DEPRECATED_METHOD_DECL
192 #undef IMPBASE_DEPRECATED_MACRO
193 #undef IMPBASE_SHOW_WARNINGS
197 #if defined( IMPBASE_COMPILATION) \
198 || defined(SWIG) || defined(IMP_SWIG_WRAPPER) \
199 || defined( IMPBASE_ALL) || defined(IMP_DOXYGEN) \
200 || defined(IMPBASE_COMPILATION) || defined(IMPKERNEL_COMPILATION) \
201 || defined(IMPCORE_COMPILATION) || defined(IMPATOM_COMPILATION) \
202 || defined(IMPSTATISTICS_COMPILATION) || defined(IMPDOMINO_COMPILATION) \
203 || defined(IMPCONTAINER_COMPILATION) || defined(IMPDISPLAY_COMPILATION) \
204 || defined(IMPSCOREFUNCTOR_COMPILATION) || defined(IMPRMF_COMPILATION) \
205 || defined(IMPGSL_COMPILATION)
206 #define IMPBASE_SHOW_WARNINGS 0
208 #define IMPBASE_SHOW_WARNINGS 1
212 #if IMPBASE_SHOW_WARNINGS
213 #define IMPBASE_DEPRECATED_HEADER(version, help_message) \
214 IMP_PRAGMA(message(__FILE__ " is deprecated: " help_message))
215 #define IMPBASE_DEPRECATED_VALUE_DECL(version) \
216 IMP_DEPRECATED_ATTRIBUTE
217 #define IMPBASE_DEPRECATED_OBJECT_DECL(version) \
218 IMP_DEPRECATED_ATTRIBUTE
219 #define IMPBASE_DEPRECATED_FUNCTION_DECL(version) \
220 IMP_DEPRECATED_ATTRIBUTE
221 #define IMPBASE_DEPRECATED_METHOD_DECL(version) \
222 IMP_DEPRECATED_ATTRIBUTE
224 #else //IMPBASE_SHOW_WARNINGS
226 #define IMPBASE_DEPRECATED_HEADER(version, help_message) \
228 #define IMPBASE_DEPRECATED_VALUE_DECL(version)
230 #define IMPBASE_DEPRECATED_OBJECT_DECL(version)
232 #define IMPBASE_DEPRECATED_FUNCTION_DECL(version)
234 #define IMPBASE_DEPRECATED_METHOD_DECL(version)
236 #endif // IMPBASE_SHOW_WARNINGS
239 #if !defined(IMP_ALL) || defined(SWIG) || defined(IMP_DOXYGEN) \
240 || defined(IMPBASE_COMPILATION) || defined(IMPKERNEL_COMPILATION) \
241 || defined(IMPCORE_COMPILATION) || defined(IMPATOM_COMPILATION) \
242 || defined(IMPSTATISTICS_COMPILATION) || defined(IMPDOMINO_COMPILATION) \
243 || defined(IMPCONTAINER_COMPILATION) || defined(IMPDISPLAY_COMPILATION) \
244 || defined(IMPSCOREFUNCTOR_COMPILATION)
246 #define IMPBASE_DEPRECATED_MACRO(version, message)
249 #define IMPBASE_DEPRECATED_MACRO(version, message) \
250 IMP_DEPRECATED_MACRO(version, message)
254 #define IMPBASE_DEPRECATED_VALUE_DEF(version, message) \
255 IMP_DEPRECATED_VALUE_RUNTIME_WARNING(version, message)
258 #define IMPBASE_DEPRECATED_OBJECT_DEF(version, message) \
259 IMP_DEPRECATED_OBJECT_RUNTIME_WARNING(version, message)
262 #define IMPBASE_DEPRECATED_FUNCTION_DEF(version, message) \
263 IMP_DEPRECATED_FUNCTION_RUNTIME_WARNING(version, message)
266 #define IMPBASE_DEPRECATED_METHOD_DEF(version, message) \
267 IMP_DEPRECATED_METHOD_RUNTIME_WARNING(version, message)
272 #if defined(IMP_EXECUTABLE) && !defined(IMP_EXECUTABLE_WARNINGS)
273 IMP_COMPILER_ENABLE_WARNINGS
274 #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.