|
Aegis
4.25.D505
|
00001 // 00002 // This file is generated by fmtgen. 00003 // 00004 00005 #ifndef LIBAEGIS_PSTATE_FMTGEN_H 00006 #define LIBAEGIS_PSTATE_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 pstate_copyright_years_list_DEF 00238 #define pstate_copyright_years_list_DEF 00239 struct pstate_copyright_years_list_ty 00240 { 00241 size_t length; 00242 size_t maximum; 00243 long *list; 00244 }; 00245 #endif // pstate_copyright_years_list_DEF 00246 00247 extern meta_type pstate_copyright_years_list_type; 00248 00249 pstate_copyright_years_list_ty *pstate_copyright_years_list_copy(pstate_copyright_years_list_ty *); 00250 pstate_copyright_years_list_ty *pstate_copyright_years_list_clone(pstate_copyright_years_list_ty *); 00251 void pstate_copyright_years_list_write(const output::pointer &fp, const char *name, pstate_copyright_years_list_ty *value); 00252 void pstate_copyright_years_list_write_xml(const output::pointer &fp, const char *name, pstate_copyright_years_list_ty *value); 00253 #ifndef pstate_copyright_years_list_trace 00254 #ifdef DEBUG 00255 void pstate_copyright_years_list_trace_real(const char *name, const pstate_copyright_years_list_ty *value); 00256 #define pstate_copyright_years_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_copyright_years_list_trace_real(trace_stringize(x), x), 0))) 00257 #else 00258 #define pstate_copyright_years_list_trace(x) 00259 #endif 00260 #endif 00261 00262 #ifndef pstate_src_DEF 00263 #define pstate_src_DEF 00264 00265 #define pstate_src_file_name_mask ((unsigned long)0) 00266 #define pstate_src_usage_mask ((unsigned long)1 << 0) 00267 #define pstate_src_edit_number_mask ((unsigned long)0) 00268 #define pstate_src_locked_by_mask ((unsigned long)1 << 1) 00269 #define pstate_src_about_to_be_created_by_mask ((unsigned long)1 << 2) 00270 #define pstate_src_deleted_by_mask ((unsigned long)1 << 3) 00271 00272 struct pstate_src_ty 00273 { 00274 long reference_count; 00275 unsigned long mask; 00276 string_ty *errpos; 00277 string_ty *file_name; 00278 file_usage_ty usage; 00279 string_ty *edit_number; 00280 long locked_by; 00281 long about_to_be_created_by; 00282 long deleted_by; 00283 }; 00284 #endif // pstate_src_DEF 00285 00286 extern meta_type pstate_src_type; 00287 00288 void pstate_src_write(const output::pointer &fp, const char *name, pstate_src_ty *value); 00289 void pstate_src_write_xml(const output::pointer &fp, const char *name, pstate_src_ty *value); 00290 pstate_src_ty *pstate_src_copy(pstate_src_ty *); 00291 pstate_src_ty *pstate_src_clone(pstate_src_ty *); 00292 #ifndef pstate_src_trace 00293 #ifdef DEBUG 00294 void pstate_src_trace_real(const char *name, const pstate_src_ty *value); 00295 #define pstate_src_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_src_trace_real(trace_stringize(x), x), 0))) 00296 #else 00297 #define pstate_src_trace(x) 00298 #endif 00299 #endif 00300 00301 #ifndef pstate_src_list_DEF 00302 #define pstate_src_list_DEF 00303 struct pstate_src_list_ty 00304 { 00305 size_t length; 00306 size_t maximum; 00307 pstate_src_ty **list; 00308 }; 00309 #endif // pstate_src_list_DEF 00310 00311 extern meta_type pstate_src_list_type; 00312 00313 pstate_src_list_ty *pstate_src_list_copy(pstate_src_list_ty *); 00314 pstate_src_list_ty *pstate_src_list_clone(pstate_src_list_ty *); 00315 void pstate_src_list_write(const output::pointer &fp, const char *name, pstate_src_list_ty *value); 00316 void pstate_src_list_write_xml(const output::pointer &fp, const char *name, pstate_src_list_ty *value); 00317 #ifndef pstate_src_list_trace 00318 #ifdef DEBUG 00319 void pstate_src_list_trace_real(const char *name, const pstate_src_list_ty *value); 00320 #define pstate_src_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_src_list_trace_real(trace_stringize(x), x), 0))) 00321 #else 00322 #define pstate_src_list_trace(x) 00323 #endif 00324 #endif 00325 00326 #ifndef pstate_history_name_list_DEF 00327 #define pstate_history_name_list_DEF 00328 struct pstate_history_name_list_ty 00329 { 00330 size_t length; 00331 size_t maximum; 00332 string_ty **list; 00333 }; 00334 #endif // pstate_history_name_list_DEF 00335 00336 extern meta_type pstate_history_name_list_type; 00337 00338 pstate_history_name_list_ty *pstate_history_name_list_copy(pstate_history_name_list_ty *); 00339 pstate_history_name_list_ty *pstate_history_name_list_clone(pstate_history_name_list_ty *); 00340 void pstate_history_name_list_write(const output::pointer &fp, const char *name, pstate_history_name_list_ty *value); 00341 void pstate_history_name_list_write_xml(const output::pointer &fp, const char *name, pstate_history_name_list_ty *value); 00342 #ifndef pstate_history_name_list_trace 00343 #ifdef DEBUG 00344 void pstate_history_name_list_trace_real(const char *name, const pstate_history_name_list_ty *value); 00345 #define pstate_history_name_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_history_name_list_trace_real(trace_stringize(x), x), 0))) 00346 #else 00347 #define pstate_history_name_list_trace(x) 00348 #endif 00349 #endif 00350 00351 #ifndef pstate_history_DEF 00352 #define pstate_history_DEF 00353 00354 #define pstate_history_delta_number_mask ((unsigned long)1 << 0) 00355 #define pstate_history_change_number_mask ((unsigned long)1 << 1) 00356 #define pstate_history_name_mask ((unsigned long)0) 00357 00358 struct pstate_history_ty 00359 { 00360 long reference_count; 00361 unsigned long mask; 00362 string_ty *errpos; 00363 long delta_number; 00364 long change_number; 00365 pstate_history_name_list_ty *name; 00366 }; 00367 #endif // pstate_history_DEF 00368 00369 extern meta_type pstate_history_type; 00370 00371 void pstate_history_write(const output::pointer &fp, const char *name, pstate_history_ty *value); 00372 void pstate_history_write_xml(const output::pointer &fp, const char *name, pstate_history_ty *value); 00373 pstate_history_ty *pstate_history_copy(pstate_history_ty *); 00374 pstate_history_ty *pstate_history_clone(pstate_history_ty *); 00375 #ifndef pstate_history_trace 00376 #ifdef DEBUG 00377 void pstate_history_trace_real(const char *name, const pstate_history_ty *value); 00378 #define pstate_history_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_history_trace_real(trace_stringize(x), x), 0))) 00379 #else 00380 #define pstate_history_trace(x) 00381 #endif 00382 #endif 00383 00384 #ifndef pstate_history_list_DEF 00385 #define pstate_history_list_DEF 00386 struct pstate_history_list_ty 00387 { 00388 size_t length; 00389 size_t maximum; 00390 pstate_history_ty **list; 00391 }; 00392 #endif // pstate_history_list_DEF 00393 00394 extern meta_type pstate_history_list_type; 00395 00396 pstate_history_list_ty *pstate_history_list_copy(pstate_history_list_ty *); 00397 pstate_history_list_ty *pstate_history_list_clone(pstate_history_list_ty *); 00398 void pstate_history_list_write(const output::pointer &fp, const char *name, pstate_history_list_ty *value); 00399 void pstate_history_list_write_xml(const output::pointer &fp, const char *name, pstate_history_list_ty *value); 00400 #ifndef pstate_history_list_trace 00401 #ifdef DEBUG 00402 void pstate_history_list_trace_real(const char *name, const pstate_history_list_ty *value); 00403 #define pstate_history_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_history_list_trace_real(trace_stringize(x), x), 0))) 00404 #else 00405 #define pstate_history_list_trace(x) 00406 #endif 00407 #endif 00408 00409 #ifndef pstate_change_list_DEF 00410 #define pstate_change_list_DEF 00411 struct pstate_change_list_ty 00412 { 00413 size_t length; 00414 size_t maximum; 00415 long *list; 00416 }; 00417 #endif // pstate_change_list_DEF 00418 00419 extern meta_type pstate_change_list_type; 00420 00421 pstate_change_list_ty *pstate_change_list_copy(pstate_change_list_ty *); 00422 pstate_change_list_ty *pstate_change_list_clone(pstate_change_list_ty *); 00423 void pstate_change_list_write(const output::pointer &fp, const char *name, pstate_change_list_ty *value); 00424 void pstate_change_list_write_xml(const output::pointer &fp, const char *name, pstate_change_list_ty *value); 00425 #ifndef pstate_change_list_trace 00426 #ifdef DEBUG 00427 void pstate_change_list_trace_real(const char *name, const pstate_change_list_ty *value); 00428 #define pstate_change_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_change_list_trace_real(trace_stringize(x), x), 0))) 00429 #else 00430 #define pstate_change_list_trace(x) 00431 #endif 00432 #endif 00433 00434 #ifndef pstate_administrator_list_DEF 00435 #define pstate_administrator_list_DEF 00436 struct pstate_administrator_list_ty 00437 { 00438 size_t length; 00439 size_t maximum; 00440 string_ty **list; 00441 }; 00442 #endif // pstate_administrator_list_DEF 00443 00444 extern meta_type pstate_administrator_list_type; 00445 00446 pstate_administrator_list_ty *pstate_administrator_list_copy(pstate_administrator_list_ty *); 00447 pstate_administrator_list_ty *pstate_administrator_list_clone(pstate_administrator_list_ty *); 00448 void pstate_administrator_list_write(const output::pointer &fp, const char *name, pstate_administrator_list_ty *value); 00449 void pstate_administrator_list_write_xml(const output::pointer &fp, const char *name, pstate_administrator_list_ty *value); 00450 #ifndef pstate_administrator_list_trace 00451 #ifdef DEBUG 00452 void pstate_administrator_list_trace_real(const char *name, const pstate_administrator_list_ty *value); 00453 #define pstate_administrator_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_administrator_list_trace_real(trace_stringize(x), x), 0))) 00454 #else 00455 #define pstate_administrator_list_trace(x) 00456 #endif 00457 #endif 00458 00459 #ifndef pstate_developer_list_DEF 00460 #define pstate_developer_list_DEF 00461 struct pstate_developer_list_ty 00462 { 00463 size_t length; 00464 size_t maximum; 00465 string_ty **list; 00466 }; 00467 #endif // pstate_developer_list_DEF 00468 00469 extern meta_type pstate_developer_list_type; 00470 00471 pstate_developer_list_ty *pstate_developer_list_copy(pstate_developer_list_ty *); 00472 pstate_developer_list_ty *pstate_developer_list_clone(pstate_developer_list_ty *); 00473 void pstate_developer_list_write(const output::pointer &fp, const char *name, pstate_developer_list_ty *value); 00474 void pstate_developer_list_write_xml(const output::pointer &fp, const char *name, pstate_developer_list_ty *value); 00475 #ifndef pstate_developer_list_trace 00476 #ifdef DEBUG 00477 void pstate_developer_list_trace_real(const char *name, const pstate_developer_list_ty *value); 00478 #define pstate_developer_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_developer_list_trace_real(trace_stringize(x), x), 0))) 00479 #else 00480 #define pstate_developer_list_trace(x) 00481 #endif 00482 #endif 00483 00484 #ifndef pstate_reviewer_list_DEF 00485 #define pstate_reviewer_list_DEF 00486 struct pstate_reviewer_list_ty 00487 { 00488 size_t length; 00489 size_t maximum; 00490 string_ty **list; 00491 }; 00492 #endif // pstate_reviewer_list_DEF 00493 00494 extern meta_type pstate_reviewer_list_type; 00495 00496 pstate_reviewer_list_ty *pstate_reviewer_list_copy(pstate_reviewer_list_ty *); 00497 pstate_reviewer_list_ty *pstate_reviewer_list_clone(pstate_reviewer_list_ty *); 00498 void pstate_reviewer_list_write(const output::pointer &fp, const char *name, pstate_reviewer_list_ty *value); 00499 void pstate_reviewer_list_write_xml(const output::pointer &fp, const char *name, pstate_reviewer_list_ty *value); 00500 #ifndef pstate_reviewer_list_trace 00501 #ifdef DEBUG 00502 void pstate_reviewer_list_trace_real(const char *name, const pstate_reviewer_list_ty *value); 00503 #define pstate_reviewer_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_reviewer_list_trace_real(trace_stringize(x), x), 0))) 00504 #else 00505 #define pstate_reviewer_list_trace(x) 00506 #endif 00507 #endif 00508 00509 #ifndef pstate_integrator_list_DEF 00510 #define pstate_integrator_list_DEF 00511 struct pstate_integrator_list_ty 00512 { 00513 size_t length; 00514 size_t maximum; 00515 string_ty **list; 00516 }; 00517 #endif // pstate_integrator_list_DEF 00518 00519 extern meta_type pstate_integrator_list_type; 00520 00521 pstate_integrator_list_ty *pstate_integrator_list_copy(pstate_integrator_list_ty *); 00522 pstate_integrator_list_ty *pstate_integrator_list_clone(pstate_integrator_list_ty *); 00523 void pstate_integrator_list_write(const output::pointer &fp, const char *name, pstate_integrator_list_ty *value); 00524 void pstate_integrator_list_write_xml(const output::pointer &fp, const char *name, pstate_integrator_list_ty *value); 00525 #ifndef pstate_integrator_list_trace 00526 #ifdef DEBUG 00527 void pstate_integrator_list_trace_real(const char *name, const pstate_integrator_list_ty *value); 00528 #define pstate_integrator_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_integrator_list_trace_real(trace_stringize(x), x), 0))) 00529 #else 00530 #define pstate_integrator_list_trace(x) 00531 #endif 00532 #endif 00533 00534 #ifndef pstate_DEF 00535 #define pstate_DEF 00536 00537 #define pstate_next_test_number_mask ((unsigned long)1 << 0) 00538 #define pstate_umask_mask ((unsigned long)1 << 1) 00539 #define pstate_description_mask ((unsigned long)0) 00540 #define pstate_owner_name_mask ((unsigned long)0) 00541 #define pstate_group_name_mask ((unsigned long)0) 00542 #define pstate_developer_may_review_mask ((unsigned long)1 << 2) 00543 #define pstate_developer_may_integrate_mask ((unsigned long)1 << 3) 00544 #define pstate_reviewer_may_integrate_mask ((unsigned long)1 << 4) 00545 #define pstate_developers_may_create_changes_mask ((unsigned long)1 << 5) 00546 #define pstate_forced_develop_begin_notify_command_mask ((unsigned long)0) 00547 #define pstate_develop_end_notify_command_mask ((unsigned long)0) 00548 #define pstate_develop_end_undo_notify_command_mask ((unsigned long)0) 00549 #define pstate_review_pass_notify_command_mask ((unsigned long)0) 00550 #define pstate_review_pass_undo_notify_command_mask ((unsigned long)0) 00551 #define pstate_review_fail_notify_command_mask ((unsigned long)0) 00552 #define pstate_integrate_pass_notify_command_mask ((unsigned long)0) 00553 #define pstate_integrate_fail_notify_command_mask ((unsigned long)0) 00554 #define pstate_default_development_directory_mask ((unsigned long)0) 00555 #define pstate_default_test_exemption_mask ((unsigned long)1 << 6) 00556 #define pstate_copyright_years_mask ((unsigned long)0) 00557 #define pstate_next_change_number_mask ((unsigned long)1 << 7) 00558 #define pstate_next_delta_number_mask ((unsigned long)1 << 8) 00559 #define pstate_src_mask ((unsigned long)0) 00560 #define pstate_history_mask ((unsigned long)0) 00561 #define pstate_change_mask ((unsigned long)0) 00562 #define pstate_administrator_mask ((unsigned long)0) 00563 #define pstate_developer_mask ((unsigned long)0) 00564 #define pstate_reviewer_mask ((unsigned long)0) 00565 #define pstate_integrator_mask ((unsigned long)0) 00566 #define pstate_currently_integrating_change_mask ((unsigned long)1 << 9) 00567 #define pstate_version_major_mask ((unsigned long)1 << 10) 00568 #define pstate_version_minor_mask ((unsigned long)1 << 11) 00569 #define pstate_version_previous_mask ((unsigned long)0) 00570 00571 struct pstate_ty 00572 { 00573 long reference_count; 00574 unsigned long mask; 00575 string_ty *errpos; 00576 long next_test_number; 00577 long umask; 00578 string_ty *description; 00579 string_ty *owner_name; 00580 string_ty *group_name; 00581 bool developer_may_review; 00582 bool developer_may_integrate; 00583 bool reviewer_may_integrate; 00584 bool developers_may_create_changes; 00585 string_ty *forced_develop_begin_notify_command; 00586 string_ty *develop_end_notify_command; 00587 string_ty *develop_end_undo_notify_command; 00588 string_ty *review_pass_notify_command; 00589 string_ty *review_pass_undo_notify_command; 00590 string_ty *review_fail_notify_command; 00591 string_ty *integrate_pass_notify_command; 00592 string_ty *integrate_fail_notify_command; 00593 string_ty *default_development_directory; 00594 bool default_test_exemption; 00595 pstate_copyright_years_list_ty *copyright_years; 00596 long next_change_number; 00597 long next_delta_number; 00598 pstate_src_list_ty *src; 00599 pstate_history_list_ty *history; 00600 pstate_change_list_ty *change; 00601 pstate_administrator_list_ty *administrator; 00602 pstate_developer_list_ty *developer; 00603 pstate_reviewer_list_ty *reviewer; 00604 pstate_integrator_list_ty *integrator; 00605 long currently_integrating_change; 00606 long version_major; 00607 long version_minor; 00608 string_ty *version_previous; 00609 }; 00610 #endif // pstate_DEF 00611 00612 extern meta_type pstate_type; 00613 00614 void pstate_write(const output::pointer &fp, pstate_ty *value); 00615 void pstate_write_xml(const output::pointer &fp, pstate_ty *value); 00616 pstate_ty *pstate_copy(pstate_ty *); 00617 pstate_ty *pstate_clone(pstate_ty *); 00618 #ifndef pstate_trace 00619 #ifdef DEBUG 00620 void pstate_trace_real(const char *name, const pstate_ty *value); 00621 #define pstate_trace(x) ((void)(trace_pretest_ && (trace_where_, pstate_trace_real(trace_stringize(x), x), 0))) 00622 #else 00623 #define pstate_trace(x) 00624 #endif 00625 #endif 00626 00643 void pstate_write_file(string_ty *filename, pstate_ty *value, int comp); 00644 #include <common/nstring.h> 00645 00662 void pstate_write_file(const nstring &filnam, pstate_ty *value, bool comp); 00663 00680 pstate_ty *pstate_read_file(string_ty *filename); 00681 00698 pstate_ty *pstate_read_file(const nstring &filename); 00699 void pstate__rpt_init(void); 00700 00701 #endif // LIBAEGIS_PSTATE_FMTGEN_H
1.7.6.1