Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TFindHandleBase

TFindHandleBase

Support

Supported from 5.0

Description

Base class for searching for global Kernel objects.

This is the base class for a number of classes which are used to find specific types of global Kernel object such as semaphores, threads and mutexes; TFindSemaphore, TFindThread and TFindMutex are typical examples of such derived classes.

The class implements the common behaviour, specifically, the storage of the match pattern which is used to search for object names.

This class is not intended to be explicitly instantiated; it has public constructors but they are part of the class implementation and are described for information only.

Defined in TFindHandleBase:
Find(), Handle(), TFindHandleBase()


Construction and destruction


TFindHandleBase()

TFindHandleBase();

Description

Default C++ constructor.

The default constructed TFindHandleBase object has the default match pattern — the single character “*”.


TFindHandleBase()

TFindHandleBase(const TDesC& aMatch);

Description

C++ constructor with match pattern.

This constructor creates a TFindHandleBase object with the specified match pattern.

Parameters

const TDesC& aMatch

A reference to the descriptor containing the match pattern.

[Top]


Member functions


Find()

void Find(const TDesC& aMatch);

Description

Sets a new match pattern.

On return from this function, this TFindHandleBase object contains a copy of the supplied match pattern; the source descriptor can, therefore, be safely discarded.

Parameters

const TDesC& aMatch

A reference to the descriptor containing the new match pattern.


Handle()

TInt Handle() const;

Description

Gets the find-handle number associated with the Kernel object. The find-handle number identifies the Kernel object with respect to its container.

Notes:

Return value

TInt

The find-handle number