BSUL::CIniFile8 Class Reference

#include "inifile.h"

Link against: bsulinifile.lib

class BSUL::CIniFile8 : public CBase

Inherits from

  • BSUL::CIniFile8

    Detailed Description

    A light weight parser for reading setting values from an 8 bit ini file. Note that this does not guarantee checking that the ini file is wellformed. See CIniFile16 for a class that handles both 8 and 16 bit files.

    Constructor & Destructor Documentation

    ~CIniFile8 ( )

    IMPORT_C~CIniFile8()

    Public destructor

    Member Function Documentation

    FindVar ( const TDesC8 &, const TDesC8 &, TPtrC8 & )

    IMPORT_C TIntFindVar(const TDesC8 &aSectionName,
    const TDesC8 &aKeyName,
    TPtrC8 &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 CIniFile8 *NewL(RFs &aFs,
    const TDesC &aFileName
    )[static]
    Creates a 8 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 CIniFile8 object