19 #ifndef INCLUDED_RTL_BOOTSTRAP_HXX 20 #define INCLUDED_RTL_BOOTSTRAP_HXX 42 static inline void SAL_CALL
setIniFilename( const ::rtl::OUString &sFileUri );
51 static inline bool get(
52 const ::rtl::OUString &sName,
64 static inline void get(
65 const ::rtl::OUString &sName,
67 const ::rtl::OUString &aDefault );
101 inline bool getFrom(const ::rtl::OUString &sName,
110 inline void getFrom(const ::rtl::OUString &sName,
112 const ::rtl::OUString &aDefault)
const;
170 const ::rtl::OUString & sDefault )
208 const ::rtl::OUString &aDefault)
const SAL_DLLPUBLIC void rtl_bootstrap_setIniFileName(rtl_uString *pFileUri)
may be called by an application to set an ini-filename.
The described concept provides a platform independent way to access minimum bootstrap settings for ev...
rtlBootstrapHandle getHandle() const
Provides the bootstrap internal handle.
Definition: bootstrap.hxx:137
Definition: bootstrap.hxx:29
SAL_DLLPUBLIC void rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, rtl_uString **ppIniName)
Returns the name of the inifile associated with this handle.
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:396
SAL_DLLPUBLIC void rtl_bootstrap_expandMacros_from_handle(rtlBootstrapHandle handle, rtl_uString **macro)
Expands a macro using bootstrap variables.
static inline ::rtl::OUString encode(::rtl::OUString const &value)
Escapes special characters ("$" and "\").
Definition: bootstrap.hxx:218
static void setIniFilename(const ::rtl::OUString &sFileUri)
Definition: bootstrap.hxx:157
static void expandMacros(::rtl::OUString ¯o)
Expands a macro using default bootstrap variables.
Definition: bootstrap.hxx:130
static void set(::rtl::OUString const &name, ::rtl::OUString const &value)
Sets a bootstrap parameter.
Definition: bootstrap.hxx:175
bool isEmpty() const
Checks if a string is empty.
Definition: ustring.hxx:664
SAL_DLLPUBLIC sal_Bool rtl_bootstrap_get(rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault)
void getIniName(::rtl::OUString &iniName) const
Retrieves the name of the underlying ini-file.
Definition: bootstrap.hxx:213
SAL_DLLPUBLIC sal_Bool rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, 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_encode(rtl_uString const *value, rtl_uString **encoded)
Escapes special characters ("$" and "\").
Definition: bootstrap.hxx:31
SAL_DLLPUBLIC void rtl_bootstrap_set(rtl_uString *pName, rtl_uString *pValue)
Sets a bootstrap parameter.
SAL_DLLPUBLIC rtlBootstrapHandle rtl_bootstrap_args_open(rtl_uString *pIniName)
Opens a bootstrap argument container.
bool getFrom(const ::rtl::OUString &sName, ::rtl::OUString &outValue) const
Retrieves a bootstrap argument.
Definition: bootstrap.hxx:200
SAL_DLLPUBLIC void rtl_bootstrap_expandMacros(rtl_uString **macro)
Expands a macro using default bootstrap variables.
Bootstrap()
default ctor.
Definition: bootstrap.hxx:180
This String class provides base functionality for C++ like Unicode character array handling.
Definition: ustring.hxx:126
~Bootstrap()
Closes a bootstrap argument container.
Definition: bootstrap.hxx:194
void expandMacrosFrom(::rtl::OUString ¯o) const
Expands a macro using bootstrap variables.
Definition: bootstrap.hxx:123
void * rtlBootstrapHandle
Definition: bootstrap.h:149
static bool get(const ::rtl::OUString &sName, ::rtl::OUString &outValue)
Retrieves a bootstrap parameter.
Definition: bootstrap.hxx:162