BSUL::CIniFile16 Class Reference

class BSUL::CIniFile16 : public CBase

A light weight parser for reading setting values from a 16 or 8 bit ini file. The aConvert8To16 parameter of NewL controls whether or not 8 bit files are accepted. Note that this does not guarantee checking that the ini file is wellformed.

Inherits from

Constructor & Destructor Documentation

CIniFile16()

CIniFile16 ( ) [private]

~CIniFile16()

IMPORT_C ~CIniFile16 ( )

Public Destructor

Member Functions Documentation

FindVar(const TDesC16 &, const TDesC16 &, TPtrC16 &)

IMPORT_C TInt FindVar ( const TDesC16 & aSectionName,
const TDesC16 & aKeyName,
TPtrC16 & aValue
) const

Get the value of a key within a section

Parameters

const TDesC16 & aSectionName the section where the key resides
const TDesC16 & aKeyName the key name
TPtrC16 & aValue pointer to the key value

NewL(RFs &, const TDesC &)

IMPORT_C CIniFile16 * NewL ( RFs & aFs,
const TDesC & aFileName
) [static]
Creates a 16 bit light weight parser
leave
KErrNoMemory if not enough memory KErrNotFound if the supplied file does not exist

Parameters

RFs & aFs the handle to the file session
const TDesC & aFileName the ini file name to open

NewL(RFs &, const TDesC &, TBool)

IMPORT_C CIniFile16 * NewL ( RFs & aFs,
const TDesC & aFileName,
TBool aConvert8To16
) [static]
Creates a 16 bit light weight parser
leave
KErrNoMemory if not enough memory KErrNotFound if the supplied file does not exist

Parameters

RFs & aFs the handle to the file session
const TDesC & aFileName the ini file name to open
TBool aConvert8To16 upconvert 8 bit files otherwise leave with KErrCorrupt

Member Data Documentation

CIniFile16Impl * iImpl

CIniFile16Impl * iImpl [private]