19 #ifndef INCLUDED_RTL_BOOTSTRAP_HXX
20 #define INCLUDED_RTL_BOOTSTRAP_HXX
37 static inline void SAL_CALL
setIniFilename( const ::rtl::OUString &sFileUri );
46 static inline bool get(
47 const ::rtl::OUString &sName,
59 static inline void get(
60 const ::rtl::OUString &sName,
62 const ::rtl::OUString &aDefault );
97 inline bool getFrom(const ::rtl::OUString &sName,
106 inline void getFrom(const ::rtl::OUString &sName,
108 const ::rtl::OUString &aDefault)
const;
167 const ::rtl::OUString & sDefault )
206 const ::rtl::OUString &aDefault)
const
rtlBootstrapHandle getHandle() const SAL_THROW(())
Provides the bootstrap internal handle.
Definition: bootstrap.hxx:133
static void set(::rtl::OUString const &name,::rtl::OUString const &value) SAL_THROW(())
Sets a bootstrap parameter.
Definition: bootstrap.hxx:172
SAL_DLLPUBLIC sal_Bool rtl_bootstrap_get(rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault) SAL_THROW_EXTERN_C()
SAL_DLLPUBLIC void rtl_bootstrap_args_close(rtlBootstrapHandle handle) SAL_THROW_EXTERN_C()
Closes a boostrap agument container.
static void setIniFilename(const ::rtl::OUString &sFileUri)
Definition: bootstrap.hxx:154
SAL_DLLPUBLIC void rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, rtl_uString **ppIniName) SAL_THROW_EXTERN_C()
Returns the name of the inifile associated with this handle.
Definition: bootstrap.hxx:24
~Bootstrap()
Closes a bootstrap argument container.
Definition: bootstrap.hxx:192
SAL_DLLPUBLIC sal_Bool rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault) SAL_THROW_EXTERN_C()
static inline::rtl::OUString encode(::rtl::OUString const &value) SAL_THROW(())
Escapes special characters ("$" and "\").
Definition: bootstrap.hxx:216
void getIniName(::rtl::OUString &iniName) const
Retrieves the name of the underlying ini-file.
Definition: bootstrap.hxx:211
static bool get(const ::rtl::OUString &sName,::rtl::OUString &outValue)
Retrieves a bootstrap parameter.
Definition: bootstrap.hxx:159
Bootstrap()
default ctor.
Definition: bootstrap.hxx:178
void * rtlBootstrapHandle
Definition: bootstrap.h:157
static void expandMacros(::rtl::OUString ¯o) SAL_THROW(())
Expands a macro using default bootstrap variables.
Definition: bootstrap.hxx:126
bool getFrom(const ::rtl::OUString &sName,::rtl::OUString &outValue) const
Retrieves a bootstrap argument.
Definition: bootstrap.hxx:198
SAL_DLLPUBLIC void rtl_bootstrap_expandMacros(rtl_uString **macro) SAL_THROW_EXTERN_C()
Expands a macro using default bootstrap variables.
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
SAL_DLLPUBLIC void rtl_bootstrap_setIniFileName(rtl_uString *pFileUri) SAL_THROW_EXTERN_C()
may be called by an application to set an ini-filename.
SAL_DLLPUBLIC void rtl_bootstrap_encode(rtl_uString const *value, rtl_uString **encoded) SAL_THROW_EXTERN_C()
Escapes special characters ("$" and "\").
The described concept provides a platform independent way to access minimum bootstrap settings for ev...
bool isEmpty() const SAL_THROW(())
Checks if a string is empty.
Definition: ustring.hxx:396
SAL_DLLPUBLIC void rtl_bootstrap_set(rtl_uString *pName, rtl_uString *pValue) SAL_THROW_EXTERN_C()
Sets a bootstrap parameter.
void expandMacrosFrom(::rtl::OUString ¯o) const SAL_THROW(())
Expands a macro using bootstrap variables.
Definition: bootstrap.hxx:119
SAL_DLLPUBLIC void rtl_bootstrap_expandMacros_from_handle(rtlBootstrapHandle handle, rtl_uString **macro) SAL_THROW_EXTERN_C()
Expands a macro using bootstrap variables.
Definition: bootstrap.hxx:26
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
SAL_DLLPUBLIC rtlBootstrapHandle rtl_bootstrap_args_open(rtl_uString *pIniName) SAL_THROW_EXTERN_C()
Opens a bootstrap argument container.