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);
73 static std::string fileext_to_filename_string(
const char *extension);
75 static void init_ostream(std::ostream &);
77 static std::ostream& license(std::ostream&);
78 static std::ostream& warranty(std::ostream&);
79 static std::ostream& copyright(std::ostream&);
82 std::ios& indent(std::ios&);
84 std::ios& decindent(std::ios&);
86 std::ios& incindent(std::ios&);
88 std::ios& skipnextindent(std::ios&);
103 const char* str()
const {
return str_; }