CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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.

124  : os_(new std::ostringstream()) {
125  if (msg)
126  *os_ << msg;
127  }

References mps_check::msg, and os_.

Member Function Documentation

◆ operator<<()

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

Definition at line 130 of file CmdLine.h.

130  {
131  *os_ << obj;
132  return *this;
133  }

References getGTfromDQMFile::obj, and os_.

◆ str()

std::string cmdline::CmdLineError::str ( ) const
inline

Definition at line 135 of file CmdLine.h.

135 { return os_->str(); }

References os_.

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().

cmdline::CmdLineError::os_
std::tr1::shared_ptr< std::ostringstream > os_
Definition: CmdLine.h:138
mps_check.msg
tuple msg
Definition: mps_check.py:285
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32