50 Inform(
const char* = 0,
int = 0);
55 Inform(
const char* prefix,
const char* fname,
const WriteMode,
int = 0);
59 Inform(
const char*, std::ostream&,
int = 0);
63 Inform(
const char* myname,
const Inform& os,
int pnode = 0);
69 void on(
const bool o) { On = o; }
70 bool isOn()
const {
return On; }
73 void setDestination(std::ostream& dest);
74 std::ostream& getDestination() {
return *MsgDest; }
77 Inform& setOutputLevel(
const int);
78 int getOutputLevel(
void)
const {
return OutputLevel; }
81 Inform& setMessageLevel(
const int);
82 int getMessageLevel(
void)
const {
return MsgLevel; }
85 int getPrintNode()
const {
return PrintNode; }
86 void setPrintNode(
int n = (-1)) { PrintNode = n; }
89 std::ostream& getStream() {
return FormatBuf; }
92 bool openedSuccessfully() {
return OpenedSuccessfully; }
95 Inform& outputMessage(
void);
99 typedef std::ios_base::fmtflags FmtFlags_t;
101 FmtFlags_t setf(FmtFlags_t setbits, FmtFlags_t field) {
return FormatBuf.setf(setbits, field); }
103 FmtFlags_t setf(FmtFlags_t f) {
return FormatBuf.setf(f); }
104 void unsetf(FmtFlags_t f) { FormatBuf.unsetf(f); }
105 FmtFlags_t flags()
const {
return FormatBuf.flags(); }
106 FmtFlags_t flags(FmtFlags_t f) {
return FormatBuf.flags(f); }
107 int width()
const {
return FormatBuf.width(); }
108 int width(
int w) {
return FormatBuf.width(w); }
109 char fill()
const {
return FormatBuf.fill(); }
110 char fill(
char c) {
return FormatBuf.fill(c); }
111 int precision()
const {
return FormatBuf.precision(); }
112 int precision(
int p) {
return FormatBuf.precision(p); }
113 void flush() { MsgDest->flush(); }
122 std::ostringstream FormatBuf;
125 std::ostream* MsgDest;
131 bool OpenedSuccessfully;
150 void display_message(
char*);
153 void display_single_line(
char*);
157 void setup(
const char*,
int);