BSUL::CIniSecIter16 Class Reference

#include "inifile.h"

Link against: bsulinifile.lib

class BSUL::CIniSecIter16 : public CBase

Inherits from

  • BSUL::CIniSecIter16

    Detailed Description

    Section iterator for 16 bit ini file. This class provides an iterator to navigate through the settings within a section inside an 16 bit ini file.

    Constructor & Destructor Documentation

    ~CIniSecIter16 ( )

    IMPORT_C~CIniSecIter16()

    Destructor

    Member Function Documentation

    End ( )

    IMPORT_C TBoolEnd()

    Look ahead in the section to check whether there is still any keyvalue pair in the section to be read

    Returns: ETrue if it is already end of section EFalse indicating the next keyvalue pair exists

    NewL ( const TDesC16 &, const CIniDocument16 * )

    IMPORT_C CIniSecIter16 *NewL(const TDesC16 &aSectionName,
    const CIniDocument16 *aIniDocument
    )[static]
    Creates a 16 bit section content iterator this iterator is used to navigate through the key value pairs within the section.Useful when the number of keys within the section is unknown.
    leave
    KErrNoMemory if not enough memory KErrArgument if aIniDocument is NULL
    ParameterDescription
    aSectionNamethe name of the section to iterate
    aIniDocumentthe document object containing the section

    Returns: A pointer to a newly created CIniSecIter16 object

    Next ( TPtrC16 &, TPtrC16 & )

    IMPORT_C TBoolNext(TPtrC16 &aKey,
    TPtrC16 &aValue
    )
    Return the next key value pair within the section
    Post-condition
    the iterator points to the next available keyvalue pair the aKeyName points to the key name the aKeyValue points to the key value
    ParameterDescription
    aKeya pointer to contain the key name
    aValuea pointer to contain the key value

    Returns: ETrue if there are keyvalue pairs to return EFalse if it is already end of section

    Reset ( )

    IMPORT_C voidReset()
    Reset the iterator to point to the first keypair value within the section.
    Post-condition
    the iterator now points to first keypair in the section