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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Splitted categories.)
m (Updated state.)
 
Line 1: Line 1:
Type: specification State: draft
+
Type: Specification State: Evolving  Availability: URE 1.3 (SRC680_m212)
  
 
==Feature==
 
==Feature==
Line 26: Line 26:
  
  
[[Category:Draft]]
+
[[Category:Evolving]]
 
[[Category:Spec]]
 
[[Category:Spec]]
 
[[Category:Uno]]
 
[[Category:Uno]]
 
[[Category:Uno:Cpp]]
 
[[Category:Uno:Cpp]]

Latest revision as of 10:15, 23 May 2007

Type: Specification State: Evolving Availability: URE 1.3 (SRC680_m212)

Feature

A Guard for C++ Uno environments.

API

[cpp] cppu/EnvGuards.hxx

 class cppu::EnvGuard
 {
   public:
     EnvGuard(cssuno::Environment const & env);
     ~EnvGuard(void);
     void clear(void);
 };

Usage Example

#include <cppu/EnvGuards.hxx>
...
{
  cppu::EnvGuard cppUnsafe(uno::Environment(RTL_CONSTASCII_USTRINGPARAM("c++:unsafe")));
  // From here onwards the environment is entered, until the end of the block.
  ...
}

Dependencies

Personal tools