CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

reco::parser::Exception Class Reference

#include <Exception.h>

List of all members.

Public Member Functions

 Exception (const char *iIterator)
 Exception (const Exception &iOther)
const char * what () const throw ()
 ~Exception () throw ()

Private Attributes

std::ostringstream ost_
std::string what_

Friends

template<class T >
Exceptionoperator<< (Exception &, const T &)
Exceptionoperator<< (const Exception &, std::ios_base &(*f)(std::ios_base &))
Exceptionoperator<< (Exception &, std::ios_base &(*f)(std::ios_base &))
Exceptionoperator<< (const Exception &, std::ostream &(*f)(std::ostream &))
Exceptionoperator<< (Exception &, std::ostream &(*f)(std::ostream &))
template<class T >
Exceptionoperator<< (const Exception &, const T &)

Detailed Description

Definition at line 52 of file Exception.h.


Constructor & Destructor Documentation

reco::parser::Exception::Exception ( const char *  iIterator) [inline]

Definition at line 55 of file Exception.h.

: BaseException(iIterator,kSpecialError) {}
reco::parser::Exception::Exception ( const Exception iOther) [inline]

Definition at line 56 of file Exception.h.

References ost_.

                                            : BaseException(iOther) {
            ost_ << iOther.ost_.str();
         }
reco::parser::Exception::~Exception ( ) throw () [inline]

Definition at line 59 of file Exception.h.

{}

Member Function Documentation

const char* reco::parser::Exception::what ( ) const throw () [inline]

Definition at line 62 of file Exception.h.

References ost_, and what_.

{ what_ = ost_.str(); return what_.c_str();}

Friends And Related Function Documentation

template<class T >
Exception& operator<< ( Exception e,
const T iT 
) [friend]

Definition at line 86 of file Exception.h.

                                                               {
         e.ost_ << iT;
         return e;
      }
Exception& operator<< ( const Exception e,
std::ios_base &(*)(std::ios_base &)  f 
) [friend]

Definition at line 108 of file Exception.h.

                                                                                       {
         f(const_cast<Exception&>(e).ost_);
         return const_cast<Exception&>(e);
      }
Exception& operator<< ( Exception e,
std::ios_base &(*)(std::ios_base &)  f 
) [friend]

Definition at line 104 of file Exception.h.

                                                                                 {
         f(e.ost_);
         return e;
      }      
Exception& operator<< ( const Exception e,
std::ostream &(*)(std::ostream &)  f 
) [friend]

Definition at line 99 of file Exception.h.

      {
         f(const_cast<Exception&>(e).ost_);
         return const_cast<Exception&>(e);
      }
Exception& operator<< ( Exception e,
std::ostream &(*)(std::ostream &)  f 
) [friend]

Definition at line 94 of file Exception.h.

      {
         f(e.ost_);
         return e;
      }
template<class T >
Exception& operator<< ( const Exception e,
const T iT 
) [friend]

Definition at line 91 of file Exception.h.

                                                                    {
         return operator<<(const_cast<Exception&>(e), iT);
      }

Member Data Documentation

std::ostringstream reco::parser::Exception::ost_ [private]

Definition at line 81 of file Exception.h.

Referenced by Exception(), reco::parser::operator<<(), and what().

std::string reco::parser::Exception::what_ [mutable, private]

Definition at line 82 of file Exception.h.

Referenced by what().