LibreOffice Module cppu (master) 1
Public Member Functions | Private Attributes | 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 (css::uno::Environment const &env)
 
 ~EnvGuard ()
 
bool SAL_CALL is () const
 Checks if the associated environment is non empty. More...
 
void clear ()
 Leaves the associated environment and clears the reference. More...
 

Private Attributes

css::uno::Environment m_env
 

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)

Available since: \n UDK 3.2.7

Definition at line 39 of file EnvGuards.hxx.

Constructor & Destructor Documentation

◆ EnvGuard()

cppu::EnvGuard::EnvGuard ( css::uno::Environment const &  env)
inlineexplicit

Definition at line 44 of file EnvGuards.hxx.

References env, and m_env.

◆ ~EnvGuard()

cppu::EnvGuard::~EnvGuard ( )
inline

Definition at line 53 of file EnvGuards.hxx.

References m_env.

Member Function Documentation

◆ clear()

void cppu::EnvGuard::clear ( )
inline

Leaves the associated environment and clears the reference.

Definition at line 70 of file EnvGuards.hxx.

References m_env.

◆ is()

bool SAL_CALL cppu::EnvGuard::is ( ) const
inline

Checks if the associated environment is non empty.

Returns
0 == empty, 1 == non empty

Definition at line 62 of file EnvGuards.hxx.

References m_env.

Member Data Documentation

◆ m_env

css::uno::Environment cppu::EnvGuard::m_env
private

Definition at line 41 of file EnvGuards.hxx.

Referenced by clear(), EnvGuard(), is(), and ~EnvGuard().


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