acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_constant.h
1#pragma once
2
3
4
5enum enum_depth : ::i32
6{
7
8 e_depth_none = 0,
9 e_depth_recursively = I32_MAXIMUM,
10
11};
12
13
14namespace file
15{
16
17
18 enum enum_flag :
19 ::i64
20 {
21
22 e_flag_none = 0,
23 e_flag_file = 1,
24 e_flag_folder = 2,
25 e_flag_file_or_folder = 3,
26 e_flag_folder_ex001 = 1 << 2,
27 e_flag_folder_ex001_calc = 1 << 3,
28 e_flag_required = 1 << 4,
29 e_flag_bypass_cache = 1 << 5,
30 e_flag_dont_resolve_alias = 1 << 6,
31 e_flag_resolve_alias = 1 << 7,
32 e_flag_get_local_path = 1 << 8,
33 e_flag_in_zip = 1 << 9,
34 e_flag_has_subfolder = 1 << 10,
35 e_flag_has_subfolder_unknown = 1 << 11,
36 e_flag_final_path = 1 << 12,
37 e_flag_file_ex001 = 1 << 13,
38 e_flag_file_ex001_calc = 1 << 14,
39
40 };
41
42 class set_width
43 {
44 public:
45
46 set_width(filesize n = 0) { m_width = n; }
47
48 filesize m_width;
49
50 };
51
52
53 enum e_iostate
54 {
55 goodbit = 0x00,
56 eofbit = 0x01,
57 failbit = 0x02,
58 badbit = 0x04,
59 _Hardfail = 0x10
60 };
61
62
63enum enum_stream
64{
65 e_stream_none,
66 e_stream_input,
67 e_stream_output,
68
69};
70
71 enum fmtflags : ::u32
72 {
73 nofmtflags = 0,
74 boolalpha = 0x00000001,
75 showbase = 0x00000002,
76 showpoint = 0x00000004,
77 showpos = 0x00000008,
78 skipws = 0x00000010,
79 unitbuf = 0x00000020,
80 uppercase = 0x00000040,
81 dec = 0x00000080,
82 hex = 0x00000100,
83 oct = 0x00000200,
84 fixed = 0x00000400,
85 scientific = 0x00000800,
86 internal = 0x00001000,
87 left = 0x00002000,
88 right = 0x00004000,
89 network_payload = 0x00008000,
90 separated = 0x00010000,
91 adjustfield = left | right | internal,
92 basefield = dec | oct | hex,
93 f32field = scientific | fixed
94 };
95
96
97 DECLARE_C_FLAG(e_flag, enum_flag);
98
99} // namespace file
100
101
102
103
104
105inline ::file::e_flag & fix_file_listing_flag(::file::e_flag & eflag)
106{
107
108 if (!(eflag & ::file::e_flag_file_or_folder))
109 {
110
111 eflag |= ::file::e_flag_file_or_folder;
112
113 }
114
115 return eflag;
116
117}
118
119
120
121enum e_str_flag
122{
123
124 str_flag_ifnumberspace = 1,
125 str_flag_ifnumberparenthesize = 2,
126 str_flag_ifnumberparenthesizeandspace = 3,
127
128};
129
130
131
132
133
134
Definition filesystem.h:16