Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   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<< (unsigned 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 36 of file Inform.h.


Constructor & Destructor Documentation

Inform::Inform const char *   
 

constructor: give name.

Definition at line 72 of file Inform.C.

References reset.

Inform::~Inform  
 

destructor.

Definition at line 79 of file Inform.C.


Member Function Documentation

void Inform::mute   [inline]
 

Definition at line 72 of file Inform.h.

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

Definition at line 183 of file Inform.C.

Inform & Inform::operator<< double   
 

Definition at line 176 of file Inform.C.

References MAX_MSG_SIZE.

Inform& Inform::operator<< unsigned    long
 

Inform & Inform::operator<< long   
 

Definition at line 144 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< unsigned    int
 

Definition at line 137 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< int   
 

Definition at line 130 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< char   
 

Definition at line 122 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::operator<< const char *   
 

overload the << operator for various items.

Definition at line 117 of file Inform.C.

References MAX_MSG_SIZE.

Inform & Inform::reset  
 

reset the buffer.

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

References log_android.

Referenced by sendmsg.

const char* Inform::text   const [inline]
 

retrieve the current text.

Definition at line 76 of file Inform.h.

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

void Inform::unmute   [inline]
 

Definition at line 73 of file Inform.h.


The documentation for this class was generated from the following files:
Generated on Thu Mar 28 02:45:45 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002