CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cmdline::CmdLineError Class Reference

#include <CmdLine.h>

Public Member Functions

 CmdLineError (const char *msg=0)
 
template<typename T >
CmdLineErroroperator<< (const T &obj)
 
std::string str () const
 

Private Attributes

std::tr1::shared_ptr< std::ostringstream > os_
 

Detailed Description

Definition at line 122 of file CmdLine.h.

Constructor & Destructor Documentation

cmdline::CmdLineError::CmdLineError ( const char *  msg = 0)
inline

Definition at line 125 of file CmdLine.h.

References mps_check::msg, and os_.

Referenced by cmdline::OneShotIStream::operator>>(), cmdline::CmdLine::operator>>(), cmdline::CmdLine::optend(), cmdline::CmdLine::option(), and cmdline::CmdLine::require().

126  : os_(new std::ostringstream()) {if (msg) *os_ << msg;}
std::tr1::shared_ptr< std::ostringstream > os_
Definition: CmdLine.h:138
tuple msg
Definition: mps_check.py:285

Member Function Documentation

template<typename T >
CmdLineError& cmdline::CmdLineError::operator<< ( const T obj)
inline

Definition at line 129 of file CmdLine.h.

References hgcalPlots::obj, and os_.

130  {
131  *os_ << obj;
132  return *this;
133  }
std::tr1::shared_ptr< std::ostringstream > os_
Definition: CmdLine.h:138
std::string cmdline::CmdLineError::str ( ) const
inline

Definition at line 135 of file CmdLine.h.

References os_.

135 {return os_->str();}
std::tr1::shared_ptr< std::ostringstream > os_
Definition: CmdLine.h:138

Member Data Documentation

std::tr1::shared_ptr<std::ostringstream> cmdline::CmdLineError::os_
private

Definition at line 138 of file CmdLine.h.

Referenced by CmdLineError(), operator<<(), and str().