Main Page   Namespace List   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 &))
void mute ()
void unmute ()
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 69 of file Inform.C.

References reset.

Inform::~Inform  
 

destructor.

Definition at line 76 of file Inform.C.


Member Function Documentation

void Inform::mute   [inline]
 

Definition at line 62 of file Inform.h.

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

Definition at line 147 of file Inform.C.

Inform & Inform::operator<< double   
 

Definition at line 141 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< unsigned    long
 

Definition at line 135 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< long   
 

Definition at line 129 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< int   
 

Definition at line 123 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< char   
 

Definition at line 116 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< const char *   
 

overload the << operator for various items.

Definition at line 111 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::reset  
 

reset the buffer.

Definition at line 105 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 80 of file Inform.C.

Referenced by sendmsg.

const char* Inform::text   const [inline]
 

retrieve the current text.

Definition at line 66 of file Inform.h.

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

void Inform::unmute   [inline]
 

Definition at line 63 of file Inform.h.


The documentation for this class was generated from the following files:
Generated on Wed May 23 01:51:14 2012 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002