CMS 3D CMS Logo

Classes | Functions
cmdline Namespace Reference

Classes

class  CmdLine
 
class  CmdLineError
 
class  OneShotIStream
 

Functions

template<typename T >
void OneShotExtract (std::istringstream &is, T &obj)
 
template<>
void OneShotExtract< std::string > (std::istringstream &is, std::string &obj)
 

Function Documentation

template<typename T >
void cmdline::OneShotExtract ( std::istringstream &  is,
T obj 
)
inline

Definition at line 142 of file CmdLine.h.

References getGTfromDQMFile::obj.

Referenced by cmdline::OneShotIStream::operator>>().

142  {
143  is >> obj;
144  }
template<>
void cmdline::OneShotExtract< std::string > ( std::istringstream &  is,
std::string &  obj 
)
inline

Definition at line 147 of file CmdLine.h.

References end, and getGTfromDQMFile::obj.

147  {
148  obj = is.str();
149  is.seekg(0, std::ios_base::end);
150  }
#define end
Definition: vmac.h:39