2006-02-17 23:19:25 +01:00
|
|
|
// src/backend/string_utils.hh - Copyright 2005, 2006, University
|
|
|
|
// of Padova, dept. of Pure and Applied
|
|
|
|
// Mathematics
|
|
|
|
//
|
|
|
|
// This file is part of SGPEMv2.
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// SGPEMv2 is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with SGPEMv2; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
|
|
#ifndef STRING_UTILS_HH
|
|
|
|
#define STRING_UTILS_HH 1
|
|
|
|
|
|
|
|
#include "config.h"
|
2006-02-21 12:29:05 +01:00
|
|
|
#include <sstream>
|
|
|
|
#include <iostream>
|
2006-02-17 23:19:25 +01:00
|
|
|
#include "glibmm/ustring.h"
|
|
|
|
|
|
|
|
|
|
|
|
bool SG_DLLEXPORT string_to_int(const Glib::ustring&, int&);
|
|
|
|
|
|
|
|
void SG_DLLEXPORT int_to_string(const int&, Glib::ustring&);
|
2006-02-21 12:29:05 +01:00
|
|
|
|
|
|
|
void SG_DLLEXPORT float_to_string(const float&, Glib::ustring&);
|
|
|
|
|
|
|
|
void SG_DLLEXPORT string_to_float(const Glib::ustring&, float&);
|
2006-02-17 23:19:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|