9 #ifndef IMPKERNEL_CREATE_WARNING_CONTEXT_H
10 #define IMPKERNEL_CREATE_WARNING_CONTEXT_H
12 #include <IMP/kernel_config.h>
14 #include <boost/unordered_set.hpp>
16 IMPKERNEL_BEGIN_NAMESPACE
20 mutable boost::unordered_set<std::string> data_;
23 void add_warning(std::string key, std::string warning)
const;
24 void clear_warnings()
const;
25 void dump_warnings()
const;
33 void add_warning(std::string, std::string)
const {}
34 void clear_warnings()
const {}
35 void dump_warnings()
const {}
36 void show(std::ostream &)
const {}
40 IMPKERNEL_END_NAMESPACE
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
Various general useful macros for IMP.