IMP Reference Guide
develop.63b38c487d,2024/12/21
The Integrative Modeling Platform
|
Create a new log context. More...
#include <IMP/CreateLogContext.h>
Create a new log context.
The following produces
myfunction: 1 2 3
The more interesting use is that you can use it before calling a function to ensure that all the output of that function is nicely offset.
Definition at line 47 of file CreateLogContext.h.
Public Member Functions | |
CreateLogContext (std::string fname, const Object *object=nullptr) | |
CreateLogContext (const char *fname, const Object *object=nullptr) | |
Explicit constructor that sets the properties of CreateLogContext. More... | |
void | reset () |
Remove the properties previously set for this class. More... | |
void | set (const char *fname, const Object *object=nullptr) |
Assign new properties to the class. More... | |
void | show (std::ostream &out=std::cout) const |
|
explicit |
Explicit constructor that sets the properties of CreateLogContext.
Definition at line 74 of file CreateLogContext.h.
void IMP::CreateLogContext::reset | ( | ) |
Remove the properties previously set for this class.
Definition at line 74 of file CreateLogContext.h.
void IMP::CreateLogContext::set | ( | const char * | fname, |
const Object * | object = nullptr |
||
) |
Assign new properties to the class.
Definition at line 74 of file CreateLogContext.h.