Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

CascadeFSObject::PermissionsSelector Class Reference

Selector object which uses file permissions to determine match More...

#include <CascadeFSObject.h>

Inheritance diagram for CascadeFSObject::PermissionsSelector:

CascadeFSObject::Selector List of all members.

Public Member Functions

 PermissionsSelector ()
virtual ~PermissionsSelector ()
 destructor
virtual void SetPermissions (u32 inPermFlags)
virtual bool Match (CascadeFSObject &inObject)

Detailed Description

Selector object which uses file permissions to determine match

<cascade/util/CascadeFSObject.h>

PermissionsSelector determines whether a candidate matches by comparing the permissions of the candidate against those supplied to SetPermissions. Exact matches (only) are accepted. Usage: create the object and call SetPermissions, then pass the Selector in to GetMatchingChild/GetMatchingChildren.


Constructor & Destructor Documentation

CascadeFSObject::PermissionsSelector::PermissionsSelector  )  [inline]
 

default constructor

The default constructor is lightweight

virtual CascadeFSObject::PermissionsSelector::~PermissionsSelector  )  [inline, virtual]
 

destructor


Member Function Documentation

virtual bool CascadeFSObject::PermissionsSelector::Match CascadeFSObject inObject  )  [virtual]
 

implementation of the regular permissions matching function

Clients should have no need to call this function; it simply implements the required Match function of the abstract base class.

Implements CascadeFSObject::Selector.

virtual void CascadeFSObject::PermissionsSelector::SetPermissions u32  inPermFlags  )  [virtual]
 

set the permissions to compare against

SetPermissions sets the permissions that constitute a match. The Match function checks for an exact match with the candidate object's permissions, and returns true if they match

Parameters:
inPermFlags the permissions to compare against


The documentation for this class was generated from the following file:
Generated on Sun Jul 24 14:27:19 2005 for Cascade Library by  doxygen 1.4.1