8#ifndef IMPKERNEL_SET_LOG_STATE_H
9#define IMPKERNEL_SET_LOG_STATE_H
11#include <IMP/kernel_config.h>
16IMPKERNEL_BEGIN_NAMESPACE
30class IMPKERNELEXPORT SetLogState :
public RAII {
35 void do_show(std::ostream &out)
const;
42 { do_set(o, l); }, {
if (level_ !=
DEFAULT) do_reset(); }, do_show(out););
55IMPKERNEL_END_NAMESPACE
Common base class for heavy weight IMP objects.
A class to change and restore log state.
SetLogState(LogLevel l)
Construct with the desired level and target.
void set(Object *o, LogLevel l)
Assign new properties to the class.
Basic enumeration types used by IMP.
IMP::Vector< SetLogState > SetLogStates
LogLevel
The log levels supported by IMP.
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.