DbiExceptionLog.cxx File Reference

#include <iostream>
#include "DatabaseInterface/DbiExceptionLog.h"
#include "LeakChecker/Lea.h"
#include "MessageService/MsgService.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: DbiExceptionLog.cxx,v 1.5 2007/04/26 14:19:57 west Exp $")
std::ostream & operator<< (std::ostream &os, const DbiExceptionLog &el)

Function Documentation

CVSID ( "$Id: DbiExceptionLog.  cxx,
v 1.5 2007/04/26 14:19:57 west Exp $"   
)
std::ostream& operator<< ( std::ostream &  os,
const DbiExceptionLog el 
)

Definition at line 50 of file DbiExceptionLog.cxx.

References DbiExceptionLog::GetEntries(), and DbiExceptionLog::IsEmpty().

00050                                                                   {
00051 
00052   if ( el.IsEmpty() ) {
00053     os << "The database exception log is empty" << endl;
00054   }
00055   else {
00056     os << "Database exception log:-" << endl;
00057     std::vector<DbiException>::const_iterator itr(el.GetEntries().begin()), 
00058                                                itrEnd(el.GetEntries().end());
00059     while ( itr != itrEnd ) {
00060       os << *itr << endl;
00061       ++itr;
00062     }
00063   }
00064 
00065   return os;
00066 
00067 }


Generated on 2 Jul 2018 for loon by  doxygen 1.6.1