Ensenso::NxLibDebugBlock¶
- class Ensenso.NxLibDebugBlock : public IDisposable¶
This class simplifies the usage of debug blocks. It will call NxLib.OpenDebugBlock() during its construction and NxLib.CloseDebugBlock() during its destruction.
Implements System.IDisposable and should only be used with a
using
statement to obtain accurate information:using (var debugBlock = new NxLibDebugBlock("Some operations")) { // Some operations }
Public Functions
- NxLibDebugBlock (string name, NxLib.DebugLevel level = NxLib.DebugLevel.nxdInherit)¶
Constructor. Calls NxLib.OpenDebugBlock().
- Param name
Debug block name.
- Param level
Debug level of this block, see NxLib.OpenDebugBlock() for the possible levels.
- void Dispose ()¶
Calls NxLib.CloseDebugBlock().