Remarks
The constructor prefixes the scope string with the string “Entering scope: ” and logs it using the CPBLogger object referenced by the plgr parameter or by calling PBLog using the default component and context if plgr is NULL. When the destructor is called it does the same but prefixes the scope string with “Leaving scope: “. Note that only a pointer to the string referenced by pszScope is stored - the string is not copied and therefore the string must still exist when the destructor is called.