This is a first attempt at a message handler. More...
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include "CoinFinite.hpp"
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. |
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
Definition in file CoinMessageHandler.hpp.
#define COIN_NUM_LOG 4 |
Log levels will be by type and will then use type given in CoinMessage::class_.
Definition at line 565 of file CoinMessageHandler.hpp.
enum CoinMessageMarker |
Definition at line 213 of file CoinMessageHandler.hpp.
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.