CFsObject Class Reference

class CFsObject : public CBase

Implements reference counting to track concurrent references to itself.

An object of this type arranges automatic destruction of itself when the final reference is removed.

A reference counting object is any object which has CFsObject as its base class. Constructing a CFsObject derived type or calling its Open() member function adds a reference to that object by adding one to the reference count; calling its Close() member function removes a reference by subtracting one from the reference count; when the last user of the object calls Close() , the reference count becomes zero and the object is automatically destroyed.

Inherits from

Constructor & Destructor Documentation

CFsObject()

IMPORT_C CFsObject ( )

~CFsObject()

IMPORT_C ~CFsObject ( ) [protected]

Member Functions Documentation

Close()

IMPORT_C void Close ( ) [virtual]

Container()

CFsObjectCon * Container ( ) const [inline]

Dec()

TInt Dec ( ) [protected, inline]

DoClose()

void DoClose ( ) [protected]

Inc()

TInt Inc ( ) [protected, inline]

IsCorrectThread()

IMPORT_C TBool IsCorrectThread ( ) [virtual]

Name()

IMPORT_C TName Name ( ) const

Open()

IMPORT_C TInt Open ( ) [virtual]

SetName(const TDesC *)

IMPORT_C TInt SetName ( const TDesC * aName )

Parameters

const TDesC * aName

UniqueID()

TInt UniqueID ( ) const [protected]

Member Data Documentation

TInt iAccessCount

TInt iAccessCount [private]

CFsObjectCon * iContainer

CFsObjectCon * iContainer [private]

HBufC * iName

HBufC * iName [private]