|
Aegis
4.25.D505
|
00001 // 00002 // This file is generated by fmtgen. 00003 // 00004 00005 #ifndef LIBAEGIS_PATTR_FMTGEN_H 00006 #define LIBAEGIS_PATTR_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 pattr_copyright_years_list_DEF 00238 #define pattr_copyright_years_list_DEF 00239 struct pattr_copyright_years_list_ty 00240 { 00241 size_t length; 00242 size_t maximum; 00243 long *list; 00244 }; 00245 #endif // pattr_copyright_years_list_DEF 00246 00247 extern meta_type pattr_copyright_years_list_type; 00248 00249 pattr_copyright_years_list_ty *pattr_copyright_years_list_copy(pattr_copyright_years_list_ty *); 00250 pattr_copyright_years_list_ty *pattr_copyright_years_list_clone(pattr_copyright_years_list_ty *); 00251 void pattr_copyright_years_list_write(const output::pointer &fp, const char *name, pattr_copyright_years_list_ty *value); 00252 void pattr_copyright_years_list_write_xml(const output::pointer &fp, const char *name, pattr_copyright_years_list_ty *value); 00253 #ifndef pattr_copyright_years_list_trace 00254 #ifdef DEBUG 00255 void pattr_copyright_years_list_trace_real(const char *name, const pattr_copyright_years_list_ty *value); 00256 #define pattr_copyright_years_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pattr_copyright_years_list_trace_real(trace_stringize(x), x), 0))) 00257 #else 00258 #define pattr_copyright_years_list_trace(x) 00259 #endif 00260 #endif 00261 00262 #ifndef pattr_develop_end_action_DEF 00263 #define pattr_develop_end_action_DEF 00264 enum pattr_develop_end_action_ty 00265 { 00266 pattr_develop_end_action_goto_being_reviewed, 00267 pattr_develop_end_action_goto_awaiting_review, 00268 pattr_develop_end_action_goto_awaiting_integration 00269 }; 00270 #define pattr_develop_end_action_max 3 00271 #endif // pattr_develop_end_action_DEF 00272 00273 extern meta_type pattr_develop_end_action_type; 00274 00275 void pattr_develop_end_action_write(const output::pointer &fp, const char *name, pattr_develop_end_action_ty value, bool show); 00276 void pattr_develop_end_action_write_xml(const output::pointer &fp, const char *name, pattr_develop_end_action_ty value, bool show); 00277 const char *pattr_develop_end_action_ename(pattr_develop_end_action_ty); 00278 void pattr_develop_end_action__rpt_init(void); 00279 00280 #ifndef pattr_DEF 00281 #define pattr_DEF 00282 00283 #define pattr_description_mask ((unsigned long)0) 00284 #define pattr_developer_may_review_mask ((unsigned long)1 << 0) 00285 #define pattr_developer_may_integrate_mask ((unsigned long)1 << 1) 00286 #define pattr_reviewer_may_integrate_mask ((unsigned long)1 << 2) 00287 #define pattr_developers_may_create_changes_mask ((unsigned long)1 << 3) 00288 #define pattr_forced_develop_begin_notify_command_mask ((unsigned long)0) 00289 #define pattr_develop_end_notify_command_mask ((unsigned long)0) 00290 #define pattr_develop_end_undo_notify_command_mask ((unsigned long)0) 00291 #define pattr_review_begin_notify_command_mask ((unsigned long)0) 00292 #define pattr_review_begin_undo_notify_command_mask ((unsigned long)0) 00293 #define pattr_review_pass_notify_command_mask ((unsigned long)0) 00294 #define pattr_review_pass_undo_notify_command_mask ((unsigned long)0) 00295 #define pattr_review_fail_notify_command_mask ((unsigned long)0) 00296 #define pattr_integrate_pass_notify_command_mask ((unsigned long)0) 00297 #define pattr_integrate_fail_notify_command_mask ((unsigned long)0) 00298 #define pattr_default_development_directory_mask ((unsigned long)0) 00299 #define pattr_umask_mask ((unsigned long)1 << 4) 00300 #define pattr_default_test_exemption_mask ((unsigned long)1 << 5) 00301 #define pattr_default_test_regression_exemption_mask ((unsigned long)1 << 6) 00302 #define pattr_copyright_years_mask ((unsigned long)0) 00303 #define pattr_minimum_change_number_mask ((unsigned long)1 << 7) 00304 #define pattr_reuse_change_numbers_mask ((unsigned long)1 << 8) 00305 #define pattr_minimum_branch_number_mask ((unsigned long)1 << 9) 00306 #define pattr_skip_unlucky_mask ((unsigned long)1 << 10) 00307 #define pattr_compress_database_mask ((unsigned long)1 << 11) 00308 #define pattr_develop_end_action_mask ((unsigned long)1 << 12) 00309 #define pattr_protect_development_directory_mask ((unsigned long)1 << 13) 00310 00311 struct pattr_ty 00312 { 00313 long reference_count; 00314 unsigned long mask; 00315 string_ty *errpos; 00316 string_ty *description; 00317 bool developer_may_review; 00318 bool developer_may_integrate; 00319 bool reviewer_may_integrate; 00320 bool developers_may_create_changes; 00321 string_ty *forced_develop_begin_notify_command; 00322 string_ty *develop_end_notify_command; 00323 string_ty *develop_end_undo_notify_command; 00324 string_ty *review_begin_notify_command; 00325 string_ty *review_begin_undo_notify_command; 00326 string_ty *review_pass_notify_command; 00327 string_ty *review_pass_undo_notify_command; 00328 string_ty *review_fail_notify_command; 00329 string_ty *integrate_pass_notify_command; 00330 string_ty *integrate_fail_notify_command; 00331 string_ty *default_development_directory; 00332 long umask; 00333 bool default_test_exemption; 00334 bool default_test_regression_exemption; 00335 pattr_copyright_years_list_ty *copyright_years; 00336 long minimum_change_number; 00337 bool reuse_change_numbers; 00338 long minimum_branch_number; 00339 bool skip_unlucky; 00340 bool compress_database; 00341 pattr_develop_end_action_ty develop_end_action; 00342 bool protect_development_directory; 00343 }; 00344 #endif // pattr_DEF 00345 00346 extern meta_type pattr_type; 00347 00348 void pattr_write(const output::pointer &fp, pattr_ty *value); 00349 void pattr_write_xml(const output::pointer &fp, pattr_ty *value); 00350 pattr_ty *pattr_copy(pattr_ty *); 00351 pattr_ty *pattr_clone(pattr_ty *); 00352 #ifndef pattr_trace 00353 #ifdef DEBUG 00354 void pattr_trace_real(const char *name, const pattr_ty *value); 00355 #define pattr_trace(x) ((void)(trace_pretest_ && (trace_where_, pattr_trace_real(trace_stringize(x), x), 0))) 00356 #else 00357 #define pattr_trace(x) 00358 #endif 00359 #endif 00360 00377 void pattr_write_file(string_ty *filename, pattr_ty *value, int comp); 00378 #include <common/nstring.h> 00379 00396 void pattr_write_file(const nstring &filnam, pattr_ty *value, bool comp); 00397 00414 pattr_ty *pattr_read_file(string_ty *filename); 00415 00432 pattr_ty *pattr_read_file(const nstring &filename); 00433 void pattr__rpt_init(void); 00434 00435 #endif // LIBAEGIS_PATTR_FMTGEN_H
1.7.6.1