CMS 3D CMS Logo

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 override throw ()
 
 ~Exception () override throw ()
 

Private Attributes

std::ostringstream ost_
 
std::string what_
 

Friends

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

Detailed Description

Definition at line 48 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

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

Definition at line 50 of file Exception.h.

50 : BaseException(iIterator, kSpecialError) {}

◆ Exception() [2/2]

reco::parser::Exception::Exception ( const Exception iOther)
inline

Definition at line 51 of file Exception.h.

51 : BaseException(iOther) { ost_ << iOther.ost_.str(); }

References ost_.

◆ ~Exception()

reco::parser::Exception::~Exception ( )
throw (
)
inlineoverride

Definition at line 52 of file Exception.h.

52 {}

Member Function Documentation

◆ what()

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

Definition at line 55 of file Exception.h.

55  {
56  what_ = ost_.str();
57  return what_.c_str();
58  }

References ost_, and what_.

Friends And Related Function Documentation

◆ operator<< [1/6]

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

Definition at line 87 of file Exception.h.

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

◆ operator<< [2/6]

Exception& operator<< ( const Exception e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 102 of file Exception.h.

102  {
103  f(const_cast<Exception&>(e).ost_);
104  return const_cast<Exception&>(e);
105  }

◆ operator<< [3/6]

Exception& operator<< ( const Exception e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 94 of file Exception.h.

94  {
95  f(const_cast<Exception&>(e).ost_);
96  return const_cast<Exception&>(e);
97  }

◆ operator<< [4/6]

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

Definition at line 82 of file Exception.h.

82  {
83  e.ost_ << iT;
84  return e;
85  }

◆ operator<< [5/6]

Exception& operator<< ( Exception e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 98 of file Exception.h.

98  {
99  f(e.ost_);
100  return e;
101  }

◆ operator<< [6/6]

Exception& operator<< ( Exception e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 90 of file Exception.h.

90  {
91  f(e.ost_);
92  return e;
93  }

Member Data Documentation

◆ ost_

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

Definition at line 77 of file Exception.h.

Referenced by Exception(), and what().

◆ what_

std::string reco::parser::Exception::what_
mutableprivate

Definition at line 78 of file Exception.h.

Referenced by what().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
reco::parser::BaseException
boost::spirit::classic::parser_error< reco::parser::SyntaxErrors > BaseException
Definition: Exception.h:33
reco::parser::Exception::what_
std::string what_
Definition: Exception.h:78
reco::parser::kSpecialError
Definition: Exception.h:31
reco::parser::Exception::ost_
std::ostringstream ost_
Definition: Exception.h:77
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37