Aegis  4.25.D505
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/cstate.fmtgen.h
Go to the documentation of this file.
00001 //
00002 // This file is generated by fmtgen.
00003 //
00004 
00005 #ifndef LIBAEGIS_CSTATE_FMTGEN_H
00006 #define LIBAEGIS_CSTATE_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 cstate_architecture_list_DEF
00238 #define cstate_architecture_list_DEF
00239 struct cstate_architecture_list_ty
00240 {
00241     size_t length;
00242     size_t maximum;
00243     string_ty **list;
00244 };
00245 #endif // cstate_architecture_list_DEF
00246 
00247 extern meta_type cstate_architecture_list_type;
00248 
00249 cstate_architecture_list_ty *cstate_architecture_list_copy(cstate_architecture_list_ty *);
00250 cstate_architecture_list_ty *cstate_architecture_list_clone(cstate_architecture_list_ty *);
00251 void cstate_architecture_list_write(const output::pointer &fp, const char *name, cstate_architecture_list_ty *value);
00252 void cstate_architecture_list_write_xml(const output::pointer &fp, const char *name, cstate_architecture_list_ty *value);
00253 #ifndef cstate_architecture_list_trace
00254 #ifdef DEBUG
00255 void cstate_architecture_list_trace_real(const char *name, const cstate_architecture_list_ty *value);
00256 #define cstate_architecture_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_architecture_list_trace_real(trace_stringize(x), x), 0)))
00257 #else
00258 #define cstate_architecture_list_trace(x)
00259 #endif
00260 #endif
00261 
00262 #ifndef cstate_copyright_years_list_DEF
00263 #define cstate_copyright_years_list_DEF
00264 struct cstate_copyright_years_list_ty
00265 {
00266     size_t length;
00267     size_t maximum;
00268     long *list;
00269 };
00270 #endif // cstate_copyright_years_list_DEF
00271 
00272 extern meta_type cstate_copyright_years_list_type;
00273 
00274 cstate_copyright_years_list_ty *cstate_copyright_years_list_copy(cstate_copyright_years_list_ty *);
00275 cstate_copyright_years_list_ty *cstate_copyright_years_list_clone(cstate_copyright_years_list_ty *);
00276 void cstate_copyright_years_list_write(const output::pointer &fp, const char *name, cstate_copyright_years_list_ty *value);
00277 void cstate_copyright_years_list_write_xml(const output::pointer &fp, const char *name, cstate_copyright_years_list_ty *value);
00278 #ifndef cstate_copyright_years_list_trace
00279 #ifdef DEBUG
00280 void cstate_copyright_years_list_trace_real(const char *name, const cstate_copyright_years_list_ty *value);
00281 #define cstate_copyright_years_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_copyright_years_list_trace_real(trace_stringize(x), x), 0)))
00282 #else
00283 #define cstate_copyright_years_list_trace(x)
00284 #endif
00285 #endif
00286 
00287 #ifndef cstate_state_DEF
00288 #define cstate_state_DEF
00289 enum cstate_state_ty
00290 {
00291     cstate_state_awaiting_development,
00292     cstate_state_being_developed,
00293     cstate_state_awaiting_review,
00294     cstate_state_being_reviewed,
00295     cstate_state_awaiting_integration,
00296     cstate_state_being_integrated,
00297     cstate_state_completed
00298 };
00299 #define cstate_state_max 7
00300 #endif // cstate_state_DEF
00301 
00302 extern meta_type cstate_state_type;
00303 
00304 void cstate_state_write(const output::pointer &fp, const char *name, cstate_state_ty value, bool show);
00305 void cstate_state_write_xml(const output::pointer &fp, const char *name, cstate_state_ty value, bool show);
00306 const char *cstate_state_ename(cstate_state_ty);
00307 void cstate_state__rpt_init(void);
00308 #include <common/ac/time.h>
00309 
00310 #ifndef cstate_architecture_times_DEF
00311 #define cstate_architecture_times_DEF
00312 
00313 #define cstate_architecture_times_variant_mask  ((unsigned long)0)
00314 #define cstate_architecture_times_node_mask ((unsigned long)0)
00315 #define cstate_architecture_times_build_time_mask   ((unsigned long)1 << 0)
00316 #define cstate_architecture_times_test_time_mask    ((unsigned long)1 << 1)
00317 #define cstate_architecture_times_test_baseline_time_mask   ((unsigned long)1 << 2)
00318 #define cstate_architecture_times_regression_test_time_mask ((unsigned long)1 << 3)
00319 
00320 struct cstate_architecture_times_ty
00321 {
00322     long reference_count;
00323     unsigned long mask;
00324     string_ty *errpos;
00325     string_ty *variant;
00326     string_ty *node;
00327     time_t build_time;
00328     time_t test_time;
00329     time_t test_baseline_time;
00330     time_t regression_test_time;
00331 };
00332 #endif // cstate_architecture_times_DEF
00333 
00334 extern meta_type cstate_architecture_times_type;
00335 
00336 void cstate_architecture_times_write(const output::pointer &fp, const char *name, cstate_architecture_times_ty *value);
00337 void cstate_architecture_times_write_xml(const output::pointer &fp, const char *name, cstate_architecture_times_ty *value);
00338 cstate_architecture_times_ty *cstate_architecture_times_copy(cstate_architecture_times_ty *);
00339 cstate_architecture_times_ty *cstate_architecture_times_clone(cstate_architecture_times_ty *);
00340 #ifndef cstate_architecture_times_trace
00341 #ifdef DEBUG
00342 void cstate_architecture_times_trace_real(const char *name, const cstate_architecture_times_ty *value);
00343 #define cstate_architecture_times_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_architecture_times_trace_real(trace_stringize(x), x), 0)))
00344 #else
00345 #define cstate_architecture_times_trace(x)
00346 #endif
00347 #endif
00348 
00349 #ifndef cstate_architecture_times_list_DEF
00350 #define cstate_architecture_times_list_DEF
00351 struct cstate_architecture_times_list_ty
00352 {
00353     size_t length;
00354     size_t maximum;
00355     cstate_architecture_times_ty **list;
00356 };
00357 #endif // cstate_architecture_times_list_DEF
00358 
00359 extern meta_type cstate_architecture_times_list_type;
00360 
00361 cstate_architecture_times_list_ty *cstate_architecture_times_list_copy(cstate_architecture_times_list_ty *);
00362 cstate_architecture_times_list_ty *cstate_architecture_times_list_clone(cstate_architecture_times_list_ty *);
00363 void cstate_architecture_times_list_write(const output::pointer &fp, const char *name, cstate_architecture_times_list_ty *value);
00364 void cstate_architecture_times_list_write_xml(const output::pointer &fp, const char *name, cstate_architecture_times_list_ty *value);
00365 #ifndef cstate_architecture_times_list_trace
00366 #ifdef DEBUG
00367 void cstate_architecture_times_list_trace_real(const char *name, const cstate_architecture_times_list_ty *value);
00368 #define cstate_architecture_times_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_architecture_times_list_trace_real(trace_stringize(x), x), 0)))
00369 #else
00370 #define cstate_architecture_times_list_trace(x)
00371 #endif
00372 #endif
00373 
00374 #ifndef cstate_history_what_DEF
00375 #define cstate_history_what_DEF
00376 enum cstate_history_what_ty
00377 {
00378     cstate_history_what_new_change,
00379     cstate_history_what_develop_begin,
00380     cstate_history_what_develop_begin_undo,
00381     cstate_history_what_develop_end,
00382     cstate_history_what_develop_end_2ar,
00383     cstate_history_what_develop_end_2ai,
00384     cstate_history_what_develop_end_undo,
00385     cstate_history_what_review_begin,
00386     cstate_history_what_review_begin_undo,
00387     cstate_history_what_review_pass,
00388     cstate_history_what_review_pass_2ar,
00389     cstate_history_what_review_pass_2br,
00390     cstate_history_what_review_pass_undo,
00391     cstate_history_what_review_pass_undo_2ar,
00392     cstate_history_what_review_fail,
00393     cstate_history_what_integrate_begin,
00394     cstate_history_what_integrate_begin_undo,
00395     cstate_history_what_integrate_pass,
00396     cstate_history_what_integrate_fail
00397 };
00398 #define cstate_history_what_max 19
00399 #endif // cstate_history_what_DEF
00400 
00401 extern meta_type cstate_history_what_type;
00402 
00403 void cstate_history_what_write(const output::pointer &fp, const char *name, cstate_history_what_ty value, bool show);
00404 void cstate_history_what_write_xml(const output::pointer &fp, const char *name, cstate_history_what_ty value, bool show);
00405 const char *cstate_history_what_ename(cstate_history_what_ty);
00406 void cstate_history_what__rpt_init(void);
00407 
00408 #ifndef cstate_history_DEF
00409 #define cstate_history_DEF
00410 
00411 #define cstate_history_when_mask    ((unsigned long)1 << 0)
00412 #define cstate_history_what_mask    ((unsigned long)1 << 1)
00413 #define cstate_history_who_mask ((unsigned long)0)
00414 #define cstate_history_why_mask ((unsigned long)0)
00415 
00416 struct cstate_history_ty
00417 {
00418     long reference_count;
00419     unsigned long mask;
00420     string_ty *errpos;
00421     time_t when;
00422     cstate_history_what_ty what;
00423     string_ty *who;
00424     string_ty *why;
00425 };
00426 #endif // cstate_history_DEF
00427 
00428 extern meta_type cstate_history_type;
00429 
00430 void cstate_history_write(const output::pointer &fp, const char *name, cstate_history_ty *value);
00431 void cstate_history_write_xml(const output::pointer &fp, const char *name, cstate_history_ty *value);
00432 cstate_history_ty *cstate_history_copy(cstate_history_ty *);
00433 cstate_history_ty *cstate_history_clone(cstate_history_ty *);
00434 #ifndef cstate_history_trace
00435 #ifdef DEBUG
00436 void cstate_history_trace_real(const char *name, const cstate_history_ty *value);
00437 #define cstate_history_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_history_trace_real(trace_stringize(x), x), 0)))
00438 #else
00439 #define cstate_history_trace(x)
00440 #endif
00441 #endif
00442 
00443 #ifndef cstate_history_list_DEF
00444 #define cstate_history_list_DEF
00445 struct cstate_history_list_ty
00446 {
00447     size_t length;
00448     size_t maximum;
00449     cstate_history_ty **list;
00450 };
00451 #endif // cstate_history_list_DEF
00452 
00453 extern meta_type cstate_history_list_type;
00454 
00455 cstate_history_list_ty *cstate_history_list_copy(cstate_history_list_ty *);
00456 cstate_history_list_ty *cstate_history_list_clone(cstate_history_list_ty *);
00457 void cstate_history_list_write(const output::pointer &fp, const char *name, cstate_history_list_ty *value);
00458 void cstate_history_list_write_xml(const output::pointer &fp, const char *name, cstate_history_list_ty *value);
00459 #ifndef cstate_history_list_trace
00460 #ifdef DEBUG
00461 void cstate_history_list_trace_real(const char *name, const cstate_history_list_ty *value);
00462 #define cstate_history_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_history_list_trace_real(trace_stringize(x), x), 0)))
00463 #else
00464 #define cstate_history_list_trace(x)
00465 #endif
00466 #endif
00467 
00468 #ifndef cstate_branch_develop_end_action_DEF
00469 #define cstate_branch_develop_end_action_DEF
00470 enum cstate_branch_develop_end_action_ty
00471 {
00472     cstate_branch_develop_end_action_goto_being_reviewed,
00473     cstate_branch_develop_end_action_goto_awaiting_review,
00474     cstate_branch_develop_end_action_goto_awaiting_integration
00475 };
00476 #define cstate_branch_develop_end_action_max 3
00477 #endif // cstate_branch_develop_end_action_DEF
00478 
00479 extern meta_type cstate_branch_develop_end_action_type;
00480 
00481 void cstate_branch_develop_end_action_write(const output::pointer &fp, const char *name, cstate_branch_develop_end_action_ty value, bool show);
00482 void cstate_branch_develop_end_action_write_xml(const output::pointer &fp, const char *name, cstate_branch_develop_end_action_ty value, bool show);
00483 const char *cstate_branch_develop_end_action_ename(cstate_branch_develop_end_action_ty);
00484 void cstate_branch_develop_end_action__rpt_init(void);
00485 
00486 #ifndef cstate_branch_history_name_list_DEF
00487 #define cstate_branch_history_name_list_DEF
00488 struct cstate_branch_history_name_list_ty
00489 {
00490     size_t length;
00491     size_t maximum;
00492     string_ty **list;
00493 };
00494 #endif // cstate_branch_history_name_list_DEF
00495 
00496 extern meta_type cstate_branch_history_name_list_type;
00497 
00498 cstate_branch_history_name_list_ty *cstate_branch_history_name_list_copy(cstate_branch_history_name_list_ty *);
00499 cstate_branch_history_name_list_ty *cstate_branch_history_name_list_clone(cstate_branch_history_name_list_ty *);
00500 void cstate_branch_history_name_list_write(const output::pointer &fp, const char *name, cstate_branch_history_name_list_ty *value);
00501 void cstate_branch_history_name_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_name_list_ty *value);
00502 #ifndef cstate_branch_history_name_list_trace
00503 #ifdef DEBUG
00504 void cstate_branch_history_name_list_trace_real(const char *name, const cstate_branch_history_name_list_ty *value);
00505 #define cstate_branch_history_name_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_history_name_list_trace_real(trace_stringize(x), x), 0)))
00506 #else
00507 #define cstate_branch_history_name_list_trace(x)
00508 #endif
00509 #endif
00510 
00511 #ifndef cstate_branch_history_is_a_branch_DEF
00512 #define cstate_branch_history_is_a_branch_DEF
00513 enum cstate_branch_history_is_a_branch_ty
00514 {
00515     cstate_branch_history_is_a_branch_unknown,
00516     cstate_branch_history_is_a_branch_yes,
00517     cstate_branch_history_is_a_branch_no
00518 };
00519 #define cstate_branch_history_is_a_branch_max 3
00520 #endif // cstate_branch_history_is_a_branch_DEF
00521 
00522 extern meta_type cstate_branch_history_is_a_branch_type;
00523 
00524 void cstate_branch_history_is_a_branch_write(const output::pointer &fp, const char *name, cstate_branch_history_is_a_branch_ty value, bool show);
00525 void cstate_branch_history_is_a_branch_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_is_a_branch_ty value, bool show);
00526 const char *cstate_branch_history_is_a_branch_ename(cstate_branch_history_is_a_branch_ty);
00527 void cstate_branch_history_is_a_branch__rpt_init(void);
00528 
00529 #ifndef cstate_branch_history_DEF
00530 #define cstate_branch_history_DEF
00531 
00532 #define cstate_branch_history_delta_number_mask ((unsigned long)1 << 0)
00533 #define cstate_branch_history_change_number_mask    ((unsigned long)1 << 1)
00534 #define cstate_branch_history_name_mask ((unsigned long)0)
00535 #define cstate_branch_history_uuid_mask ((unsigned long)0)
00536 #define cstate_branch_history_when_mask ((unsigned long)1 << 2)
00537 #define cstate_branch_history_is_a_branch_mask  ((unsigned long)1 << 3)
00538 
00539 struct cstate_branch_history_ty
00540 {
00541     long reference_count;
00542     unsigned long mask;
00543     string_ty *errpos;
00544     long delta_number;
00545     long change_number;
00546     cstate_branch_history_name_list_ty *name;
00547     string_ty *uuid;
00548     time_t when;
00549     cstate_branch_history_is_a_branch_ty is_a_branch;
00550 };
00551 #endif // cstate_branch_history_DEF
00552 
00553 extern meta_type cstate_branch_history_type;
00554 
00555 void cstate_branch_history_write(const output::pointer &fp, const char *name, cstate_branch_history_ty *value);
00556 void cstate_branch_history_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_ty *value);
00557 cstate_branch_history_ty *cstate_branch_history_copy(cstate_branch_history_ty *);
00558 cstate_branch_history_ty *cstate_branch_history_clone(cstate_branch_history_ty *);
00559 #ifndef cstate_branch_history_trace
00560 #ifdef DEBUG
00561 void cstate_branch_history_trace_real(const char *name, const cstate_branch_history_ty *value);
00562 #define cstate_branch_history_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_history_trace_real(trace_stringize(x), x), 0)))
00563 #else
00564 #define cstate_branch_history_trace(x)
00565 #endif
00566 #endif
00567 
00568 #ifndef cstate_branch_history_list_DEF
00569 #define cstate_branch_history_list_DEF
00570 struct cstate_branch_history_list_ty
00571 {
00572     size_t length;
00573     size_t maximum;
00574     cstate_branch_history_ty **list;
00575 };
00576 #endif // cstate_branch_history_list_DEF
00577 
00578 extern meta_type cstate_branch_history_list_type;
00579 
00580 cstate_branch_history_list_ty *cstate_branch_history_list_copy(cstate_branch_history_list_ty *);
00581 cstate_branch_history_list_ty *cstate_branch_history_list_clone(cstate_branch_history_list_ty *);
00582 void cstate_branch_history_list_write(const output::pointer &fp, const char *name, cstate_branch_history_list_ty *value);
00583 void cstate_branch_history_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_list_ty *value);
00584 #ifndef cstate_branch_history_list_trace
00585 #ifdef DEBUG
00586 void cstate_branch_history_list_trace_real(const char *name, const cstate_branch_history_list_ty *value);
00587 #define cstate_branch_history_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_history_list_trace_real(trace_stringize(x), x), 0)))
00588 #else
00589 #define cstate_branch_history_list_trace(x)
00590 #endif
00591 #endif
00592 
00593 #ifndef cstate_branch_change_list_DEF
00594 #define cstate_branch_change_list_DEF
00595 struct cstate_branch_change_list_ty
00596 {
00597     size_t length;
00598     size_t maximum;
00599     long *list;
00600 };
00601 #endif // cstate_branch_change_list_DEF
00602 
00603 extern meta_type cstate_branch_change_list_type;
00604 
00605 cstate_branch_change_list_ty *cstate_branch_change_list_copy(cstate_branch_change_list_ty *);
00606 cstate_branch_change_list_ty *cstate_branch_change_list_clone(cstate_branch_change_list_ty *);
00607 void cstate_branch_change_list_write(const output::pointer &fp, const char *name, cstate_branch_change_list_ty *value);
00608 void cstate_branch_change_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_change_list_ty *value);
00609 #ifndef cstate_branch_change_list_trace
00610 #ifdef DEBUG
00611 void cstate_branch_change_list_trace_real(const char *name, const cstate_branch_change_list_ty *value);
00612 #define cstate_branch_change_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_change_list_trace_real(trace_stringize(x), x), 0)))
00613 #else
00614 #define cstate_branch_change_list_trace(x)
00615 #endif
00616 #endif
00617 
00618 #ifndef cstate_branch_sub_branch_list_DEF
00619 #define cstate_branch_sub_branch_list_DEF
00620 struct cstate_branch_sub_branch_list_ty
00621 {
00622     size_t length;
00623     size_t maximum;
00624     long *list;
00625 };
00626 #endif // cstate_branch_sub_branch_list_DEF
00627 
00628 extern meta_type cstate_branch_sub_branch_list_type;
00629 
00630 cstate_branch_sub_branch_list_ty *cstate_branch_sub_branch_list_copy(cstate_branch_sub_branch_list_ty *);
00631 cstate_branch_sub_branch_list_ty *cstate_branch_sub_branch_list_clone(cstate_branch_sub_branch_list_ty *);
00632 void cstate_branch_sub_branch_list_write(const output::pointer &fp, const char *name, cstate_branch_sub_branch_list_ty *value);
00633 void cstate_branch_sub_branch_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_sub_branch_list_ty *value);
00634 #ifndef cstate_branch_sub_branch_list_trace
00635 #ifdef DEBUG
00636 void cstate_branch_sub_branch_list_trace_real(const char *name, const cstate_branch_sub_branch_list_ty *value);
00637 #define cstate_branch_sub_branch_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_sub_branch_list_trace_real(trace_stringize(x), x), 0)))
00638 #else
00639 #define cstate_branch_sub_branch_list_trace(x)
00640 #endif
00641 #endif
00642 
00643 #ifndef cstate_branch_administrator_list_DEF
00644 #define cstate_branch_administrator_list_DEF
00645 struct cstate_branch_administrator_list_ty
00646 {
00647     size_t length;
00648     size_t maximum;
00649     string_ty **list;
00650 };
00651 #endif // cstate_branch_administrator_list_DEF
00652 
00653 extern meta_type cstate_branch_administrator_list_type;
00654 
00655 cstate_branch_administrator_list_ty *cstate_branch_administrator_list_copy(cstate_branch_administrator_list_ty *);
00656 cstate_branch_administrator_list_ty *cstate_branch_administrator_list_clone(cstate_branch_administrator_list_ty *);
00657 void cstate_branch_administrator_list_write(const output::pointer &fp, const char *name, cstate_branch_administrator_list_ty *value);
00658 void cstate_branch_administrator_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_administrator_list_ty *value);
00659 #ifndef cstate_branch_administrator_list_trace
00660 #ifdef DEBUG
00661 void cstate_branch_administrator_list_trace_real(const char *name, const cstate_branch_administrator_list_ty *value);
00662 #define cstate_branch_administrator_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_administrator_list_trace_real(trace_stringize(x), x), 0)))
00663 #else
00664 #define cstate_branch_administrator_list_trace(x)
00665 #endif
00666 #endif
00667 
00668 #ifndef cstate_branch_developer_list_DEF
00669 #define cstate_branch_developer_list_DEF
00670 struct cstate_branch_developer_list_ty
00671 {
00672     size_t length;
00673     size_t maximum;
00674     string_ty **list;
00675 };
00676 #endif // cstate_branch_developer_list_DEF
00677 
00678 extern meta_type cstate_branch_developer_list_type;
00679 
00680 cstate_branch_developer_list_ty *cstate_branch_developer_list_copy(cstate_branch_developer_list_ty *);
00681 cstate_branch_developer_list_ty *cstate_branch_developer_list_clone(cstate_branch_developer_list_ty *);
00682 void cstate_branch_developer_list_write(const output::pointer &fp, const char *name, cstate_branch_developer_list_ty *value);
00683 void cstate_branch_developer_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_developer_list_ty *value);
00684 #ifndef cstate_branch_developer_list_trace
00685 #ifdef DEBUG
00686 void cstate_branch_developer_list_trace_real(const char *name, const cstate_branch_developer_list_ty *value);
00687 #define cstate_branch_developer_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_developer_list_trace_real(trace_stringize(x), x), 0)))
00688 #else
00689 #define cstate_branch_developer_list_trace(x)
00690 #endif
00691 #endif
00692 
00693 #ifndef cstate_branch_reviewer_list_DEF
00694 #define cstate_branch_reviewer_list_DEF
00695 struct cstate_branch_reviewer_list_ty
00696 {
00697     size_t length;
00698     size_t maximum;
00699     string_ty **list;
00700 };
00701 #endif // cstate_branch_reviewer_list_DEF
00702 
00703 extern meta_type cstate_branch_reviewer_list_type;
00704 
00705 cstate_branch_reviewer_list_ty *cstate_branch_reviewer_list_copy(cstate_branch_reviewer_list_ty *);
00706 cstate_branch_reviewer_list_ty *cstate_branch_reviewer_list_clone(cstate_branch_reviewer_list_ty *);
00707 void cstate_branch_reviewer_list_write(const output::pointer &fp, const char *name, cstate_branch_reviewer_list_ty *value);
00708 void cstate_branch_reviewer_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_reviewer_list_ty *value);
00709 #ifndef cstate_branch_reviewer_list_trace
00710 #ifdef DEBUG
00711 void cstate_branch_reviewer_list_trace_real(const char *name, const cstate_branch_reviewer_list_ty *value);
00712 #define cstate_branch_reviewer_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_reviewer_list_trace_real(trace_stringize(x), x), 0)))
00713 #else
00714 #define cstate_branch_reviewer_list_trace(x)
00715 #endif
00716 #endif
00717 
00718 #ifndef cstate_branch_integrator_list_DEF
00719 #define cstate_branch_integrator_list_DEF
00720 struct cstate_branch_integrator_list_ty
00721 {
00722     size_t length;
00723     size_t maximum;
00724     string_ty **list;
00725 };
00726 #endif // cstate_branch_integrator_list_DEF
00727 
00728 extern meta_type cstate_branch_integrator_list_type;
00729 
00730 cstate_branch_integrator_list_ty *cstate_branch_integrator_list_copy(cstate_branch_integrator_list_ty *);
00731 cstate_branch_integrator_list_ty *cstate_branch_integrator_list_clone(cstate_branch_integrator_list_ty *);
00732 void cstate_branch_integrator_list_write(const output::pointer &fp, const char *name, cstate_branch_integrator_list_ty *value);
00733 void cstate_branch_integrator_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_integrator_list_ty *value);
00734 #ifndef cstate_branch_integrator_list_trace
00735 #ifdef DEBUG
00736 void cstate_branch_integrator_list_trace_real(const char *name, const cstate_branch_integrator_list_ty *value);
00737 #define cstate_branch_integrator_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_integrator_list_trace_real(trace_stringize(x), x), 0)))
00738 #else
00739 #define cstate_branch_integrator_list_trace(x)
00740 #endif
00741 #endif
00742 
00743 #ifndef cstate_branch_DEF
00744 #define cstate_branch_DEF
00745 
00746 #define cstate_branch_umask_mask    ((unsigned long)1 << 0)
00747 #define cstate_branch_developer_may_review_mask ((unsigned long)1 << 1)
00748 #define cstate_branch_developer_may_integrate_mask  ((unsigned long)1 << 2)
00749 #define cstate_branch_reviewer_may_integrate_mask   ((unsigned long)1 << 3)
00750 #define cstate_branch_developers_may_create_changes_mask    ((unsigned long)1 << 4)
00751 #define cstate_branch_forced_develop_begin_notify_command_mask  ((unsigned long)0)
00752 #define cstate_branch_develop_end_notify_command_mask   ((unsigned long)0)
00753 #define cstate_branch_develop_end_undo_notify_command_mask  ((unsigned long)0)
00754 #define cstate_branch_review_begin_notify_command_mask  ((unsigned long)0)
00755 #define cstate_branch_review_begin_undo_notify_command_mask ((unsigned long)0)
00756 #define cstate_branch_review_pass_notify_command_mask   ((unsigned long)0)
00757 #define cstate_branch_review_pass_undo_notify_command_mask  ((unsigned long)0)
00758 #define cstate_branch_review_fail_notify_command_mask   ((unsigned long)0)
00759 #define cstate_branch_integrate_pass_notify_command_mask    ((unsigned long)0)
00760 #define cstate_branch_integrate_fail_notify_command_mask    ((unsigned long)0)
00761 #define cstate_branch_default_test_exemption_mask   ((unsigned long)1 << 5)
00762 #define cstate_branch_default_test_regression_exemption_mask    ((unsigned long)1 << 6)
00763 #define cstate_branch_skip_unlucky_mask ((unsigned long)1 << 7)
00764 #define cstate_branch_compress_database_mask    ((unsigned long)1 << 8)
00765 #define cstate_branch_develop_end_action_mask   ((unsigned long)1 << 9)
00766 #define cstate_branch_history_mask  ((unsigned long)0)
00767 #define cstate_branch_change_mask   ((unsigned long)0)
00768 #define cstate_branch_sub_branch_mask   ((unsigned long)0)
00769 #define cstate_branch_administrator_mask    ((unsigned long)0)
00770 #define cstate_branch_developer_mask    ((unsigned long)0)
00771 #define cstate_branch_reviewer_mask ((unsigned long)0)
00772 #define cstate_branch_integrator_mask   ((unsigned long)0)
00773 #define cstate_branch_currently_integrating_change_mask ((unsigned long)1 << 10)
00774 #define cstate_branch_default_development_directory_mask    ((unsigned long)0)
00775 #define cstate_branch_minimum_change_number_mask    ((unsigned long)1 << 11)
00776 #define cstate_branch_reuse_change_numbers_mask ((unsigned long)1 << 12)
00777 #define cstate_branch_minimum_branch_number_mask    ((unsigned long)1 << 13)
00778 #define cstate_branch_protect_development_directory_mask    ((unsigned long)1 << 14)
00779 
00780 struct cstate_branch_ty
00781 {
00782     long reference_count;
00783     unsigned long mask;
00784     string_ty *errpos;
00785     long umask;
00786     bool developer_may_review;
00787     bool developer_may_integrate;
00788     bool reviewer_may_integrate;
00789     bool developers_may_create_changes;
00790     string_ty *forced_develop_begin_notify_command;
00791     string_ty *develop_end_notify_command;
00792     string_ty *develop_end_undo_notify_command;
00793     string_ty *review_begin_notify_command;
00794     string_ty *review_begin_undo_notify_command;
00795     string_ty *review_pass_notify_command;
00796     string_ty *review_pass_undo_notify_command;
00797     string_ty *review_fail_notify_command;
00798     string_ty *integrate_pass_notify_command;
00799     string_ty *integrate_fail_notify_command;
00800     bool default_test_exemption;
00801     bool default_test_regression_exemption;
00802     bool skip_unlucky;
00803     bool compress_database;
00804     cstate_branch_develop_end_action_ty develop_end_action;
00805     cstate_branch_history_list_ty *history;
00806     cstate_branch_change_list_ty *change;
00807     cstate_branch_sub_branch_list_ty *sub_branch;
00808     cstate_branch_administrator_list_ty *administrator;
00809     cstate_branch_developer_list_ty *developer;
00810     cstate_branch_reviewer_list_ty *reviewer;
00811     cstate_branch_integrator_list_ty *integrator;
00812     long currently_integrating_change;
00813     string_ty *default_development_directory;
00814     long minimum_change_number;
00815     bool reuse_change_numbers;
00816     long minimum_branch_number;
00817     bool protect_development_directory;
00818 };
00819 #endif // cstate_branch_DEF
00820 
00821 extern meta_type cstate_branch_type;
00822 
00823 void cstate_branch_write(const output::pointer &fp, const char *name, cstate_branch_ty *value);
00824 void cstate_branch_write_xml(const output::pointer &fp, const char *name, cstate_branch_ty *value);
00825 cstate_branch_ty *cstate_branch_copy(cstate_branch_ty *);
00826 cstate_branch_ty *cstate_branch_clone(cstate_branch_ty *);
00827 #ifndef cstate_branch_trace
00828 #ifdef DEBUG
00829 void cstate_branch_trace_real(const char *name, const cstate_branch_ty *value);
00830 #define cstate_branch_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_trace_real(trace_stringize(x), x), 0)))
00831 #else
00832 #define cstate_branch_trace(x)
00833 #endif
00834 #endif
00835 
00836 #ifndef cstate_src_DEF
00837 #define cstate_src_DEF
00838 
00839 #define cstate_src_file_name_mask   ((unsigned long)0)
00840 #define cstate_src_uuid_mask    ((unsigned long)0)
00841 #define cstate_src_action_mask  ((unsigned long)1 << 0)
00842 #define cstate_src_edit_number_mask ((unsigned long)0)
00843 #define cstate_src_usage_mask   ((unsigned long)1 << 1)
00844 #define cstate_src_diff_time_mask   ((unsigned long)1 << 2)
00845 #define cstate_src_diff_file_time_mask  ((unsigned long)1 << 3)
00846 #define cstate_src_move_mask    ((unsigned long)0)
00847 #define cstate_src_executable_mask  ((unsigned long)1 << 4)
00848 #define cstate_src_attribute_mask   ((unsigned long)0)
00849 
00850 struct cstate_src_ty
00851 {
00852     long reference_count;
00853     unsigned long mask;
00854     string_ty *errpos;
00855     string_ty *file_name;
00856     string_ty *uuid;
00857     file_action_ty action;
00858     string_ty *edit_number;
00859     file_usage_ty usage;
00860     time_t diff_time;
00861     time_t diff_file_time;
00862     string_ty *move;
00863     bool executable;
00864     attributes_list_ty *attribute;
00865 };
00866 #endif // cstate_src_DEF
00867 
00868 extern meta_type cstate_src_type;
00869 
00870 void cstate_src_write(const output::pointer &fp, const char *name, cstate_src_ty *value);
00871 void cstate_src_write_xml(const output::pointer &fp, const char *name, cstate_src_ty *value);
00872 cstate_src_ty *cstate_src_copy(cstate_src_ty *);
00873 cstate_src_ty *cstate_src_clone(cstate_src_ty *);
00874 #ifndef cstate_src_trace
00875 #ifdef DEBUG
00876 void cstate_src_trace_real(const char *name, const cstate_src_ty *value);
00877 #define cstate_src_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_src_trace_real(trace_stringize(x), x), 0)))
00878 #else
00879 #define cstate_src_trace(x)
00880 #endif
00881 #endif
00882 
00883 #ifndef cstate_src_list_DEF
00884 #define cstate_src_list_DEF
00885 struct cstate_src_list_ty
00886 {
00887     size_t length;
00888     size_t maximum;
00889     cstate_src_ty **list;
00890 };
00891 #endif // cstate_src_list_DEF
00892 
00893 extern meta_type cstate_src_list_type;
00894 
00895 cstate_src_list_ty *cstate_src_list_copy(cstate_src_list_ty *);
00896 cstate_src_list_ty *cstate_src_list_clone(cstate_src_list_ty *);
00897 void cstate_src_list_write(const output::pointer &fp, const char *name, cstate_src_list_ty *value);
00898 void cstate_src_list_write_xml(const output::pointer &fp, const char *name, cstate_src_list_ty *value);
00899 #ifndef cstate_src_list_trace
00900 #ifdef DEBUG
00901 void cstate_src_list_trace_real(const char *name, const cstate_src_list_ty *value);
00902 #define cstate_src_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_src_list_trace_real(trace_stringize(x), x), 0)))
00903 #else
00904 #define cstate_src_list_trace(x)
00905 #endif
00906 #endif
00907 
00908 #ifndef cstate_DEF
00909 #define cstate_DEF
00910 
00911 #define cstate_brief_description_mask   ((unsigned long)0)
00912 #define cstate_description_mask ((unsigned long)0)
00913 #define cstate_cause_mask   ((unsigned long)1 << 0)
00914 #define cstate_test_exempt_mask ((unsigned long)1 << 1)
00915 #define cstate_test_baseline_exempt_mask    ((unsigned long)1 << 2)
00916 #define cstate_regression_test_exempt_mask  ((unsigned long)1 << 3)
00917 #define cstate_architecture_mask    ((unsigned long)0)
00918 #define cstate_copyright_years_mask ((unsigned long)0)
00919 #define cstate_version_previous_mask    ((unsigned long)0)
00920 #define cstate_attribute_mask   ((unsigned long)0)
00921 #define cstate_state_mask   ((unsigned long)1 << 4)
00922 #define cstate_given_test_exemption_mask    ((unsigned long)1 << 5)
00923 #define cstate_given_regression_test_exemption_mask ((unsigned long)1 << 6)
00924 #define cstate_delta_number_mask    ((unsigned long)1 << 7)
00925 #define cstate_delta_uuid_mask  ((unsigned long)0)
00926 #define cstate_minimum_integration_mask ((unsigned long)1 << 8)
00927 #define cstate_project_file_command_sync_mask   ((unsigned long)1 << 9)
00928 #define cstate_build_time_mask  ((unsigned long)1 << 10)
00929 #define cstate_test_time_mask   ((unsigned long)1 << 11)
00930 #define cstate_test_baseline_time_mask  ((unsigned long)1 << 12)
00931 #define cstate_regression_test_time_mask    ((unsigned long)1 << 13)
00932 #define cstate_architecture_times_mask  ((unsigned long)0)
00933 #define cstate_development_directory_mask   ((unsigned long)0)
00934 #define cstate_integration_directory_mask   ((unsigned long)0)
00935 #define cstate_history_mask ((unsigned long)0)
00936 #define cstate_uuid_mask    ((unsigned long)0)
00937 #define cstate_branch_mask  ((unsigned long)0)
00938 #define cstate_src_mask ((unsigned long)0)
00939 
00940 struct cstate_ty
00941 {
00942     long reference_count;
00943     unsigned long mask;
00944     string_ty *errpos;
00945     string_ty *brief_description;
00946     string_ty *description;
00947     change_cause_ty cause;
00948     bool test_exempt;
00949     bool test_baseline_exempt;
00950     bool regression_test_exempt;
00951     cstate_architecture_list_ty *architecture;
00952     cstate_copyright_years_list_ty *copyright_years;
00953     string_ty *version_previous;
00954     attributes_list_ty *attribute;
00955     cstate_state_ty state;
00956     bool given_test_exemption;
00957     bool given_regression_test_exemption;
00958     long delta_number;
00959     string_ty *delta_uuid;
00960     bool minimum_integration;
00961     long project_file_command_sync;
00962     time_t build_time;
00963     time_t test_time;
00964     time_t test_baseline_time;
00965     time_t regression_test_time;
00966     cstate_architecture_times_list_ty *architecture_times;
00967     string_ty *development_directory;
00968     string_ty *integration_directory;
00969     cstate_history_list_ty *history;
00970     string_ty *uuid;
00971     cstate_branch_ty *branch;
00972     cstate_src_list_ty *src;
00973 };
00974 #endif // cstate_DEF
00975 
00976 extern meta_type cstate_type;
00977 
00978 void cstate_write(const output::pointer &fp, cstate_ty *value);
00979 void cstate_write_xml(const output::pointer &fp, cstate_ty *value);
00980 cstate_ty *cstate_copy(cstate_ty *);
00981 cstate_ty *cstate_clone(cstate_ty *);
00982 #ifndef cstate_trace
00983 #ifdef DEBUG
00984 void cstate_trace_real(const char *name, const cstate_ty *value);
00985 #define cstate_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_trace_real(trace_stringize(x), x), 0)))
00986 #else
00987 #define cstate_trace(x)
00988 #endif
00989 #endif
00990 
01007 void cstate_write_file(string_ty *filename, cstate_ty *value, int comp);
01008 #include <common/nstring.h>
01009 
01026 void cstate_write_file(const nstring &filnam, cstate_ty *value, bool comp);
01027 
01044 cstate_ty *cstate_read_file(string_ty *filename);
01045 
01062 cstate_ty *cstate_read_file(const nstring &filename);
01063 void cstate__rpt_init(void);
01064 
01065 #endif // LIBAEGIS_CSTATE_FMTGEN_H