00001 //=========================================================================== 00002 /* 00003 This file is part of the CHAI 3D visualization and haptics libraries. 00004 Copyright (C) 2003-2009 by CHAI 3D. All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License("GPL") version 2 00008 as published by the Free Software Foundation. 00009 00010 For using the CHAI 3D libraries with software that can not be combined 00011 with the GNU GPL, and for taking advantage of the additional benefits 00012 of our support services, please contact CHAI 3D about acquiring a 00013 Professional Edition License. 00014 00015 \author <http://www.chai3d.org> 00016 \author Francois Conti 00017 \author Dan Morris 00018 \version 2.0.0 $Rev: 250 $ 00019 */ 00020 //=========================================================================== 00021 00022 //--------------------------------------------------------------------------- 00023 #ifndef CStringH 00024 #define CStringH 00025 //--------------------------------------------------------------------------- 00026 #include <string> 00027 #include <stdio.h> 00028 //--------------------------------------------------------------------------- 00029 using std::string; 00030 //--------------------------------------------------------------------------- 00031 00032 //=========================================================================== 00041 //=========================================================================== 00042 00044 int cStringLength(const char* a_string); 00045 00047 void cStr(string& a_string, const bool& a_value); 00048 00050 void cStr(string& a_string, const int& a_value); 00051 00053 void cStr(string& a_string, const float& a_value, const unsigned int a_precision=2); 00054 00056 void cStr(string& a_string, const double& a_value, const unsigned int a_precision=2); 00057 00058 00059 //--------------------------------------------------------------------------- 00060 #endif 00061 //---------------------------------------------------------------------------