1 #ifndef VIENNA_RNA_PACKAGE_CHAR_STREAM_H
2 #define VIENNA_RNA_PACKAGE_CHAR_STREAM_H
20 typedef struct vrna_cstr_s *vrna_cstr_t;
93 vrna_cstr_string(vrna_cstr_t buf);
97 vrna_cstr_vprintf(vrna_cstr_t buf,
103 vrna_cstr_printf(vrna_cstr_t buf,
109 vrna_cstr_message_info(vrna_cstr_t buf,
115 vrna_cstr_message_vinfo(vrna_cstr_t buf,
121 vrna_cstr_message_warning(
struct vrna_cstr_s *buf,
127 vrna_cstr_message_vwarning(
struct vrna_cstr_s *buf,
133 vrna_cstr_print_fasta_header(vrna_cstr_t buf,
138 vrna_cstr_printf_structure(
struct vrna_cstr_s *buf,
139 const char *structure,
145 vrna_cstr_vprintf_structure(
struct vrna_cstr_s *buf,
146 const char *structure,
152 vrna_cstr_printf_comment(
struct vrna_cstr_s *buf,
158 vrna_cstr_vprintf_comment(
struct vrna_cstr_s *buf,
164 vrna_cstr_printf_thead(
struct vrna_cstr_s *buf,
170 vrna_cstr_vprintf_thead(
struct vrna_cstr_s *buf,
176 vrna_cstr_printf_tbody(
struct vrna_cstr_s *buf,
182 vrna_cstr_vprintf_tbody(
struct vrna_cstr_s *buf,
188 vrna_cstr_print_eval_sd_corr(
struct vrna_cstr_s *buf);
192 vrna_cstr_print_eval_ext_loop(
struct vrna_cstr_s *buf,
197 vrna_cstr_print_eval_hp_loop(
struct vrna_cstr_s *buf,
206 vrna_cstr_print_eval_hp_loop_revert(
struct vrna_cstr_s *buf,
215 vrna_cstr_print_eval_int_loop(
struct vrna_cstr_s *buf,
228 vrna_cstr_print_eval_int_loop_revert(
struct vrna_cstr_s *buf,
241 vrna_cstr_print_eval_mb_loop(
struct vrna_cstr_s *buf,
250 vrna_cstr_print_eval_mb_loop_revert(
struct vrna_cstr_s *buf,
259 vrna_cstr_print_eval_gquad(
struct vrna_cstr_s *buf,
void vrna_cstr_close(vrna_cstr_t buf)
Free the memory occupied by a dynamic char * stream and close the output stream.
void vrna_cstr_free(vrna_cstr_t buf)
Free the memory occupied by a dynamic char * stream data structure.
void vrna_cstr_fflush(struct vrna_cstr_s *buf)
Flush the dynamic char * output stream.
void vrna_cstr_discard(struct vrna_cstr_s *buf)
Discard the current content of the dynamic char * stream data structure.
vrna_cstr_t vrna_cstr(size_t size, FILE *output)
Create a dynamic char * stream data structure.