23#ifndef INCLUDED_RTL_BOOTSTRAP_HXX
24#define INCLUDED_RTL_BOOTSTRAP_HXX
46 static inline void SAL_CALL
setIniFilename( const ::rtl::OUString &sFileUri );
55 static inline bool get(
56 const ::rtl::OUString &sName,
68 static inline void get(
69 const ::rtl::OUString &sName,
71 const ::rtl::OUString &aDefault );
105 inline bool getFrom(const ::rtl::OUString &sName,
114 inline void getFrom(const ::rtl::OUString &sName,
116 const ::rtl::OUString &aDefault)
const;
174 const ::rtl::OUString & sDefault )
212 const ::rtl::OUString &aDefault)
const
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition types.h:396
The described concept provides a platform independent way to access minimum bootstrap settings for ev...
SAL_DLLPUBLIC void rtl_bootstrap_encode(rtl_uString const *value, rtl_uString **encoded)
Escapes special characters ("$" and "\").
SAL_DLLPUBLIC void rtl_bootstrap_setIniFileName(rtl_uString *pFileUri)
may be called by an application to set an ini-filename.
SAL_DLLPUBLIC void rtl_bootstrap_expandMacros_from_handle(rtlBootstrapHandle handle, rtl_uString **macro)
Expands a macro using bootstrap variables.
SAL_DLLPUBLIC sal_Bool rtl_bootstrap_get(rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault)
SAL_DLLPUBLIC void rtl_bootstrap_args_close(rtlBootstrapHandle handle) SAL_THROW_EXTERN_C()
Closes a bootstrap argument container.
SAL_DLLPUBLIC void rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, rtl_uString **ppIniName)
Returns the name of the inifile associated with this handle.
void * rtlBootstrapHandle
Definition bootstrap.h:155
SAL_DLLPUBLIC sal_Bool rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault)
SAL_DLLPUBLIC rtlBootstrapHandle rtl_bootstrap_args_open(rtl_uString *pIniName)
Opens a bootstrap argument container.
SAL_DLLPUBLIC void rtl_bootstrap_expandMacros(rtl_uString **macro)
Expands a macro using default bootstrap variables.
SAL_DLLPUBLIC void rtl_bootstrap_set(rtl_uString *pName, rtl_uString *pValue)
Sets a bootstrap parameter.
Definition bootstrap.hxx:34
~Bootstrap()
Closes a bootstrap argument container.
Definition bootstrap.hxx:198
void expandMacrosFrom(::rtl::OUString ¯o) const
Expands a macro using bootstrap variables.
Definition bootstrap.hxx:127
static inline ::rtl::OUString encode(::rtl::OUString const &value)
Escapes special characters ("$" and "\").
Definition bootstrap.hxx:222
rtlBootstrapHandle getHandle() const
Provides the bootstrap internal handle.
Definition bootstrap.hxx:141
static void setIniFilename(const ::rtl::OUString &sFileUri)
Definition bootstrap.hxx:161
bool getFrom(const ::rtl::OUString &sName, ::rtl::OUString &outValue) const
Retrieves a bootstrap argument.
Definition bootstrap.hxx:204
Bootstrap()
default ctor.
Definition bootstrap.hxx:184
static void set(::rtl::OUString const &name, ::rtl::OUString const &value)
Sets a bootstrap parameter.
Definition bootstrap.hxx:179
static bool get(const ::rtl::OUString &sName, ::rtl::OUString &outValue)
Retrieves a bootstrap parameter.
Definition bootstrap.hxx:166
void getIniName(::rtl::OUString &iniName) const
Retrieves the name of the underlying ini-file.
Definition bootstrap.hxx:217
static void expandMacros(::rtl::OUString ¯o)
Expands a macro using default bootstrap variables.
Definition bootstrap.hxx:134
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:172
bool isEmpty() const
Checks if a string is empty.
Definition ustring.hxx:831