CMS 3D CMS Logo

ToString.h File Reference

#include <sstream>
#include <iostream>

Go to the source code of this file.

Functions

template<class T>
std::string toString (const std::pair< T, T > &aT)
template<class T>
std::string toString (const T &aT)


Function Documentation

template<class T>
std::string toString ( const std::pair< T, T > &  aT  )  [inline]

Definition at line 12 of file ToString.h.

00012                                                                {
00013         std::ostringstream oss;
00014         oss << "(" << aT.first << ", " << aT.second << ")";
00015         return oss.str();
00016 }

template<class T>
std::string toString ( const T &  aT  )  [inline]

Definition at line 6 of file ToString.h.

Referenced by pftools::SpaceVoxel::getName(), HCALConfigDB::getOnlineLUT(), and HCALConfigDB::getOnlineLUTFromXML().

00006                                                    {
00007         std::ostringstream oss;
00008         oss << aT;
00009         return oss.str();
00010 }


Generated on Tue Jun 9 17:55:30 2009 for CMSSW by  doxygen 1.5.4