30 #ifndef IMPKERNEL_CONFIG_H
31 #define IMPKERNEL_CONFIG_H
33 #include <IMP/base/base_config.h>
39 #ifdef IMPKERNEL_EXPORTS
40 #define IMPKERNELEXPORT __declspec(dllexport)
42 #define IMPKERNELEXPORT __declspec(dllimport)
48 #define IMPKERNELEXPORT __attribute__ ((visibility("default")))
49 #else // GCC_VISIBILITY
50 #define IMPKERNELEXPORT
51 #endif // GCC_VISIBILITY
54 #if defined(_MSC_VER) && !defined(SWIG)
55 #ifdef IMPKERNEL_EXPORTS
57 #define IMPKERNEL_EXPORT_TEMPLATE(name) template class __declspec(dllexport) name
61 #define IMPKERNEL_EXPORT_TEMPLATE(name) template class __declspec(dllimport) name
66 #define IMPKERNEL_EXPORT_TEMPLATE(name) IMP_REQUIRE_SEMICOLON_NAMESPACE
68 #endif // MSC and SWIG
70 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
72 #define IMPKERNEL_BEGIN_NAMESPACE \
73 IMP_COMPILER_ENABLE_WARNINGS \
74 namespace IMP { namespace kernel { \
76 #define IMPKERNEL_END_NAMESPACE \
78 IMP_COMPILER_DISABLE_WARNINGS
80 #define IMPKERNEL_BEGIN_INTERNAL_NAMESPACE \
81 IMPKERNEL_BEGIN_NAMESPACE namespace internal {
84 #define IMPKERNEL_END_INTERNAL_NAMESPACE \
85 } IMPKERNEL_END_NAMESPACE
88 #define IMPKERNEL_BEGIN_NAMESPACE \
89 namespace IMP { namespace kernel {
91 #define IMPKERNEL_END_NAMESPACE \
94 #define IMPKERNEL_BEGIN_INTERNAL_NAMESPACE \
95 IMPKERNEL_BEGIN_NAMESPACE namespace internal {
98 #define IMPKERNEL_END_INTERNAL_NAMESPACE \
99 } IMPKERNEL_END_NAMESPACE
103 #define IMP_KERNEL_USE_IMP_CGAL
104 #define IMP_KERNEL_HAS_IMP_CGAL 1
105 #define IMP_KERNEL_USE_BOOST_PROGRAMOPTIONS
106 #define IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS 1
107 #define IMP_KERNEL_USE_BOOST_RANDOM
108 #define IMP_KERNEL_HAS_BOOST_RANDOM 1
109 #define IMP_KERNEL_USE_BOOST_SYSTEM
110 #define IMP_KERNEL_HAS_BOOST_SYSTEM 1
111 #define IMP_KERNEL_USE_CGAL
112 #define IMP_KERNEL_HAS_CGAL 1
116 namespace IMP {
namespace kernel {
123 IMPKERNELEXPORT std::string get_module_version();
128 inline std::string get_module_name() {
129 return "IMP::kernel";
135 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
140 namespace IMP {
namespace kernel {
141 using ::IMP::base::Showable;
142 using ::IMP::base::operator<<;
143 using ::IMP::base::hash_value;
145 namespace IMP {
namespace kernel {
namespace internal {
146 using ::IMP::base::Showable;
147 using ::IMP::base::operator<<;
148 using ::IMP::base::hash_value;
151 #endif // !defined(SWIG) && !defined(IMP_DOXYGEN)
156 namespace IMP {
namespace kernel {
169 IMPKERNELEXPORT std::string
get_data_path(std::string file_name);