DbiExceptionLog.h File Reference

#include <iosfwd>
#include <string>
#include <vector>
#include "Rtypes.h"
#include "DatabaseInterface/DbiException.h"

Go to the source code of this file.

Classes

class  DbiExceptionLog

Namespaces

namespace  DatabaseInterface
 

Concept Package-wide namespace of utilities and typedef/enums.


Functions

std::ostream & operator<< (std::ostream &s, const DbiExceptionLog &el)

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
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 11 Jan 2018 for loon by  doxygen 1.6.1