Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

sql_string.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 /***********************************************************************
00011  Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
00012  MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
00013  Others may also hold copyrights on code in this file.  See the CREDITS
00014  file in the top directory of the distribution for details.
00015 
00016  This file is part of MySQL++.
00017 
00018  MySQL++ is free software; you can redistribute it and/or modify it
00019  under the terms of the GNU Lesser General Public License as published
00020  by the Free Software Foundation; either version 2.1 of the License, or
00021  (at your option) any later version.
00022 
00023  MySQL++ is distributed in the hope that it will be useful, but WITHOUT
00024  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00025  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00026  License for more details.
00027 
00028  You should have received a copy of the GNU Lesser General Public
00029  License along with MySQL++; if not, write to the Free Software
00030  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
00031  USA
00032 ***********************************************************************/
00033 
00034 #ifndef MYSQLPP_SQL_STRING_H
00035 #define MYSQLPP_SQL_STRING_H
00036 
00037 #include "defs.h"
00038 
00039 #include <stdio.h>
00040 #include <string>
00041 
00042 namespace mysqlpp {
00043 
00046 
00047 class SQLString : public std::string {
00048 public:
00051         bool is_string;
00052 
00055         bool dont_escape;
00056 
00066         bool processed;
00067 
00069         SQLString();
00070 
00072         SQLString(const std::string& str);
00073 
00075         SQLString(const char* str);
00076 
00078         SQLString(char i);
00079 
00082         SQLString(unsigned char i);
00083 
00086         SQLString(short int i);
00087 
00090         SQLString(unsigned short int i);
00091 
00093         SQLString(int i);
00094 
00097         SQLString(unsigned int i);
00098 
00101         SQLString(longlong i);
00102 
00105         SQLString(ulonglong i);
00106 
00109         SQLString(float i);
00110 
00113         SQLString(double i);
00114 
00116         SQLString& operator =(const char* str)
00117         {
00118                 std::string::operator =(str);
00119                 return *this;
00120         }
00121 
00123         SQLString& operator =(const std::string& str)
00124         {
00125                 std::string::operator =(str);
00126                 return *this;
00127         }
00128 };
00129 
00130 } // end namespace mysqlpp
00131 
00132 #endif
00133 

Generated on Thu May 26 09:39:58 2005 for MySQL++ by doxygen1.2.18