Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: DelimitedPath8.h
Link against: inetprotutil.lib

Class CDelimitedPath8

class CDelimitedPath8 : public CDelimitedDataBase8;

Description

Dependencies : CDelimitedStringBase8 Comments : Provides functionality to create a delimited path where components of the path delimited by '/' as defined in RFC2396.

Derivation

Members

Defined in CDelimitedPath8:
InsertAndEscapeCurrentL(), NewL(), NewLC(), PushAndEscapeBackL(), PushAndEscapeFrontL(), ~CDelimitedPath8()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CDelimitedDataBase8:
AddBackDelimiterL(), AddFrontDelimiterL(), ConstructL(), InsertCurrentL(), Parse(), ParseReverse(), Parser(), PopBackL(), PopFrontL(), PushBackL(), PushFrontL(), RemoveCurrentL(), SetDelimiter(), TrimBackDelimiterL(), TrimFrontDelimiterL()


Construction and destruction


NewL()

static IMPORT_C CDelimitedPath8 *NewL(const TDesC8 &aPath);

Description

Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack.

Post-Condition

Nothing left on the CleanupStack.

Parameters

const TDesC8 &aPath

A descriptor with the initial path.

Return value

CDelimitedPath8 *

A pointer to created object.


NewLC()

static IMPORT_C CDelimitedPath8 *NewLC(const TDesC8 &aPath);

Description

Static factory constructor. Uses two phase construction and leaves a pointer to created object on the CleanupStack.

Post-Condition

Pointer to created object left of CleanupStack.

Parameters

const TDesC8 &aPath

A descriptor with the initial path.

Return value

CDelimitedPath8 *

A pointer to created object.


~CDelimitedPath8()

IMPORT_C ~CDelimitedPath8();

Description

Destructor.

[Top]


Member functions


InsertAndEscapeCurrentL()

IMPORT_C void InsertAndEscapeCurrentL(const TDesC8 &aSegment);

Pre-Condition

The path must have been initially parsed.

Description

Escape encodes the segment then inserts the escaped version in a position before the current parsed segment. The new segment should only contain a single path segment, as any path delimiters in the segment will be converted to an escape triple. The parser is left in a state where its current segment is the same one as before the insertion.

Post-Condition

The path will have been extended to include the new segment. The current segment will remain as the one before the insertion.

Parameters

const TDesC8 &aSegment

A descriptor with the unescaped path segment.


PushAndEscapeFrontL()

IMPORT_C void PushAndEscapeFrontL(const TDesC8 &aSegment);

Pre-Condition

The delimiter must have been set.

Description

Escape encodes the segment then inserts the escaped version at the front of the path. The new segment should only contain a single path segment, as any path delimiters in the segment will be converted to an escape triple. The parser is left in a state where its current segment is the same one as before the insertion.

Post-Condition

The path will have been extended to include the new segment.

Parameters

const TDesC8 &aSegment

A descriptor with the unescaped path segment.


PushAndEscapeBackL()

IMPORT_C void PushAndEscapeBackL(const TDesC8 &aSegment);

Pre-Condition

The delimiter must have been set.

Description

Escape encodes the segment then inserts the escaped version at the back of the path. The new segment should only contain a single path segment, as any path delimiters in the segment will be converted to an escape triple. The parser is left in a state where its current segment is the same one as before the insertion.

Post-Condition

The path will have been extended to include the new segment.

Parameters

const TDesC8 &aSegment

A descriptor with the unescaped path segment.