9#ifndef IMPKERNEL_SET_CHECK_STATE_H
10#define IMPKERNEL_SET_CHECK_STATE_H
12#include <IMP/kernel_config.h>
17IMPKERNEL_BEGIN_NAMESPACE
30class IMPKERNELEXPORT SetCheckState :
public RAII {
35 void do_show(std::ostream &out)
const;
42 { do_set(o, l); }, {
if (level_ !=
DEFAULT_CHECK) do_reset(); },
56IMPKERNEL_END_NAMESPACE
Common base class for heavy weight IMP objects.
A class to change and restore check state.
SetCheckState(CheckLevel l)
Construct it with the desired level and target.
void set(Object *o, CheckLevel l)
Assign new properties to the class.
Basic enumeration types used by IMP.
CheckLevel
Specify the level of runtime checks performed.
IMP::Vector< SetCheckState > SetCheckStates
Macros to aid in writing RAII-style classes.
#define IMP_RAII(Name, args, Initialize, Set, Reset, Show)
Declares RAII-style methods in a class.
Macros to help in implementing Value objects.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.