ALib C++ Library
Library Version: 2402 R1
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 !defined(ALIB_DOX)
10# if !defined (HPP_ALIB_LANG_RESOURCES_RESOURCES)
12# endif
13
14# if !defined (HPP_ALIB_FILES_FINFO)
15# include "alib/files/finfo.hpp"
16# endif
17# if !defined (HPP_ALIB_FILES_CAMP)
19# endif
20# if !defined(HPP_ALIB_ENUMS_SERIALIZATION)
22# endif
23# if !defined (HPP_ALIB_ENUMS_RECORDBOOTSTRAP)
25# endif
26#endif // !defined(ALIB_DOX)
27
28namespace alib {
29
31
32namespace files {
33
35: Camp( "FILES" )
36{
37 ALIB_ASSERT_ERROR( this == &FILES, "FILES",
38 "Instances of class FILES must not be created. Use singleton alib::FILES" )
39}
40
41
43{
45 {
46
47 #define EOS ,
48#if !ALIB_RESOURCES_OMIT_DEFAULTS
50
51 "FT", A_CHAR("0,DIRECTORY" ",1,"
52 "1,SYMBOLIC_LINK_DIR" ",14,"
53 "3,SYMBOLIC_LINK" ",2,"
54 "2,REGULAR" ",1,"
55 "4,BLOCK" ",1,"
56 "5,CHARACTER" ",1,"
57 "6,FIFO" ",1,"
58 "7,SOCKET" ",2,"
59 "8,UNKNOWN_OR_ERROR" ",1") EOS
60
61 "FQ", A_CHAR("0,NONE" ",3,"
62 "1,STATS" ",1,"
63 "2,RESOLVED" ",3,"
64 "3,MAX_DEPTH_REACHED" ",1,"
65 "15,NOT_EXISTENT" ",5,"
66 "4,NOT_FOLLOWED" ",5,"
67 "5,NOT_CROSSING_FS" ",5,"
68 "6,NO_AFS" ",5,"
69 "10,NO_ACCESS_SL_TARGET" ",13,"
70 "9,NO_ACCESS_SL" ",11,"
71 "11,NO_ACCESS_DIR" ",11,"
72 "8,NO_ACCESS" ",5,"
73 "7,RECURSIVE" ",1,"
74 "12,BROKEN_LINK" ",1,"
75 "13,CIRCULAR_LINK" ",1,"
76 "14,DUPLICATE" ",1,"
77 "16,UNKNOWN_ERROR" ",5" ) EOS
78
79 // Identifier/Function names
80 "TFP" , "File Permission" EOS
81 "TID" , "File Usr/Grp ID" EOS
82 "TTY" , "File Type" EOS
83
84
85 "CPF0" , A_CHAR( "OwnerRead" " I 1 2" ),
86 "CPF1" , A_CHAR( "OwnerWrite" " I 1 1" ),
87 "CPF2" , A_CHAR( "OwnerExecute" " I 1 1" ),
88 "CPF3" , A_CHAR( "GroupRead" " I 1 1" ),
89 "CPF4" , A_CHAR( "GroupWrite" " I 1 1" ),
90 "CPF5" , A_CHAR( "GroupExecute" " I 1 1" ),
91 "CPF6" , A_CHAR( "OthersRead" " I 2 1" ),
92 "CPF7" , A_CHAR( "OthersWrite" " I 2 1" ),
93 "CPF8" , A_CHAR( "OthersExecute" " I 2 1" ),
94 "CPF9" , A_CHAR( "Directory" " I 3" ),
95 "CPF10" , A_CHAR( "SymbolicLinkDir" " I 1 1 1" ),
96 "CPF11" , A_CHAR( "Regular" " I 3" ),
97 "CPF12" , A_CHAR( "SymbolicLink" " I 1 1" ),
98 "CPF13" , A_CHAR( "Block" " I 5" ),
99 "CPF14" , A_CHAR( "Character" " I 9" ),
100 "CPF15" , A_CHAR( "Fifo" " I 4" ),
101 "CPF16" , A_CHAR( "Socket" " I 6" ),
102 "CPF17" , A_CHAR( "Name" " I 4" ),
103 "CPF18" , A_CHAR( "Type" " I 2" ),
104 "CPF19" , A_CHAR( "IsDirectory" " I 2 3" ),
105 "CPF20" , A_CHAR( "IsSymbolicLink" " I 2 1 1" ),
106 "CPF21" , A_CHAR( "Size" " I 4" ),
107 "CPF22" , A_CHAR( "Time" " I 4" ),
108 "CPF23" , A_CHAR( "MTime" " I 1 1" ),
109 "CPF24" , A_CHAR( "CTime" " I 1 1" ),
110 "CPF25" , A_CHAR( "ATime" " I 1 1" ),
111 "CPF26" , A_CHAR( "PermissionS" " I 4 0" ),
112 "CPF27" , A_CHAR( "KiloBytes" " I 1 1" ),
113 "CPF28" , A_CHAR( "MegaBytes" " I 1 1" ),
114 "CPF29" , A_CHAR( "GigaBytes" " I 1 1" ),
115 "CPF30" , A_CHAR( "TeraBytes" " I 1 1" ),
116 "CPF31" , A_CHAR( "PetaBytes" " I 1 1" ),
117 "CPF32" , A_CHAR( "ExaBytes" " I 1 1" ),
118 "CPF33" , A_CHAR( "Owner" " I 5" ),
119 "CPF34" , A_CHAR( "Group" " I 5" ),
120 "CPF35" , A_CHAR( "UserID" " I 1 1 1" ),
121 "CPF36" , A_CHAR( "GroupID" " I 1 1 1" ),
122 "CPF37" , A_CHAR( "Path" " I 4" ),
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150 // end of BootstrapBulk()
151 nullptr );
152#endif // !ALIB_RESOURCES_OMIT_DEFAULTS
153
154
157 }
158
159 else if( phase == BootstrapPhases::PrepareConfig )
160 {
163 }
164
165// else if( phase == BootstrapPhases::Final )
166// {
167// }
168}
169
170
171}} // namespace [alib::files]
virtual ALIB_API void bootstrap(BootstrapPhases phase) override
Definition filescamp.cpp:42
NCString ResourceCategory
Definition camp.hpp:142
lang::resources::ResourcePool * resourcePool
Definition camp.hpp:98
virtual void BootstrapBulk(const nchar *category,...)=0
#define A_CHAR(STR)
#define ALIB_BOXING_BOOTSTRAP_REGISTER_FAPPEND_FOR_APPENDABLE_TYPE(TAppendable)
#define ALIB_ASSERT_ERROR(cond,...)
Definition alib.hpp:984
Definition alib.cpp:57
files::Files FILES
Definition filescamp.cpp:30
BootstrapPhases
Definition camp.hpp:26
@ PrepareConfig
Initializes up to the creation of a field config .
static void Bootstrap(TEnum element, TArgs &&... args) noexcept