Uno/Cpp/Spec/Environment AntiGuard
From Apache OpenOffice Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Type: Specification State: Evolving Availability: URE 1.3 (SRC680_m212)
Feature
An AntiGuard for C++ Uno environments.
API
cppu/EnvGuards.hxx
class cppu::AntiEnvGuard
{
public:
AntiEnvGuard(void);
~AntiEnvGuard(void) ;
};
Usage Example
#include <cppu/EnvGuards.hxx>
...
{
cppu::AntiEnvGuard antiEnvGuard;
// From here onwards the previous environment has been left, at the end of the block it gets re-entered.
...
}