Main Page | Namespace List | Class List | File List | Namespace Members | Class Members

int_to_string.h

00001 // int_to_string.h (Simple integer to std::string conversion) 00002 // 00003 // The WorldForge Project 00004 // Copyright (C) 2001, 2002 The WorldForge Project 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program; if not, write to the Free Software 00018 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 // 00020 // For information about WorldForge and its authors, please contact 00021 // the Worldforge Web Site at http://www.worldforge.org. 00022 00023 // Author: Ron Steinke 00024 // Created: 2003-8-4 00025 00026 #ifndef WFMATH_INT_TO_STRING_H 00027 #define WFMATH_INT_TO_STRING_H 00028 00029 #include <string> 00030 00031 namespace WFMath { 00032 00033 std::string IntToString(unsigned long); 00034 std::string IntToString(long); 00035 std::string IntToString(unsigned int val) {return IntToString((unsigned long) val);} 00036 std::string IntToString(int val) {return IntToString((long) val);} 00037 std::string IntToString(unsigned short val) {return IntToString((unsigned long) val);} 00038 std::string IntToString(short val) {return IntToString((long) val);} 00039 00040 } // namespace WFMath 00041 00042 #endif // WFMATH_INT_TO_STRING_H

Generated on Tue Jul 27 21:41:56 2004 for WFMath by doxygen 1.3.7