Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Inform Class Reference

Takes messages and displays them to the given ostream. Also creates 3 global instances: msgInfo, msgWarn, msgErr. A message is sent to an Inform object by treating it as an ostream, then ending the message by sending the 'sendmsg' manipulator. More...

#include <Inform.h>

List of all members.

Public Methods

 Inform (const char *)
 constructor: give name. More...

 ~Inform ()
 destructor. More...

Inform & send ()
 print the current message to stdout. More...

Inform & reset ()
 reset the buffer. More...

Inform & operator<< (const char *)
 overload the << operator for various items. More...

Inform & operator<< (char)
Inform & operator<< (int)
Inform & operator<< (long)
Inform & operator<< (unsigned long)
Inform & operator<< (double)
Inform & operator<< (Inform &(*f)(Inform &))
const char * text () const
 retrieve the current text. More...


Detailed Description

Takes messages and displays them to the given ostream. Also creates 3 global instances: msgInfo, msgWarn, msgErr. A message is sent to an Inform object by treating it as an ostream, then ending the message by sending the 'sendmsg' manipulator.

Definition at line 33 of file Inform.h.


Constructor & Destructor Documentation

Inform::Inform const char *   
 

constructor: give name.

Definition at line 54 of file Inform.C.

References reset.

Inform::~Inform  
 

destructor.

Definition at line 59 of file Inform.C.


Member Function Documentation

Inform & Inform::operator<< Inform &(*    f)(Inform &)
 

Definition at line 130 of file Inform.C.

Inform & Inform::operator<< double   
 

Definition at line 123 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< unsigned    long
 

Definition at line 116 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< long   
 

Definition at line 109 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< int   
 

Definition at line 102 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< char   
 

Definition at line 94 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< const char *   
 

overload the << operator for various items.

Definition at line 89 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::reset  
 

reset the buffer.

Definition at line 84 of file Inform.C.

Referenced by VMDCollab::act_on_command, UIText::act_on_command, and Inform.

Inform & Inform::send  
 

print the current message to stdout.

Definition at line 63 of file Inform.C.

References vmdcon_append.

Referenced by sendmsg.

const char* Inform::text   const [inline]
 

retrieve the current text.

Definition at line 54 of file Inform.h.

Referenced by VMDCollab::act_on_command, and UIText::act_on_command.


The documentation for this class was generated from the following files:
Generated on Sun Jul 6 01:28:31 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002