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 haddnano::obj.

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

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

Definition at line 146 of file CmdLine.h.

References end, and haddnano::obj.

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