20 #ifndef INCLUDED_OSL_PROFILE_HXX 21 #define INCLUDED_OSL_PROFILE_HXX 53 throw std::exception();
89 sal_uInt32 nFirstId,
const std::list< rtl::OString >& rStrings,
92 size_t nItems = rStrings.size();
94 std::list< rtl::OString >::const_iterator it = rStrings.begin();
96 while( it != rStrings.end() )
98 pStrings[ nItems++ ] = it->getStr();
101 pStrings[ nItems ] = NULL;
119 sal_uInt32 nFirstId,
const std::list< rtl::OString >& rStrings,
122 size_t nItems = rStrings.size();
124 std::list< rtl::OString >::const_iterator it = rStrings.begin();
126 while( it != rStrings.end() )
128 pStrings[ nItems++ ] = it->getStr();
131 pStrings[ nItems ] = NULL;
154 std::list< rtl::OString > aEntries;
163 for( n = 0; ( nLen = strlen( pBuf+n ) ); n += nLen+1 )
176 std::list< rtl::OString > aSections;
185 for( n = 0; ( nLen = strlen( pBuf+n ) ); n += nLen+1 )
195 #endif // INCLUDED_OSL_PROFILE_HXX SAL_DLLPUBLIC sal_Bool osl_closeProfile(oslProfile Profile) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_readProfileString(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry, sal_Char *pszString, sal_uInt32 MaxLen, const sal_Char *pszDefault) SAL_COLD
Deprecated API.
sal_uInt32 oslProfileOption
Definition: profile.h:33
SAL_DLLPUBLIC oslProfile osl_openProfile(rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD
Deprecated API.
std::list< rtl::OString > getSectionEntries(const rtl::OString &rSection)
Get all entries belonging to the specified section.
Definition: profile.hxx:152
rtl::OString readString(const rtl::OString &rSection, const rtl::OString &rEntry, const rtl::OString &rDefault)
Definition: profile.hxx:70
#define osl_Profile_READLOCK
Definition: profile.h:37
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSections(oslProfile Profile, sal_Char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.
bool readBool(const rtl::OString &rSection, const rtl::OString &rEntry, bool bDefault)
Definition: profile.hxx:83
#define osl_Profile_WRITELOCK
Definition: profile.h:38
sal_uInt32 readIdent(const rtl::OString &rSection, const rtl::OString &rEntry, sal_uInt32 nFirstId, const std::list< rtl::OString > &rStrings, sal_uInt32 nDefault)
Definition: profile.hxx:88
const int Profile_READLOCK
Definition: profile.hxx:36
const int Profile_WRITELOCK
Definition: profile.hxx:37
bool writeIdent(const rtl::OString &rSection, const rtl::OString &rEntry, sal_uInt32 nFirstId, const std::list< rtl::OString > &rStrings, sal_uInt32 nValue)
Definition: profile.hxx:118
This String class provide base functionality for C++ like 8-Bit character array handling.
Definition: string.hxx:95
const int Profile_DEFAULT
Definition: profile.hxx:34
oslProfileOption ProfileOption
Definition: profile.hxx:32
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:121
bool writeString(const rtl::OString &rSection, const rtl::OString &rEntry, const rtl::OString &rString)
Definition: profile.hxx:107
Deprecated API.
Definition: profile.hxx:42
Definition: conditn.hxx:36
SAL_DLLPUBLIC sal_Bool osl_writeProfileBool(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry, sal_Bool Value) SAL_COLD
Deprecated API.
const int Profile_SYSTEM
Definition: profile.hxx:35
bool flush()
Definition: profile.hxx:65
std::list< rtl::OString > getSections()
Get all section entries.
Definition: profile.hxx:174
#define osl_Profile_SYSTEM
Definition: profile.h:36
Profile(const rtl::OUString &strProfileName, oslProfileOption Options=Profile_DEFAULT)
Open or create a configuration profile.
Definition: profile.hxx:49
SAL_DLLPUBLIC sal_Bool osl_removeProfileEntry(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_readProfileIdent(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry, sal_uInt32 FirstId, const sal_Char *Strings[], sal_uInt32 Default) SAL_COLD
Deprecated API.
bool removeEntry(const rtl::OString &rSection, const rtl::OString &rEntry)
Remove an entry from a section.
Definition: profile.hxx:143
SAL_DLLPUBLIC sal_Bool osl_readProfileBool(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry, sal_Bool Default) SAL_COLD
Deprecated API.
~Profile()
Close the opened profile an flush all data to the disk.
Definition: profile.hxx:59
const sal_Char * getStr() const SAL_RETURNS_NONNULL
Returns a pointer to the characters of this string.
Definition: string.hxx:429
char sal_Char
A legacy synonym for char.
Definition: types.h:120
void * oslProfile
Definition: profile.h:42
SAL_DLLPUBLIC sal_Bool osl_writeProfileIdent(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry, sal_uInt32 FirstId, const sal_Char *Strings[], sal_uInt32 Value) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_flushProfile(oslProfile Profile) SAL_COLD
Deprecated API.
#define osl_Profile_DEFAULT
Definition: profile.h:35
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSectionEntries(oslProfile Profile, const sal_Char *pszSection, sal_Char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.
bool writeBool(const rtl::OString &rSection, const rtl::OString &rEntry, bool Value)
Definition: profile.hxx:113
SAL_DLLPUBLIC sal_Bool osl_writeProfileString(oslProfile Profile, const sal_Char *pszSection, const sal_Char *pszEntry, const sal_Char *pszString) SAL_COLD
Deprecated API.