19 #ifndef INCLUDED_UNO_ENVIRONMENT_HXX
20 #define INCLUDED_UNO_ENVIRONMENT_HXX
62 inline static void * SAL_CALL
operator new (
size_t nSize )
SAL_THROW(())
64 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
66 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
SAL_THROW(())
68 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
136 inline bool SAL_CALL
is() const SAL_THROW(())
137 {
return (_pEnv != 0); }
141 inline void SAL_CALL
clear() SAL_THROW(());
163 inline
void SAL_CALL
enter() const SAL_THROW(());
170 inline
int SAL_CALL
isValid(
rtl::OUString * pReason) const SAL_THROW(());
187 : _pEnv( rEnv._pEnv )
233 va_start(param, pCallee);
void * pContext
free context pointer to be used for specific classes of environments (e.g., a jvm pointer) ...
Definition: environment.h:53
void uno_EnvCallee(va_list *pParam)
Typedef for variable argument function.
Definition: environment.h:338
CPPU_DLLPUBLIC void uno_getEnvironment(uno_Environment **ppEnv, rtl_uString *pEnvDcp, void *pContext) SAL_THROW_EXTERN_C()
Gets a specific environment.
Environment(uno_Environment *pEnv=0) SAL_THROW(())
Constructor: acquires given environment.
Definition: environment.hxx:173
inline::rtl::OUString getTypeName() const SAL_THROW(())
Gets type name of set environment.
Definition: environment.hxx:122
Definition: bootstrap.hxx:24
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
C++ wrapper for binary C uno_Environment.
Definition: environment.hxx:45
static Environment getCurrent(rtl::OUString const &typeName=rtl::OUString(CPPU_CURRENT_LANGUAGE_BINDING_NAME)) SAL_THROW(())
Returns the current Environment.
Definition: environment.hxx:250
void invoke(uno_EnvCallee *pCallee,...) const SAL_THROW(())
Invoke the passed function in this environment.
Definition: environment.hxx:227
rtl_uString * pTypeName
type name of environment
Definition: environment.h:49
void * getContext() const SAL_THROW(())
Gets free context pointer of set environment.
Definition: environment.hxx:129
CPPU_DLLPUBLIC void uno_getCurrentEnvironment(uno_Environment **ppEnv, rtl_uString *pTypeName) SAL_THROW_EXTERN_C()
Returns the current Environment.
void enter() const SAL_THROW(())
Enter this environment explicitly.
Definition: environment.hxx:240
~Environment() SAL_THROW(())
Destructor: releases a set environment.
Definition: environment.hxx:193
The binary specification of an UNO environment.
Definition: environment.h:41
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
CPPU_DLLPUBLIC void uno_Environment_enter(uno_Environment *pEnv) SAL_THROW_EXTERN_C()
Enter an environment explicitly.
bool is() const SAL_THROW(())
Tests if a environment is set.
Definition: environment.hxx:136
void(* release)(struct _uno_Environment *pEnv)
Releases this environment; last release of environment will revoke the environment from runtime...
Definition: environment.h:70
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
void invoke_v(uno_EnvCallee *pCallee, va_list *pParam) const SAL_THROW(())
Invoke the passed function in this environment.
Definition: environment.hxx:221
int isValid(rtl::OUString *pReason) const SAL_THROW(())
Checks, if it is valid to currently call objects belonging to this environment.
Definition: environment.hxx:245
CPPU_DLLPUBLIC void uno_Environment_invoke_v(uno_Environment *pEnv, uno_EnvCallee *pCallee, va_list *pParam) SAL_THROW_EXTERN_C()
Invoke the passed function in the given environment.
void clear() SAL_THROW(())
Releases a set environment.
Definition: environment.hxx:199
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Environment & operator=(uno_Environment *pEnv) SAL_THROW(())
Sets a given environment, i.e.
Definition: environment.hxx:208
void(* acquire)(struct _uno_Environment *pEnv)
Acquires this environment.
Definition: environment.h:63
CPPU_DLLPUBLIC int uno_Environment_isValid(uno_Environment *pEnv, rtl_uString **pReason) SAL_THROW_EXTERN_C()
Check if a particular environment is currently valid, so that objects of that environment might be ca...