Difference between revisions of "Uno/Cpp/Spec/Environment AntiGuard"
From Apache OpenOffice Wiki
m (Updated state.) |
SergeMoutou (Talk | contribs) m (→API) |
||
Line 5: | Line 5: | ||
==API== | ==API== | ||
− | < | + | <source lang="cpp"> |
cppu/EnvGuards.hxx | cppu/EnvGuards.hxx | ||
class cppu::AntiEnvGuard | class cppu::AntiEnvGuard | ||
Line 13: | Line 13: | ||
~AntiEnvGuard(void) ; | ~AntiEnvGuard(void) ; | ||
}; | }; | ||
− | </ | + | </source> |
==Usage Example== | ==Usage Example== |
Latest revision as of 11:21, 25 February 2008
Type: Specification State: Evolving Availability: URE 1.3 (SRC680_m212)
Contents
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. ... }