Uno/Cpp/Spec/Environment AntiGuard

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Revision as of 08:21, 29 November 2006 by Kr (Talk | contribs)

Jump to: navigation, search

Type: specification State: draft

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.
  ...
}


Dependencies

Personal tools