20 #ifndef INCLUDED_cppu_EnvGuards_hxx
21 #define INCLUDED_cppu_EnvGuards_hxx
27 namespace cssuno = com::sun::star::uno;
93 : m_env(cssuno::Environment::getCurrent())
void clear()
Releases a set environment.
Definition: environment.hxx:199
Environment Guard The provided Environment becomes entered in the constructor and left in the destruc...
Definition: EnvGuards.hxx:39
~AntiEnvGuard()
Definition: EnvGuards.hxx:98
sal_Bool is() const
Checks if the associated environment is non empty.
Definition: EnvGuards.hxx:62
EnvGuard(cssuno::Environment const &env)
Definition: EnvGuards.hxx:44
static Environment getCurrent(rtl::OUString const &typeName=rtl::OUString(CPPU_STRINGIFY(CPPU_ENV)))
Returns the current Environment.
Definition: environment.hxx:250
~EnvGuard()
Definition: EnvGuards.hxx:53
void clear()
Leaves the associated environment and clears the reference.
Definition: EnvGuards.hxx:70
void enter() const
Enter this environment explicitly.
Definition: environment.hxx:240
CPPU_DLLPUBLIC void uno_Environment_enter(uno_Environment *pEnv) SAL_THROW_EXTERN_C()
Enter an environment explicitly.
unsigned char sal_Bool
Definition: types.h:46
Environment Anti-Guard Any entered Environment becomes left in the constructor and re-entered in the ...
Definition: EnvGuards.hxx:87
C++ wrapper for binary C uno_Environment.
Definition: environment.hxx:45
AntiEnvGuard()
Definition: EnvGuards.hxx:92
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358
sal_Bool is() const
Tests if a environment is set.
Definition: environment.hxx:136