1
/* $Header: d:/cvsroot/tads/tads3/TCHOSTSI.H,v 1.2 1999/05/17 02:52:27 MJRoberts Exp $ */
4
* Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
6
* Please see the accompanying license file, LICENSE.TXT, for information
7
* on using and copying this software.
11
tchostsi.h - stdio implementation of host interface
17
04/22/99 MJRoberts - Creation
26
/* ------------------------------------------------------------------------ */
28
* stdio host interface
30
class CTcHostIfcStdio: public CTcHostIfc
35
/* by default, show progress messages */
36
show_progress_ = TRUE;
38
/* there's no status prefix string yet */
44
/* free our status prefix string */
45
lib_free_str(status_prefix_);
48
/* set the status message prefix string */
49
void set_status_prefix(const char *str)
51
/* delete any former prefix string */
52
lib_free_str(status_prefix_);
54
/* store a copy of the string */
55
status_prefix_ = lib_copy_str(str);
58
/* display information messages */
59
void v_print_msg(const char *msg, va_list args);
61
/* display a process step message */
62
void v_print_step(const char *msg, va_list args);
64
/* display error messages */
65
void v_print_err(const char *msg, va_list args);
67
/* turn status (step) messages on/off */
68
void set_show_progress(int flag) { show_progress_ = flag; }
72
* internal display routine - formats the message, converts it to
73
* the console character set and displays the result on the standard
76
void v_printf(const char *msg, va_list args);
78
/* flag: show progress (step) messages */
81
/* status prefix message */
85
#endif /* TCHOSTSI_H */