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=nullptr)
 
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

◆ CmdLineError()

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

Definition at line 124 of file CmdLine.h.

References mps_check::msg, and os_.

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

Member Function Documentation

◆ operator<<()

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

Definition at line 130 of file CmdLine.h.

References getGTfromDQMFile::obj, and os_.

130  {
131  *os_ << obj;
132  return *this;
133  }
std::tr1::shared_ptr< std::ostringstream > os_
Definition: CmdLine.h:138

◆ str()

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

◆ os_

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

Definition at line 138 of file CmdLine.h.

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