Difference between revisions of "Uno/Cpp/Spec/Environment Guard"
From Apache OpenOffice Wiki
(Fixed API.) |
m (Splitted categories.) |
||
Line 26: | Line 26: | ||
− | [[Category:Uno: | + | [[Category:Draft]] |
+ | [[Category:Spec]] | ||
+ | [[Category:Uno]] | ||
+ | [[Category:Uno:Cpp]] |
Revision as of 08:22, 29 November 2006
Type: specification State: draft
Contents
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. ... }