common_util 1.1.0
Loading...
Searching...
No Matches
filetype.h
Go to the documentation of this file.
1
19#include <vector>
20#include <string>
21
22#pragma once
23
24namespace cutl
25{
26
31 constexpr int MAX_PATH_LEN = 1024;
32
38 {
40 ft_unknown = 0x00,
44 ft_file = 0x02,
46 ft_symlink = 0x04,
54 ft_socket = 0x40,
56 ft_all = 0xFF,
57 };
58
64 {
66 filetype type = { filetype::ft_unknown };
68 std::string filepath;
69 };
70
75 using filevec = std::vector<file_entity>;
76
77} // namespace cutl
std::vector< file_entity > filevec
The vector of file_entity.
Definition filetype.h:75
constexpr int MAX_PATH_LEN
Constants value: max path length.
Definition filetype.h:31
filetype
The type of file.
Definition filetype.h:38
@ ft_socket
Definition filetype.h:54
@ ft_unknown
Definition filetype.h:40
@ ft_all
Definition filetype.h:56
@ ft_file
Definition filetype.h:44
@ ft_block_special
Definition filetype.h:50
@ ft_char_special
Definition filetype.h:48
@ ft_symlink
Definition filetype.h:46
@ ft_directory
Definition filetype.h:42
@ ft_pipefifo
Definition filetype.h:52
file entity struct. include file type and file path.
Definition filetype.h:64
filetype type
Definition filetype.h:66
std::string filepath
Definition filetype.h:68