Difference between revisions of "Uno/Cpp/Spec/Environment AntiGuard"

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Updated state.)
m (API)
 
Line 5: Line 5:
  
 
==API==
 
==API==
<code>[cpp]
+
<source lang="cpp">
 
cppu/EnvGuards.hxx
 
cppu/EnvGuards.hxx
 
   class cppu::AntiEnvGuard
 
   class cppu::AntiEnvGuard
Line 13: Line 13:
 
       ~AntiEnvGuard(void) ;
 
       ~AntiEnvGuard(void) ;
 
   };
 
   };
</code>
+
</source>
  
 
==Usage Example==
 
==Usage Example==

Latest revision as of 11:21, 25 February 2008

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


Dependencies

Personal tools