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  XX(Encrypted, E, "File is encrypted")
45 
46 enum class FileAttribute {
47 #define XX(_tag, _char, _comment) _tag,
49 #undef XX
50  MAX
51 };
52 
57 
65 
66 } // namespace IFS
67 
FileAttribute
Definition: FileAttributes.h:46
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...