GamsMessageHandler Class Reference

A COIN-OR message handler that writes into the GAMS status- and logfile. More...

#include <GamsMessageHandler.hpp>

Collaboration diagram for GamsMessageHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GamsMessageHandler (GamsModel *GMptr)
 Constructor.
void setRemoveLBlanks (int rm)
 Sets the number of spaces to remove at the front of a message.
int print ()
 Prints the message from the message buffer.

Private Attributes

GamsModelGMptr_
int rmlblanks_

Detailed Description

A COIN-OR message handler that writes into the GAMS status- and logfile.

Definition at line 22 of file GamsMessageHandler.hpp.


Constructor & Destructor Documentation

GamsMessageHandler::GamsMessageHandler ( GamsModel GMptr  ) 

Constructor.

Parameters:
GMptr The GamsModel required for printing.


Member Function Documentation

void GamsMessageHandler::setRemoveLBlanks ( int  rm  )  [inline]

Sets the number of spaces to remove at the front of a message.

Definition at line 32 of file GamsMessageHandler.hpp.

References rmlblanks_.

int GamsMessageHandler::print (  ) 

Prints the message from the message buffer.

Removes at most rmlblanks_ from the beginning and all newlines at the end of the message buffer. If currentMessage().detail() is smaller then 2, the message is written to logfile and statusfile, otherwise it is written only to the logfile. If the pointer to the GamsModel is not set, the output goes to standard out.


Member Data Documentation

GamsModel* GamsMessageHandler::GMptr_ [private]

Definition at line 42 of file GamsMessageHandler.hpp.

int GamsMessageHandler::rmlblanks_ [private]

Definition at line 43 of file GamsMessageHandler.hpp.

Referenced by setRemoveLBlanks().


The documentation for this class was generated from the following file:
Generated on Fri May 16 16:17:39 2008 for GAMSlinks by  doxygen 1.4.7