ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
filescamp.cpp
1// #################################################################################################
2// ALib C++ Library
3//
4// Copyright 2013-2024 A-Worx GmbH, Germany
5// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
6// #################################################################################################
8
9#if !DOXYGEN
11# include "alib/files/ftree.hpp"
16#endif // !DOXYGEN
17
19
20
21namespace alib {
22
24
25namespace files {
26
28: Camp( "FILES" )
29{
30 ALIB_ASSERT_ERROR( this == &FILES, "FILES",
31 "Instances of class FILES must not be created. Use singleton alib::FILES" )
32}
33
34
36{
38 {
43 #define EOS ,
44#if !ALIB_RESOURCES_OMIT_DEFAULTS
46
47 "FT", A_CHAR("0,Directory" ",1,"
48 "1,SymbolicLinkToDir" ",15,"
49 "3,SymbolicLinkToFile" ",15,"
50 "2,Regular" ",1,"
51 "4,Block" ",1,"
52 "5,Character" ",1,"
53 "6,Fifo" ",1,"
54 "7,Socket" ",2,"
55 "8,UNKNOWN_OR_ERROR" ",1" ) EOS
56
57 "FT1", A_CHAR("0,d" ",1,"
58 "1,L" ",1,"
59 "2,-" ",1,"
60 "3,l" ",1,"
61 "4,b" ",1,"
62 "5,c" ",1,"
63 "6,p" ",1,"
64 "7,s" ",1" ) EOS
65
66 "FT2", A_CHAR("0,dr" ",1,"
67 "1,ld" ",3,"
68 "2,rf" ",1,"
69 "3,lf" ",3,"
70 "4,bl" ",1,"
71 "5,ch" ",1,"
72 "6,ff" ",1,"
73 "7,so" ",2" ) EOS
74
75 "FT3", A_CHAR("0,dir" ",1,"
76 "1,sld" ",3,"
77 "2,reg" ",1,"
78 "3,slf" ",3,"
79 "4,blk" ",1,"
80 "5,chr" ",1,"
81 "6,ffo" ",1,"
82 "7,sck" ",2" ) EOS
83
84
85 "FQ", A_CHAR("0,NONE" ",3,"
86 "1,STATS" ",1,"
87 "2,RESOLVED" ",3,"
88 "3,MAX_DEPTH_REACHED" ",1,"
89 "15,NOT_EXISTENT" ",5,"
90 "4,NOT_FOLLOWED" ",5,"
91 "5,NOT_CROSSING_FS" ",5,"
92 "6,NO_AFS" ",5,"
93 "10,NO_ACCESS_SL_TARGET" ",13,"
94 "9,NO_ACCESS_SL" ",11,"
95 "11,NO_ACCESS_DIR" ",11,"
96 "8,NO_ACCESS" ",5,"
97 "7,RECURSIVE" ",1,"
98 "12,BROKEN_LINK" ",1,"
99 "13,CIRCULAR_LINK" ",1,"
100 "14,DUPLICATE" ",1,"
101 "16,UNKNOWN_ERROR" ",5" ) EOS
102
103 "FQ3", A_CHAR("0,NON" ",3,"
104 "1,STA" ",3,"
105 "2,RES" ",3,"
106 "3,MDR" ",3,"
107 "4,NFO" ",3,"
108 "5,NCF" ",3,"
109 "6,NAF" ",3,"
110 "7,REC" ",3,"
111 "8,NAC" ",3,"
112 "9,NSL" ",3,"
113 "10,NAT" ",3,"
114 "11,NAD" ",3,"
115 "12,BRL" ",3,"
116 "13,CIL" ",3,"
117 "14,DUP" ",3,"
118 "15,NEX" ",3,"
119 "16,UKE" ",3" ) EOS
120
121 // Identifier/Function names
122 "TFP" , A_CHAR("File Permission" ) EOS
123 "TID" , A_CHAR("File Usr/Grp ID" ) EOS
124 "TTY" , A_CHAR("File Type" ) EOS
125
126
127 "CPF0" , A_CHAR( "OwnerRead" " I 1 2" ),
128 "CPF1" , A_CHAR( "OwnerWrite" " I 1 1" ),
129 "CPF2" , A_CHAR( "OwnerExecute" " I 1 1" ),
130 "CPF3" , A_CHAR( "GroupRead" " I 1 1" ),
131 "CPF4" , A_CHAR( "GroupWrite" " I 1 1" ),
132 "CPF5" , A_CHAR( "GroupExecute" " I 1 1" ),
133 "CPF6" , A_CHAR( "OthersRead" " I 2 1" ),
134 "CPF7" , A_CHAR( "OthersWrite" " I 2 1" ),
135 "CPF8" , A_CHAR( "OthersExecute" " I 2 1" ),
136 "CPF9" , A_CHAR( "Directory" " I 3" ),
137 "CPF10" , A_CHAR( "SymbolicLinkDir" " I 1 1 1" ),
138 "CPF11" , A_CHAR( "Regular" " I 3" ),
139 "CPF12" , A_CHAR( "SymbolicLink" " I 1 1" ),
140 "CPF13" , A_CHAR( "Block" " I 5" ),
141 "CPF14" , A_CHAR( "Character" " I 9" ),
142 "CPF15" , A_CHAR( "Fifo" " I 4" ),
143 "CPF16" , A_CHAR( "Socket" " I 6" ),
144 "CPF17" , A_CHAR( "Name" " I 4" ),
145 "CPF18" , A_CHAR( "Type" " I 2" ),
146 "CPF19" , A_CHAR( "IsDirectory" " I 2 3" ),
147 "CPF20" , A_CHAR( "IsSymbolicLink" " I 2 1 1" ),
148 "CPF21" , A_CHAR( "Size" " I 4" ),
149 "CPF22" , A_CHAR( "Date" " I 4" ),
150 "CPF23" , A_CHAR( "MDate" " I 1 1" ),
151 "CPF24" , A_CHAR( "BDate" " I 1 1" ),
152 "CPF25" , A_CHAR( "CDate" " I 1 1" ),
153 "CPF26" , A_CHAR( "ADate" " I 1 1" ),
154 "CPF27" , A_CHAR( "PermissionS" " I 4 0" ),
155 "CPF28" , A_CHAR( "KiloBytes" " I 1 1" ),
156 "CPF29" , A_CHAR( "MegaBytes" " I 1 1" ),
157 "CPF30" , A_CHAR( "GigaBytes" " I 1 1" ),
158 "CPF31" , A_CHAR( "TeraBytes" " I 1 1" ),
159 "CPF32" , A_CHAR( "PetaBytes" " I 1 1" ),
160 "CPF33" , A_CHAR( "ExaBytes" " I 1 1" ),
161 "CPF34" , A_CHAR( "Owner" " I 5" ),
162 "CPF35" , A_CHAR( "Group" " I 5" ),
163 "CPF36" , A_CHAR( "UserID" " I 1 1 1" ),
164 "CPF37" , A_CHAR( "GroupID" " I 1 1 1" ),
165 "CPF38" , A_CHAR( "Path" " I 4" ),
166
167 // default format for method File::Format when used with Formatter and no placeholder
168 // string was given.
169 "FFMT" , A_CHAR( "ta h on gn s dm nal" ),
170
171 // end of BootstrapBulk()
172 nullptr );
173#endif // !ALIB_RESOURCES_OMIT_DEFAULTS
174
175
182
190
191
192 // parse enum records
199 }
200
201 else if( phase == BootstrapPhases::PrepareConfig )
202 {}
203
204 else if( phase == BootstrapPhases::Final )
205 {}
206}
207
208
209}} // namespace [alib::files]
Qualities
Per-entry information about how a node was scanned.
Definition finfo.hpp:134
virtual ALIB_API void bootstrap(BootstrapPhases phase) override
Definition filescamp.cpp:35
NCString ResourceCategory
Definition camp.hpp:119
lang::resources::ResourcePool * resourcePool
Definition camp.hpp:75
virtual void BootstrapBulk(const nchar *category,...)=0
#define ALIB_BOXING_VTABLE_DEFINE(TMapped, Identifier)
Definition vtable.inl:473
#define A_CHAR(STR)
#define ALIB_BOXING_BOOTSTRAP_REGISTER_FAPPEND_FOR_APPENDABLE_TYPE(TAppendable)
#define ALIB_BOXING_BOOTSTRAP_VTABLE_DBG_REGISTER(Identifier)
Definition vtable.inl:489
#define ALIB_ASSERT_ERROR(cond,...)
Definition alib.hpp:1271
void BootstrapRegister(typename TFDecl::Signature function)
Definition boxing.hpp:112
void FFormat_File(const alib::Box &box, const alib::String &formatSpec, alib::NumberFormat &nf, alib::AString &target)
Definition file.cpp:395
Definition alib.cpp:69
BootstrapPhases
Initialization levels usable with Bootstrapping ALib Camps.
Definition alib.hpp:1393
@ Final
The final initialization phase. Here, camps are initializing their custom setup.
files::FilesCamp FILES
The singleton instance of ALib Camp class FilesCamp.
Definition filescamp.cpp:23
static void Bootstrap(TEnum element, TArgs &&... args) noexcept