IMP logo
Public Member Functions
IMP::base::CreateLogContext Struct Reference

Detailed Description

Create a new log context.

The following produces

    myfunction:
       1
       2
       3
{
CreateLogContext ii("myfunction ");
IMP_LOG(VERBOSE, 1);
IMP_LOG(VERBOSE, 2);
IMP_LOG(VERBOSE, 3);
}
IMP_LOG(VERBOSE, "Now it is has ended." << std::endl);

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.

List of all members.

Public Member Functions

 CreateLogContext (const char *fname, const void *object=nullptr)
void reset ()
void set (const char *fname, const void *object=nullptr)
void show (std::ostream &out=std::cout) const

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

Generated on Tue May 22 2012 23:33:28 for IMP by doxygen 1.8.1