// // This file is generated by fmtgen from "libaegis/tstrslt.def". // If you want to change the contents of this file // you need to edit libaegis/tstrslt.def // or you need to enhance fmtgen. // #ifndef LIBAEGIS_TSTRSLT_H #define LIBAEGIS_TSTRSLT_H #include #include #include #include #include class nstring; // forward #ifndef tstrslt_test_result_DEF #define tstrslt_test_result_DEF #define tstrslt_test_result_file_name_mask ((unsigned long)0) #define tstrslt_test_result_exit_status_mask ((unsigned long)1 << 0) #define tstrslt_test_result_architecture_mask ((unsigned long)0) struct tstrslt_test_result_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *file_name; long exit_status; string_ty *architecture; }; #endif // tstrslt_test_result_DEF extern meta_type tstrslt_test_result_type; void tstrslt_test_result_write(const output::pointer &fp, const char *name, tstrslt_test_result_ty *value); void tstrslt_test_result_write_xml(const output::pointer &fp, const char *name, tstrslt_test_result_ty *value); tstrslt_test_result_ty *tstrslt_test_result_copy(tstrslt_test_result_ty *); tstrslt_test_result_ty *tstrslt_test_result_clone(tstrslt_test_result_ty *); #ifdef DEBUG void tstrslt_test_result_trace_real(const char *name, const tstrslt_test_result_ty *value); #define tstrslt_test_result_trace(x) ((void)(trace_pretest_ && (trace_where_, tstrslt_test_result_trace_real(trace_stringize(x), x), 0))) #else #define tstrslt_test_result_trace(x) #endif #ifndef tstrslt_test_result_list_DEF #define tstrslt_test_result_list_DEF struct tstrslt_test_result_list_ty { size_t length; size_t maximum; tstrslt_test_result_ty **list; }; #endif // tstrslt_test_result_list_DEF extern meta_type tstrslt_test_result_list_type; tstrslt_test_result_list_ty *tstrslt_test_result_list_copy(tstrslt_test_result_list_ty *); tstrslt_test_result_list_ty *tstrslt_test_result_list_clone(tstrslt_test_result_list_ty *); void tstrslt_test_result_list_write(const output::pointer &fp, const char *name, tstrslt_test_result_list_ty *value); void tstrslt_test_result_list_write_xml(const output::pointer &fp, const char *name, tstrslt_test_result_list_ty *value); #ifdef DEBUG void tstrslt_test_result_list_trace_real(const char *name, const tstrslt_test_result_list_ty *value); #define tstrslt_test_result_list_trace(x) ((void)(trace_pretest_ && (trace_where_, tstrslt_test_result_list_trace_real(trace_stringize(x), x), 0))) #else #define tstrslt_test_result_list_trace(x) #endif #ifndef tstrslt_DEF #define tstrslt_DEF #define tstrslt_test_result_mask ((unsigned long)0) struct tstrslt_ty { long reference_count; unsigned long mask; string_ty *errpos; tstrslt_test_result_list_ty *test_result; }; #endif // tstrslt_DEF extern meta_type tstrslt_type; void tstrslt_write(const output::pointer &fp, tstrslt_ty *value); void tstrslt_write_xml(const output::pointer &fp, tstrslt_ty *value); tstrslt_ty *tstrslt_copy(tstrslt_ty *); tstrslt_ty *tstrslt_clone(tstrslt_ty *); #ifdef DEBUG void tstrslt_trace_real(const char *name, const tstrslt_ty *value); #define tstrslt_trace(x) ((void)(trace_pretest_ && (trace_where_, tstrslt_trace_real(trace_stringize(x), x), 0))) #else #define tstrslt_trace(x) #endif /** * The tstrslt_write_file function is used to * write tstrslt meta data to the named file. * * @param filename * The name of the file to be written. * @param value * The value of the meta-data to be written. * @param comp * true (non-zero) if data should be compressed. * @note * If any errors are encountered, this * function will not return. All errors * will print a fatal error message, and * exit with an exit status of 1. */ void tstrslt_write_file(string_ty *filename, tstrslt_ty *value, int comp); /** * The tstrslt_write_file function is used to * write tstrslt meta data to the named file. * * @param filnam * The name of the file to be written. * @param value * The value of the meta-data to be written. * @param comp * true if data should be compressed. * @note * If any errors are encountered, this * function will not return. All errors * will print a fatal error message, and * exit with an exit status of 1. */ void tstrslt_write_file(const nstring &filnam, tstrslt_ty *value, bool comp); /** * The tstrslt_read_file function is used to * read tstrslt meta data from the named file. * * @param filename * The name of the file to be read. * @returns * a pointer to a dynamically allocated * value read from the file. * @note * If any errors are encountered, this * function will not return. All errors * (including syntax errors) will print a * fatal error message, and exit with an * exit status of 1. */ tstrslt_ty *tstrslt_read_file(string_ty *filename); /** * The tstrslt_read_file function is used to * read tstrslt meta data from the named file. * * @param filename * The name of the file to be read. * @returns * a pointer to a dynamically allocated * value read from the file. * @note * If any errors are encountered, this * function will not return. All errors * (including syntax errors) will print a * fatal error message, and exit with an * exit status of 1. */ tstrslt_ty *tstrslt_read_file(const nstring &filename); void tstrslt__rpt_init(void); #endif // LIBAEGIS_TSTRSLT_H