Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  error.C   Sprache: C

 
#include <config.h>

#ifdef __GNUG__
#pragma implementation
#endif

#include "error.h"
#include <stdio.h>

//  $Id: error.C,v 1.1.1.1 1998/04/20 21:14:47 larsbj Exp $

#if !defined(lint) && !defined(WITH_WARNINGS)
static char vcid[] = "$Id: error.C,v 1.1.1.1 1998/04/20 21:14:47 larsbj Exp $";
#endif /* lint */

Error::Error(int level) // should loglevel also be an argument?
{
 debuglevel = level;
 loglevel = 0;
}


void Error::setDebugLevel(int level)
{
 debuglevel = level;
}


void Error::debug(LString const & msg, int level)
{
 if (debuglevel & level)
  print(msg);
 // should also print to the logfile
}

void Error::print(LString const & msg)
{
 if (!msg.empty()) 
  fprintf(stderr, "%s\n", msg.c_str());
}


100%


¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge