LibreOffice
LibreOffice 4.2 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
cppu::EnvGuard Class Reference

Environment Guard The provided Environment becomes entered in the constructor and left in the destructor. More...

#include <EnvGuards.hxx>

Public Member Functions

 EnvGuard (cssuno::Environment const &env)
 
 ~EnvGuard ()
 
sal_Bool is () const throw ()
 Checks if the associated environment is non empty. More...
 
void clear ()
 Leaves the associated environment and clears the reference. More...
 

Detailed Description

Environment Guard The provided Environment becomes entered in the constructor and left in the destructor.

(http://wiki.openoffice.org/wiki/Uno/Cpp/Spec/Environment_Guard)

Since
UDK 3.2.7

Constructor & Destructor Documentation

cppu::EnvGuard::EnvGuard ( cssuno::Environment const &  env)
inlineexplicit
cppu::EnvGuard::~EnvGuard ( )
inline

Member Function Documentation

void cppu::EnvGuard::clear ( )
inline

Leaves the associated environment and clears the reference.

sal_Bool cppu::EnvGuard::is ( ) const
throw (
)
inline

Checks if the associated environment is non empty.

Returns
0 == empty, 1 == non empty

The documentation for this class was generated from the following file: