|
Aegis
4.25.D505
|
00001 // 00002 // This file is generated by fmtgen. 00003 // 00004 00005 #ifndef LIBAEGIS_UCONF_FMTGEN_H 00006 #define LIBAEGIS_UCONF_FMTGEN_H 00007 #include <libaegis/meta_type.h> 00008 #include <libaegis/output.h> 00009 00010 #ifndef change_cause_DEF 00011 #define change_cause_DEF 00012 enum change_cause_ty 00013 { 00014 change_cause_external_bug, 00015 change_cause_external_enhancement, 00016 change_cause_external_improvement, 00017 change_cause_internal_bug, 00018 change_cause_internal_enhancement, 00019 change_cause_internal_improvement, 00020 change_cause_chain 00021 }; 00022 #define change_cause_max 7 00023 #endif // change_cause_DEF 00024 00025 extern meta_type change_cause_type; 00026 00027 void change_cause_write(const output::pointer &fp, const char *name, change_cause_ty value, bool show); 00028 void change_cause_write_xml(const output::pointer &fp, const char *name, change_cause_ty value, bool show); 00029 const char *change_cause_ename(change_cause_ty); 00030 void change_cause__rpt_init(void); 00031 00032 #ifndef file_action_DEF 00033 #define file_action_DEF 00034 enum file_action_ty 00035 { 00036 file_action_create, 00037 file_action_modify, 00038 file_action_remove, 00039 file_action_insulate, 00040 file_action_transparent 00041 }; 00042 #define file_action_max 5 00043 #endif // file_action_DEF 00044 00045 extern meta_type file_action_type; 00046 00047 void file_action_write(const output::pointer &fp, const char *name, file_action_ty value, bool show); 00048 void file_action_write_xml(const output::pointer &fp, const char *name, file_action_ty value, bool show); 00049 const char *file_action_ename(file_action_ty); 00050 void file_action__rpt_init(void); 00051 00052 #ifndef file_usage_DEF 00053 #define file_usage_DEF 00054 enum file_usage_ty 00055 { 00056 file_usage_source, 00057 file_usage_config, 00058 file_usage_build, 00059 file_usage_test, 00060 file_usage_manual_test 00061 }; 00062 #define file_usage_max 5 00063 #endif // file_usage_DEF 00064 00065 extern meta_type file_usage_type; 00066 00067 void file_usage_write(const output::pointer &fp, const char *name, file_usage_ty value, bool show); 00068 void file_usage_write_xml(const output::pointer &fp, const char *name, file_usage_ty value, bool show); 00069 const char *file_usage_ename(file_usage_ty); 00070 void file_usage__rpt_init(void); 00071 #include <common/str.h> 00072 00073 #ifndef metric_DEF 00074 #define metric_DEF 00075 00076 #define metric_name_mask ((unsigned long)0) 00077 #define metric_value_mask ((unsigned long)1 << 0) 00078 00079 struct metric_ty 00080 { 00081 long reference_count; 00082 unsigned long mask; 00083 string_ty *errpos; 00084 string_ty *name; 00085 double value; 00086 }; 00087 #endif // metric_DEF 00088 00089 extern meta_type metric_type; 00090 00091 void metric_write(const output::pointer &fp, const char *name, metric_ty *value); 00092 void metric_write_xml(const output::pointer &fp, const char *name, metric_ty *value); 00093 metric_ty *metric_copy(metric_ty *); 00094 metric_ty *metric_clone(metric_ty *); 00095 #include <common/debug.h> 00096 #ifndef metric_trace 00097 #ifdef DEBUG 00098 void metric_trace_real(const char *name, const metric_ty *value); 00099 #define metric_trace(x) ((void)(trace_pretest_ && (trace_where_, metric_trace_real(trace_stringize(x), x), 0))) 00100 #else 00101 #define metric_trace(x) 00102 #endif 00103 #endif 00104 00105 #ifndef metric_list_DEF 00106 #define metric_list_DEF 00107 struct metric_list_ty 00108 { 00109 size_t length; 00110 size_t maximum; 00111 metric_ty **list; 00112 }; 00113 #endif // metric_list_DEF 00114 00115 extern meta_type metric_list_type; 00116 00117 metric_list_ty *metric_list_copy(metric_list_ty *); 00118 metric_list_ty *metric_list_clone(metric_list_ty *); 00119 void metric_list_write(const output::pointer &fp, const char *name, metric_list_ty *value); 00120 void metric_list_write_xml(const output::pointer &fp, const char *name, metric_list_ty *value); 00121 #ifndef metric_list_trace 00122 #ifdef DEBUG 00123 void metric_list_trace_real(const char *name, const metric_list_ty *value); 00124 #define metric_list_trace(x) ((void)(trace_pretest_ && (trace_where_, metric_list_trace_real(trace_stringize(x), x), 0))) 00125 #else 00126 #define metric_list_trace(x) 00127 #endif 00128 #endif 00129 00130 #ifndef history_version_encoding_DEF 00131 #define history_version_encoding_DEF 00132 enum history_version_encoding_ty 00133 { 00134 history_version_encoding_none, 00135 history_version_encoding_quoted_printable, 00136 history_version_encoding_base64 00137 }; 00138 #define history_version_encoding_max 3 00139 #endif // history_version_encoding_DEF 00140 00141 extern meta_type history_version_encoding_type; 00142 00143 void history_version_encoding_write(const output::pointer &fp, const char *name, history_version_encoding_ty value, bool show); 00144 void history_version_encoding_write_xml(const output::pointer &fp, const char *name, history_version_encoding_ty value, bool show); 00145 const char *history_version_encoding_ename(history_version_encoding_ty); 00146 void history_version_encoding__rpt_init(void); 00147 00148 #ifndef history_version_DEF 00149 #define history_version_DEF 00150 00151 #define history_version_revision_mask ((unsigned long)0) 00152 #define history_version_encoding_mask ((unsigned long)1 << 0) 00153 #define history_version_uuid_mask ((unsigned long)0) 00154 00155 struct history_version_ty 00156 { 00157 long reference_count; 00158 unsigned long mask; 00159 string_ty *errpos; 00160 string_ty *revision; 00161 history_version_encoding_ty encoding; 00162 string_ty *uuid; 00163 }; 00164 #endif // history_version_DEF 00165 00166 extern meta_type history_version_type; 00167 00168 void history_version_write(const output::pointer &fp, const char *name, history_version_ty *value); 00169 void history_version_write_xml(const output::pointer &fp, const char *name, history_version_ty *value); 00170 history_version_ty *history_version_copy(history_version_ty *); 00171 history_version_ty *history_version_clone(history_version_ty *); 00172 #ifndef history_version_trace 00173 #ifdef DEBUG 00174 void history_version_trace_real(const char *name, const history_version_ty *value); 00175 #define history_version_trace(x) ((void)(trace_pretest_ && (trace_where_, history_version_trace_real(trace_stringize(x), x), 0))) 00176 #else 00177 #define history_version_trace(x) 00178 #endif 00179 #endif 00180 00181 #ifndef attributes_DEF 00182 #define attributes_DEF 00183 00184 #define attributes_name_mask ((unsigned long)0) 00185 #define attributes_value_mask ((unsigned long)0) 00186 00187 struct attributes_ty 00188 { 00189 long reference_count; 00190 unsigned long mask; 00191 string_ty *errpos; 00192 string_ty *name; 00193 string_ty *value; 00194 }; 00195 #endif // attributes_DEF 00196 00197 extern meta_type attributes_type; 00198 00199 void attributes_write(const output::pointer &fp, const char *name, attributes_ty *value); 00200 void attributes_write_xml(const output::pointer &fp, const char *name, attributes_ty *value); 00201 attributes_ty *attributes_copy(attributes_ty *); 00202 attributes_ty *attributes_clone(attributes_ty *); 00203 #ifndef attributes_trace 00204 #ifdef DEBUG 00205 void attributes_trace_real(const char *name, const attributes_ty *value); 00206 #define attributes_trace(x) ((void)(trace_pretest_ && (trace_where_, attributes_trace_real(trace_stringize(x), x), 0))) 00207 #else 00208 #define attributes_trace(x) 00209 #endif 00210 #endif 00211 00212 #ifndef attributes_list_DEF 00213 #define attributes_list_DEF 00214 struct attributes_list_ty 00215 { 00216 size_t length; 00217 size_t maximum; 00218 attributes_ty **list; 00219 }; 00220 #endif // attributes_list_DEF 00221 00222 extern meta_type attributes_list_type; 00223 00224 attributes_list_ty *attributes_list_copy(attributes_list_ty *); 00225 attributes_list_ty *attributes_list_clone(attributes_list_ty *); 00226 void attributes_list_write(const output::pointer &fp, const char *name, attributes_list_ty *value); 00227 void attributes_list_write_xml(const output::pointer &fp, const char *name, attributes_list_ty *value); 00228 #ifndef attributes_list_trace 00229 #ifdef DEBUG 00230 void attributes_list_trace_real(const char *name, const attributes_list_ty *value); 00231 #define attributes_list_trace(x) ((void)(trace_pretest_ && (trace_where_, attributes_list_trace_real(trace_stringize(x), x), 0))) 00232 #else 00233 #define attributes_list_trace(x) 00234 #endif 00235 #endif 00236 00237 #ifndef uconf_delete_file_preference_DEF 00238 #define uconf_delete_file_preference_DEF 00239 enum uconf_delete_file_preference_ty 00240 { 00241 uconf_delete_file_preference_no_keep, 00242 uconf_delete_file_preference_interactive, 00243 uconf_delete_file_preference_keep 00244 }; 00245 #define uconf_delete_file_preference_max 3 00246 #endif // uconf_delete_file_preference_DEF 00247 00248 extern meta_type uconf_delete_file_preference_type; 00249 00250 void uconf_delete_file_preference_write(const output::pointer &fp, const char *name, uconf_delete_file_preference_ty value, bool show); 00251 void uconf_delete_file_preference_write_xml(const output::pointer &fp, const char *name, uconf_delete_file_preference_ty value, bool show); 00252 const char *uconf_delete_file_preference_ename(uconf_delete_file_preference_ty); 00253 void uconf_delete_file_preference__rpt_init(void); 00254 00255 #ifndef uconf_diff_preference_DEF 00256 #define uconf_diff_preference_DEF 00257 enum uconf_diff_preference_ty 00258 { 00259 uconf_diff_preference_automatic_merge, 00260 uconf_diff_preference_no_merge, 00261 uconf_diff_preference_only_merge 00262 }; 00263 #define uconf_diff_preference_max 3 00264 #endif // uconf_diff_preference_DEF 00265 00266 extern meta_type uconf_diff_preference_type; 00267 00268 void uconf_diff_preference_write(const output::pointer &fp, const char *name, uconf_diff_preference_ty value, bool show); 00269 void uconf_diff_preference_write_xml(const output::pointer &fp, const char *name, uconf_diff_preference_ty value, bool show); 00270 const char *uconf_diff_preference_ename(uconf_diff_preference_ty); 00271 void uconf_diff_preference__rpt_init(void); 00272 00273 #ifndef uconf_pager_preference_DEF 00274 #define uconf_pager_preference_DEF 00275 enum uconf_pager_preference_ty 00276 { 00277 uconf_pager_preference_foreground, 00278 uconf_pager_preference_never 00279 }; 00280 #define uconf_pager_preference_max 2 00281 #endif // uconf_pager_preference_DEF 00282 00283 extern meta_type uconf_pager_preference_type; 00284 00285 void uconf_pager_preference_write(const output::pointer &fp, const char *name, uconf_pager_preference_ty value, bool show); 00286 void uconf_pager_preference_write_xml(const output::pointer &fp, const char *name, uconf_pager_preference_ty value, bool show); 00287 const char *uconf_pager_preference_ename(uconf_pager_preference_ty); 00288 void uconf_pager_preference__rpt_init(void); 00289 00290 #ifndef uconf_persevere_preference_DEF 00291 #define uconf_persevere_preference_DEF 00292 enum uconf_persevere_preference_ty 00293 { 00294 uconf_persevere_preference_all, 00295 uconf_persevere_preference_stop 00296 }; 00297 #define uconf_persevere_preference_max 2 00298 #endif // uconf_persevere_preference_DEF 00299 00300 extern meta_type uconf_persevere_preference_type; 00301 00302 void uconf_persevere_preference_write(const output::pointer &fp, const char *name, uconf_persevere_preference_ty value, bool show); 00303 void uconf_persevere_preference_write_xml(const output::pointer &fp, const char *name, uconf_persevere_preference_ty value, bool show); 00304 const char *uconf_persevere_preference_ename(uconf_persevere_preference_ty); 00305 void uconf_persevere_preference__rpt_init(void); 00306 00307 #ifndef uconf_log_file_preference_DEF 00308 #define uconf_log_file_preference_DEF 00309 enum uconf_log_file_preference_ty 00310 { 00311 uconf_log_file_preference_snuggle, 00312 uconf_log_file_preference_append, 00313 uconf_log_file_preference_replace, 00314 uconf_log_file_preference_never 00315 }; 00316 #define uconf_log_file_preference_max 4 00317 #endif // uconf_log_file_preference_DEF 00318 00319 extern meta_type uconf_log_file_preference_type; 00320 00321 void uconf_log_file_preference_write(const output::pointer &fp, const char *name, uconf_log_file_preference_ty value, bool show); 00322 void uconf_log_file_preference_write_xml(const output::pointer &fp, const char *name, uconf_log_file_preference_ty value, bool show); 00323 const char *uconf_log_file_preference_ename(uconf_log_file_preference_ty); 00324 void uconf_log_file_preference__rpt_init(void); 00325 00326 #ifndef uconf_lock_wait_preference_DEF 00327 #define uconf_lock_wait_preference_DEF 00328 enum uconf_lock_wait_preference_ty 00329 { 00330 uconf_lock_wait_preference_always, 00331 uconf_lock_wait_preference_background, 00332 uconf_lock_wait_preference_never 00333 }; 00334 #define uconf_lock_wait_preference_max 3 00335 #endif // uconf_lock_wait_preference_DEF 00336 00337 extern meta_type uconf_lock_wait_preference_type; 00338 00339 void uconf_lock_wait_preference_write(const output::pointer &fp, const char *name, uconf_lock_wait_preference_ty value, bool show); 00340 void uconf_lock_wait_preference_write_xml(const output::pointer &fp, const char *name, uconf_lock_wait_preference_ty value, bool show); 00341 const char *uconf_lock_wait_preference_ename(uconf_lock_wait_preference_ty); 00342 void uconf_lock_wait_preference__rpt_init(void); 00343 00344 #ifndef uconf_symbolic_link_preference_DEF 00345 #define uconf_symbolic_link_preference_DEF 00346 enum uconf_symbolic_link_preference_ty 00347 { 00348 uconf_symbolic_link_preference_verify, 00349 uconf_symbolic_link_preference_assume 00350 }; 00351 #define uconf_symbolic_link_preference_max 2 00352 #endif // uconf_symbolic_link_preference_DEF 00353 00354 extern meta_type uconf_symbolic_link_preference_type; 00355 00356 void uconf_symbolic_link_preference_write(const output::pointer &fp, const char *name, uconf_symbolic_link_preference_ty value, bool show); 00357 void uconf_symbolic_link_preference_write_xml(const output::pointer &fp, const char *name, uconf_symbolic_link_preference_ty value, bool show); 00358 const char *uconf_symbolic_link_preference_ename(uconf_symbolic_link_preference_ty); 00359 void uconf_symbolic_link_preference__rpt_init(void); 00360 00361 #ifndef uconf_relative_filename_preference_DEF 00362 #define uconf_relative_filename_preference_DEF 00363 enum uconf_relative_filename_preference_ty 00364 { 00365 uconf_relative_filename_preference_current, 00366 uconf_relative_filename_preference_base 00367 }; 00368 #define uconf_relative_filename_preference_max 2 00369 #endif // uconf_relative_filename_preference_DEF 00370 00371 extern meta_type uconf_relative_filename_preference_type; 00372 00373 void uconf_relative_filename_preference_write(const output::pointer &fp, const char *name, uconf_relative_filename_preference_ty value, bool show); 00374 void uconf_relative_filename_preference_write_xml(const output::pointer &fp, const char *name, uconf_relative_filename_preference_ty value, bool show); 00375 const char *uconf_relative_filename_preference_ename(uconf_relative_filename_preference_ty); 00376 void uconf_relative_filename_preference__rpt_init(void); 00377 00378 #ifndef uconf_whiteout_preference_DEF 00379 #define uconf_whiteout_preference_DEF 00380 enum uconf_whiteout_preference_ty 00381 { 00382 uconf_whiteout_preference_always, 00383 uconf_whiteout_preference_never 00384 }; 00385 #define uconf_whiteout_preference_max 2 00386 #endif // uconf_whiteout_preference_DEF 00387 00388 extern meta_type uconf_whiteout_preference_type; 00389 00390 void uconf_whiteout_preference_write(const output::pointer &fp, const char *name, uconf_whiteout_preference_ty value, bool show); 00391 void uconf_whiteout_preference_write_xml(const output::pointer &fp, const char *name, uconf_whiteout_preference_ty value, bool show); 00392 const char *uconf_whiteout_preference_ename(uconf_whiteout_preference_ty); 00393 void uconf_whiteout_preference__rpt_init(void); 00394 00395 #ifndef uconf_DEF 00396 #define uconf_DEF 00397 00398 #define uconf_default_project_name_mask ((unsigned long)0) 00399 #define uconf_default_change_number_mask ((unsigned long)1 << 0) 00400 #define uconf_default_development_directory_mask ((unsigned long)0) 00401 #define uconf_default_project_directory_mask ((unsigned long)0) 00402 #define uconf_delete_file_preference_mask ((unsigned long)1 << 1) 00403 #define uconf_diff_preference_mask ((unsigned long)1 << 2) 00404 #define uconf_pager_preference_mask ((unsigned long)1 << 3) 00405 #define uconf_persevere_preference_mask ((unsigned long)1 << 4) 00406 #define uconf_log_file_preference_mask ((unsigned long)1 << 5) 00407 #define uconf_lock_wait_preference_mask ((unsigned long)1 << 6) 00408 #define uconf_symbolic_link_preference_mask ((unsigned long)1 << 7) 00409 #define uconf_relative_filename_preference_mask ((unsigned long)1 << 8) 00410 #define uconf_email_address_mask ((unsigned long)0) 00411 #define uconf_whiteout_preference_mask ((unsigned long)1 << 9) 00412 #define uconf_editor_command_mask ((unsigned long)0) 00413 #define uconf_visual_command_mask ((unsigned long)0) 00414 #define uconf_pager_command_mask ((unsigned long)0) 00415 #define uconf_attribute_mask ((unsigned long)0) 00416 00417 struct uconf_ty 00418 { 00419 long reference_count; 00420 unsigned long mask; 00421 string_ty *errpos; 00422 string_ty *default_project_name; 00423 long default_change_number; 00424 string_ty *default_development_directory; 00425 string_ty *default_project_directory; 00426 uconf_delete_file_preference_ty delete_file_preference; 00427 uconf_diff_preference_ty diff_preference; 00428 uconf_pager_preference_ty pager_preference; 00429 uconf_persevere_preference_ty persevere_preference; 00430 uconf_log_file_preference_ty log_file_preference; 00431 uconf_lock_wait_preference_ty lock_wait_preference; 00432 uconf_symbolic_link_preference_ty symbolic_link_preference; 00433 uconf_relative_filename_preference_ty relative_filename_preference; 00434 string_ty *email_address; 00435 uconf_whiteout_preference_ty whiteout_preference; 00436 string_ty *editor_command; 00437 string_ty *visual_command; 00438 string_ty *pager_command; 00439 attributes_list_ty *attribute; 00440 }; 00441 #endif // uconf_DEF 00442 00443 extern meta_type uconf_type; 00444 00445 void uconf_write(const output::pointer &fp, uconf_ty *value); 00446 void uconf_write_xml(const output::pointer &fp, uconf_ty *value); 00447 uconf_ty *uconf_copy(uconf_ty *); 00448 uconf_ty *uconf_clone(uconf_ty *); 00449 #ifndef uconf_trace 00450 #ifdef DEBUG 00451 void uconf_trace_real(const char *name, const uconf_ty *value); 00452 #define uconf_trace(x) ((void)(trace_pretest_ && (trace_where_, uconf_trace_real(trace_stringize(x), x), 0))) 00453 #else 00454 #define uconf_trace(x) 00455 #endif 00456 #endif 00457 00474 void uconf_write_file(string_ty *filename, uconf_ty *value, int comp); 00475 #include <common/nstring.h> 00476 00493 void uconf_write_file(const nstring &filnam, uconf_ty *value, bool comp); 00494 00511 uconf_ty *uconf_read_file(string_ty *filename); 00512 00529 uconf_ty *uconf_read_file(const nstring &filename); 00530 void uconf__rpt_init(void); 00531 00532 #endif // LIBAEGIS_UCONF_FMTGEN_H
1.7.6.1