Browse Subversion Repository
Diff of /Conograph/trunk/src/utility_func/zstring.hh
Parent Directory
| Revision Log
| Patch
| 27 |
#ifndef _ZSTRING_HH_ |
#ifndef _ZSTRING_HH_ |
| 28 |
#define _ZSTRING_HH_ |
#define _ZSTRING_HH_ |
| 29 |
|
|
| 30 |
|
#include <vector> |
| 31 |
#include <sstream> |
#include <sstream> |
| 32 |
#include "../RietveldAnalysisTypes.hh" |
#include "../zerror_type/ZErrorType.hh" |
| 33 |
#include "../zerror_type/error_mes.hh" |
|
| 34 |
|
class ZErrorMessage; |
| 35 |
|
|
| 36 |
|
using namespace std; |
| 37 |
|
|
| 38 |
// Change the argument type from T to string. |
// Change the argument type from T to string. |
| 39 |
template<class T> |
template<class T> |
| 56 |
|
|
| 57 |
|
|
| 58 |
template<class T> |
template<class T> |
| 59 |
inline string num2str(const T& num, const Int4& precision) |
inline string num2str(const T& num, const int& precision) |
| 60 |
{ |
{ |
| 61 |
stringstream strstream; |
stringstream strstream; |
| 62 |
strstream.precision(precision); |
strstream.precision(precision); |
|
|
Legend:
| Removed from v.3 |
|
| changed lines |
| |
Added in v.33 |
|
|
|