FileAttributes.h
Go to the documentation of this file.
1 
22 #pragma once
23 
24 #include "Types.h"
25 
26 namespace IFS
27 {
38 #define IFS_FILEATTR_MAP(XX) \
39  XX(Compressed, C, "File content is compressed") \
40  XX(Archive, A, "File modified flag") \
41  XX(ReadOnly, R, "File may not be modified or deleted") \
42  XX(Directory, D, "Object is a directory entry") \
43  XX(MountPoint, M, "Directs to another object store")
44 
45 enum class FileAttribute {
46 #define XX(_tag, _char, _comment) _tag,
48 #undef XX
49  MAX
50 };
51 
56 
64 
65 } // namespace IFS
66 
FileAttribute
Definition: FileAttributes.h:45
The String class.
Definition: WString.h:136
Definition: DirectoryTemplate.h:36
#define IFS_FILEATTR_MAP(XX)
file attributes
Definition: FileAttributes.h:38
XX(_tag, _char, _comment)
String toString(IFS::FileAttribute attr)
Get descriptive String for a given file attribute.
String getFileAttributeString(FileAttributes attr)
Get the string representation for the given set of file attributes suitable for inclusion in a file l...