Changeset 2700


Ignore:
Timestamp:
27/08/2010 10:05:06 (18 months ago)
Author:
chris
Message:

Add inline helpers to check whether a directory entry is a file,
directory, old or deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupclient/BackupStoreDirectory.h

    r217 r2700  
    9191                // characters for textual listing of files -- see bbackupquery/BackupQueries 
    9292                #define BACKUPSTOREDIRECTORY_ENTRY_FLAGS_DISPLAY_NAMES "fdXoR" 
    93                  
     93 
     94                // convenience methods 
     95                bool inline IsDir() 
     96                { 
     97                        return GetFlags() & Flags_Dir; 
     98                } 
     99                bool inline IsFile() 
     100                { 
     101                        return GetFlags() & Flags_File; 
     102                } 
     103                bool inline IsOld() 
     104                { 
     105                        return GetFlags() & Flags_OldVersion; 
     106                } 
     107                bool inline IsDeleted() 
     108                { 
     109                        return GetFlags() & Flags_Deleted; 
     110                } 
    94111                bool inline MatchesFlags(int16_t FlagsMustBeSet, int16_t FlagsNotToBeSet) 
    95112                { 
Note: See TracChangeset for help on using the changeset viewer.