- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# /home/coin/SVN-release/Osi-0.98.1/CoinUtils/src/CoinMessageHandler.hpp File Reference

This is a first attempt at a message handler. More...

`#include <iostream>`
`#include <cstdio>`
`#include <string>`
`#include <vector>`
`#include "CoinFinite.hpp"`

Include dependency graph for CoinMessageHandler.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | CoinOneMessage
| Class for one massaged message. More...
class | CoinMessages
| Class to hold and manipulate an array of massaged messages. More...
class | CoinMessageHandler
| Base class for message handling. More...
## Defines
#define | COIN_NUM_LOG 4
| Log levels will be by type and will then use type given in CoinMessage::class_.
## Enumerations
enum | CoinMessageMarker { CoinMessageEol = 0, CoinMessageNewline = 1 }
## Functions
bool | CoinMessageHandlerUnitTest ()
| A function that tests the methods in the CoinMessageHandler class.

## Detailed Description

This is a first attempt at a message handler.

The COIN Project is in favo(u)r of multi-language support. This implementation of a message handler tries to make it as lightweight as possible in the sense that only a subset of messages need to be defined --- the rest default to US English.

The default handler at present just prints to stdout or to a FILE pointer

Todo:
  This needs to be worked over for correct operation with ISO character codes.

Definition in file CoinMessageHandler.hpp.

## Define Documentation

#define COIN_NUM_LOG 4

Log levels will be by type and will then use type given in CoinMessage::class_.

- 0 - Branch and bound code or similar
- 1 - Solver
- 2 - Stuff in Coin directory
- 3 - Cut generators

Definition at line 565 of file CoinMessageHandler.hpp.

## Enumeration Type Documentation

enum CoinMessageMarker

Enumerator:

  CoinMessageEol |
  CoinMessageNewline |

Definition at line 213 of file CoinMessageHandler.hpp.

## Function Documentation

bool CoinMessageHandlerUnitTest | ( |  | ) |

A function that tests the methods in the CoinMessageHandler class.

The only reason for it not to be a member method is that this way it doesn't have to be compiled into the library. And that's a gain, because the library should be compiled with optimization on, but this method should be compiled with debugging.