#include <GamsMessageHandler.hpp>
Collaboration diagram for GamsMessageHandler:
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 | |
GamsModel * | GMptr_ |
int | rmlblanks_ |
Definition at line 22 of file GamsMessageHandler.hpp.
GamsMessageHandler::GamsMessageHandler | ( | GamsModel * | GMptr | ) |
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.
GamsModel* GamsMessageHandler::GMptr_ [private] |
Definition at line 42 of file GamsMessageHandler.hpp.
int GamsMessageHandler::rmlblanks_ [private] |