IMP logo

IMP::IncreaseIndent Class Reference


Detailed Description

Increase the current indent in the log by one level.

The following produces

    The function is starting:
       1
       2
       3
    Now it is ending.
    

    IMP_LOG(VERBOSE, "The function is starting:\n");
    {
        IncreaseIndent ii();
        IMP_LOG(VERBOSE, 1);
        IMP_LOG(VERBOSE, 2);
        IMP_LOG(VERBOSE, 3);
    }
    IMP_LOG(VERBOSE, "Now it is ending." << 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.

Inheritance diagram for IMP::IncreaseIndent:

Inheritance graph
[legend]

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

Generated on Mon Mar 8 23:08:41 2010 for IMP by doxygen 1.5.8