#include <iostream>
#include "TDbiExceptionLog.hxx"
#include <TSK_DBI_Log.hxx>
#include <MsgFormat.h>
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const TDbiExceptionLog &el) |
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 }