FileAttributes.h
Go to the documentation of this file.
1 /****
2  * FileAttributes.h
3  *
4  * Created on: 31 Aug 2018
5  *
6  * Copyright 2019 mikee47 <mike@sillyhouse.net>
7  *
8  * This file is part of the IFS Library
9  *
10  * This library is free software: you can redistribute it and/or modify it under the terms of the
11  * GNU General Public License as published by the Free Software Foundation, version 3 or later.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
14  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  * See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with this library.
18  * If not, see <https://www.gnu.org/licenses/>.
19  *
20  ****/
21 
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 
#define IFS_FILEATTR_MAP(XX)
file attributes
Definition: FileAttributes.h:38
String toString(IFS::FileAttribute attr)
Get descriptive String for a given file attribute.
The String class.
Definition: WString.h:137
Definition: DirectoryTemplate.h:37
String getFileAttributeString(FileAttributes attr)
Get the string representation for the given set of file attributes suitable for inclusion in a file l...
FileAttribute
Definition: FileAttributes.h:46
XX(_tag, _char, _comment)