5 #include "../ustring.h"
60 inline std::ostream& operator<<(std::ostream& os,
file_attributes value) {
return os <<
to_string(value, {{
file_attributes::read_only,
"read_only"}, {
file_attributes::hidden,
"hidden"}, {
file_attributes::system,
"system"}, {
file_attributes::directory,
"directory"}, {
file_attributes::device,
"device"}, {
file_attributes::normal,
"normal"}, {
file_attributes::temporary,
"temporary"}, {
file_attributes::sparse_file,
"sparse_file"}, {
file_attributes::reparse_point,
"reparse_point"}, {
file_attributes::compressed,
"compressed"}, {
file_attributes::offline,
"offline"}, {
file_attributes::not_content_indexed,
"not_content_indexed"}, {
file_attributes::encrypted,
"encrypted"}});}
61 inline std::wostream& operator<<(std::wostream& os,
file_attributes value) {
return os <<
to_string(value, {{
file_attributes::read_only, L
"read_only"}, {
file_attributes::hidden, L
"hidden"}, {
file_attributes::system, L
"system"}, {
file_attributes::directory, L
"directory"}, {
file_attributes::device, L
"device"}, {
file_attributes::normal, L
"normal"}, {
file_attributes::temporary, L
"temporary"}, {
file_attributes::sparse_file, L
"sparse_file"}, {
file_attributes::reparse_point, L
"reparse_point"}, {
file_attributes::compressed, L
"compressed"}, {
file_attributes::offline, L
"offline"}, {
file_attributes::not_content_indexed, L
"not_content_indexed"}, {
file_attributes::encrypted, L
"encrypted"}});}
file_attributes
Provides attributes for files and directories.
Definition: file_attributes.h:17
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
@ offline
The file is offline. The data of the file is not immediately available.
@ compressed
The file is compressed.
@ encrypted
The file or directory is encrypted. For a file, this means that all data in the file is encrypted....
@ system
The file is a system file. The file is part of the operating system or is used exclusively by the ope...
@ directory
The file is a directory.
@ hidden
The file is hidden, and thus is not included in an ordinary directory listing.
@ sparse_file
The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.
@ reparse_point
The file contains a reparse point, which is a block of user-defined data associated with a file or a ...
@ archive
The file's archive status. Applications use this attribute to mark files for backup or removal.
@ device
Reserved for future use.
@ not_content_indexed
The file will not be indexed by the operating system's content indexing service.
@ read_only
The file is read-only.
@ temporary
The file is temporary. File systems attempt to keep all of the data in memory for quicker access rath...
@ normal
The file is normal and has no other attributes set. This attribute is valid only if used alone.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17