Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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 "common.h"
00038 
00039 #include <stdio.h>
00040 #include <string>
00041 
00042 namespace mysqlpp {
00043 
00046 
00047 class MYSQLPP_EXPORT SQLString : public std::string {
00048 public:
00051         bool is_string;
00052 
00055         bool dont_escape;
00056 
00067         bool processed;
00068 
00070         SQLString();
00071 
00073         SQLString(const std::string& str);
00074 
00076         SQLString(const char* str);
00077 
00080         SQLString(const char* str, size_t len);
00081 
00083         SQLString(char i);
00084 
00087         SQLString(unsigned char i);
00088 
00091         SQLString(short int i);
00092 
00095         SQLString(unsigned short int i);
00096 
00098         SQLString(int i);
00099 
00102         SQLString(unsigned int i);
00103 
00106         SQLString(longlong i);
00107 
00110         SQLString(ulonglong i);
00111 
00114         SQLString(float i);
00115 
00118         SQLString(double i);
00119 
00121         SQLString& operator =(const char* str)
00122         {
00123                 std::string::operator =(str);
00124                 processed = false;
00125                 return *this;
00126         }
00127 
00129         SQLString& operator =(const std::string& str)
00130         {
00131                 std::string::operator =(str);
00132                 processed = false;
00133                 return *this;
00134         }
00135 };
00136 
00137 } // end namespace mysqlpp
00138 
00139 #endif

Generated on Tue Apr 17 08:42:13 2007 for MySQL++ by doxygen 1.3.5