28 #ifndef _util_misc_formio_h
29 #define _util_misc_formio_h
40 static char *default_basename_;
42 static int xalloc_inited_;
44 static long indent_size_;
45 static long skip_indent_;
47 static long initialized_;
48 static int node_to_print_;
54 static std::ios& indent(std::ios&o);
55 static std::ios& decindent(std::ios&o);
56 static std::ios& incindent(std::ios&o);
57 static std::ios& skipnextindent(std::ios&o);
59 static void setverbose(std::ios&o,
long v);
60 static long getverbose(std::ios&o);
61 static void setindent(std::ios&o,
long column);
62 static long getindent(std::ios&o);
63 static int set_printnode(
int);
64 static int get_printnode() {
return node_to_print_; }
65 static void set_debug(
int);
66 static int get_debug() {
return debug_; }
67 static void init_mp(
int me);
68 static int get_node() {
return me_; }
70 static void set_default_basename(
const char *);
71 static const char *default_basename();
72 static char *fileext_to_filename(
const char *extension);
74 static void init_ostream(std::ostream &);
76 static std::ostream& license(std::ostream&);
77 static std::ostream& warranty(std::ostream&);
78 static std::ostream& copyright(std::ostream&);
81 std::ios& indent(std::ios&);
83 std::ios& decindent(std::ios&);
85 std::ios& incindent(std::ios&);
87 std::ios& skipnextindent(std::ios&);
92 std::ostream& operator<<(std::ostream&,
const scprintf&);
102 friend std::ostream& sc::operator<<(std::ostream&,
const scprintf&);