Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 1a4654cdb333ad144ff9f7b2e16de416 > files > 27

cpp2html-1.2-3mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="cpp2html 1.2
by Lorenzo Bettini, bettini@gnu.org
http://w3.newnet.it/bettini
http://www.gnu.org/software/cpp2html/cpp2html.html">
<title>messages.cc</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<pre>
<tt>
<i><font color=#9A1900>/*
** Copyright (C) 1999, 2000, Lorenzo Bettini &lt;lorenzo.bettini@penteres.it&gt;
**  
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**  
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**  
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**  
*/</font></i>


<i><font color=#9A1900>// messages.cc
</font></i>
<b><font color=#0000FF>#include</font></b> <font color=#FF0000>"messages.h"</font>

<b><font color=#0000FF>static</font></b> Messages *_messager = <font color=#993399>0</font> ;

<font color=#009900>void</font> printMessage( <font color=#009900>char</font> *s, ostream &amp;stream ) {
  <b><font color=#0000FF>if</font></b> ( _messager )
    _messager-&gt;printMessage(s,stream) ;
}

<font color=#009900>void</font> printWarning( <font color=#009900>char</font> *s, ostream &amp;stream ) {
  <b><font color=#0000FF>if</font></b> ( _messager )
    _messager-&gt;printWarning(s,stream) ;
}

<font color=#009900>void</font> printError( <font color=#009900>char</font> *s, ostream &amp;stream ) {
  <b><font color=#0000FF>if</font></b> ( _messager )
    _messager-&gt;printError(s,stream) ;
}

<font color=#009900>void</font> setMessager( Messages *m ) {
  <b><font color=#0000FF>if</font></b> ( m )
    _messager = m ;
}
</tt>
</pre>
</body>
</html>