Uno/Cpp/Spec/Environment AntiGuard
From Apache OpenOffice Wiki
Type: specification State: draft
Contents
Feature
An AntiGuard for C++ Uno environments.
API
[cpp]
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. ... }