IMP logo
IMP Reference Guide  2.20.2
The Integrative Modeling Platform
IMP::SetLogState Class Reference

A class to change and restore log state. More...

#include <IMP/SetLogState.h>

+ Inheritance diagram for IMP::SetLogState:

Detailed Description

A class to change and restore log state.

To use, create an instance of this class with the log level you want. When it goes out of scope, it will restore the old level.

Note
This will not keep objects alive; make sure there is also some other ref-counted pointer to them.

Definition at line 30 of file SetLogState.h.

Public Member Functions

 SetLogState (Object *o, LogLevel l)
 Explicit constructor that sets the properties of SetLogState. More...
 
 SetLogState (LogLevel l)
 Construct with the desired level and target. More...
 
void reset ()
 Remove the properties previously set for this class. More...
 
void set (Object *o, LogLevel l)
 Assign new properties to the class. More...
 
void set (LogLevel l)
 
void show (std::ostream &out=std::cout) const
 

Constructor & Destructor Documentation

IMP::SetLogState::SetLogState ( Object o,
LogLevel  l 
)
explicit

Explicit constructor that sets the properties of SetLogState.

Definition at line 42 of file SetLogState.h.

IMP::SetLogState::SetLogState ( LogLevel  l)

Construct with the desired level and target.

Member Function Documentation

void IMP::SetLogState::reset ( )

Remove the properties previously set for this class.

Definition at line 42 of file SetLogState.h.

void IMP::SetLogState::set ( Object o,
LogLevel  l 
)

Assign new properties to the class.

Definition at line 42 of file SetLogState.h.


The documentation for this class was generated from the following file: