TDbiExceptionLog.cxx File Reference

#include <iostream>
#include "TDbiExceptionLog.hxx"
#include <TSK_DBI_Log.hxx>
#include <MsgFormat.h>
Include dependency graph for TDbiExceptionLog.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const TDbiExceptionLog &el)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const TDbiExceptionLog el 
)

Definition at line 48 of file TDbiExceptionLog.cxx.

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

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

Here is the call graph for this function:


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1