Uno/Cpp/Spec/Environment AntiGuard
From Apache OpenOffice Wiki
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.
...
}