BSUL::CIniFile16 Class Reference

#include "inifile.h"

Link against: bsulinifile.lib

class BSUL::CIniFile16 : public CBase

Inherits from

  • BSUL::CIniFile16

    Detailed Description

    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.

    Constructor & Destructor Documentation

    ~CIniFile16 ( )

    IMPORT_C~CIniFile16()

    Public Destructor

    Member Function Documentation

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

    IMPORT_C TIntFindVar(const TDesC16 &aSectionName,
    const TDesC16 &aKeyName,
    TPtrC16 &aValue
    )const

    Get the value of a key within a section

    ParameterDescription
    aSectionNamethe section where the key resides
    aKeyNamethe key name
    aValuepointer to the key value

    Returns: KErrNotFound if either section or keyname not found KErrNone if successful

    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
    ParameterDescription
    aFsthe handle to the file session
    aFileNamethe ini file name to open

    Returns: A pointer to a newly created CIniFile16 object

    NewL ( RFs &, const TDesC &, TBool )

    IMPORT_C CIniFile16 *NewL(RFs &aFs,
    const TDesC &aFileName,
    TBoolaConvert8To16
    )[static]
    Creates a 16 bit light weight parser
    leave
    KErrNoMemory if not enough memory KErrNotFound if the supplied file does not exist
    ParameterDescription
    aFsthe handle to the file session
    aFileNamethe ini file name to open
    aConvert8To16upconvert 8 bit files otherwise leave with KErrCorrupt

    Returns: A pointer to a newly created CIniFile16 object