AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code

◆ SdsIDChecker()

SdsIDChecker::SdsIDChecker ( int  line,
const char *  file,
const char *  function,
bool  listChanges = false,
bool  enable = true 
)

Construct an SdsChecker object.

When constructed, this object will run SdsCheckInit() and save the results. When the destructor is run, it will run SdsCheck() and write a mesage to stderr if there was a net change in SDS id's which are allocated since the

Remarks
Use the SDS_CHECK_IDS macro to invoke this (if only used once in a block.
Only available if the macro DRAMA_ALLOW_CPP_STDLIB is defined.
There are methods available which allow you to set the number of items allowed to be leaked (or released), if you know this will happen.
Parameters
lineThe line number the object is constructed as. Assign to LINE.
fileThe compilation file the object is constructed in. Assign to FILE.
functionA function/method name to be used in the message.
listChanges.If true, then will attempt to list which ID numbers were left free or release that were not like wise on entry. Will require extra memory allocation and CPU. Defaults to false
enableIs the check enabled. This allows a run time enabling/disabling of the check. Defaults to true.