WFMath 1.0.2
int_to_string.h
1// int_to_string.h (Simple integer to std::string conversion)
2//
3// The WorldForge Project
4// Copyright (C) 2001, 2002 The WorldForge Project
5//
6// This program is free software; you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 2 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19//
20// For information about WorldForge and its authors, please contact
21// the Worldforge Web Site at http://www.worldforge.org.
22
23// Author: Ron Steinke
24// Created: 2003-8-4
25
26#ifndef WFMATH_INT_TO_STRING_H
27#define WFMATH_INT_TO_STRING_H
28
29#include <string>
30
31namespace WFMath {
32
33std::string IntToString(unsigned long);
34std::string IntToString(long);
35inline std::string IntToString(unsigned int val) {return IntToString((unsigned long) val);}
36inline std::string IntToString(int val) {return IntToString((long) val);}
37inline std::string IntToString(unsigned short val) {return IntToString((unsigned long) val);}
38inline std::string IntToString(short val) {return IntToString((long) val);}
39
40} // namespace WFMath
41
42#endif // WFMATH_INT_TO_STRING_H
Generic library namespace.
Definition atlasconv.h:45