CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
reco::parser::Exception Class Reference

#include <Exception.h>

Inheritance diagram for reco::parser::Exception:

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 &)
 
template<class T >
Exceptionoperator<< (const Exception &, const T &)
 
Exceptionoperator<< (Exception &, std::ostream &(*f)(std::ostream &))
 
Exceptionoperator<< (const Exception &, std::ostream &(*f)(std::ostream &))
 
Exceptionoperator<< (Exception &, std::ios_base &(*f)(std::ios_base &))
 
Exceptionoperator<< (const Exception &, std::ios_base &(*f)(std::ios_base &))
 

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.

55 : BaseException(iIterator,kSpecialError) {}
boost::spirit::classic::parser_error< reco::parser::SyntaxErrors > BaseException
Definition: Exception.h:37
reco::parser::Exception::Exception ( const Exception iOther)
inline

Definition at line 56 of file Exception.h.

References ost_.

56  : BaseException(iOther) {
57  ost_ << iOther.ost_.str();
58  }
boost::spirit::classic::parser_error< reco::parser::SyntaxErrors > BaseException
Definition: Exception.h:37
std::ostringstream ost_
Definition: Exception.h:81
reco::parser::Exception::~Exception ( )
throw (
)
inline

Definition at line 59 of file Exception.h.

59 {}

Member Function Documentation

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

Definition at line 62 of file Exception.h.

References ost_, and what_.

62 { what_ = ost_.str(); return what_.c_str();}
std::ostringstream ost_
Definition: Exception.h:81

Friends And Related Function Documentation

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

Definition at line 86 of file Exception.h.

86  {
87  e.ost_ << iT;
88  return e;
89  }
template<class T >
Exception& operator<< ( const Exception e,
const T iT 
)
friend

Definition at line 91 of file Exception.h.

91  {
92  return operator<<(const_cast<Exception&>(e), iT);
93  }
Exception& operator<< ( Exception e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 94 of file Exception.h.

95  {
96  f(e.ost_);
97  return e;
98  }
double f[11][100]
Exception& operator<< ( const Exception e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 99 of file Exception.h.

100  {
101  f(const_cast<Exception&>(e).ost_);
102  return const_cast<Exception&>(e);
103  }
double f[11][100]
std::ostringstream ost_
Definition: Exception.h:81
Exception& operator<< ( Exception e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 104 of file Exception.h.

104  {
105  f(e.ost_);
106  return e;
107  }
double f[11][100]
Exception& operator<< ( const Exception e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 108 of file Exception.h.

108  {
109  f(const_cast<Exception&>(e).ost_);
110  return const_cast<Exception&>(e);
111  }
double f[11][100]
std::ostringstream ost_
Definition: Exception.h:81

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_
mutableprivate

Definition at line 82 of file Exception.h.

Referenced by what().