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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
 
m (API)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Type: specification State: draft
+
Type: Specification State: Evolving  Availability: URE 1.3 (SRC680_m212)
  
 
==Feature==
 
==Feature==
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==
Line 23: Line 23:
  
  
[[Category:Uno:Cpp:Spec]]
+
[[Category:Evolving]]
 +
[[Category:Spec]]
 +
[[Category:Uno]]
 +
[[Category:Uno:Cpp]]

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