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

mysqlpp::SQLString Class Reference

A specialized std::string that will convert from any valid MySQL type. More...

#include <sql_string.h>

List of all members.

Public Methods

 SQLString ()
 Default constructor; empty string.

 SQLString (const std::string &str)
 Create object as a copy of a C++ string.

 SQLString (const char *str)
 Create object as a copy of a C string.

 SQLString (char i)
 Create object as the string form of a char value.

 SQLString (unsigned char i)
 Create object as the string form of an unsigned char value.

 SQLString (short int i)
 Create object as the string form of a short int value.

 SQLString (unsigned short int i)
 Create object as the string form of an unsigned short int value.

 SQLString (int i)
 Create object as the string form of an int value.

 SQLString (unsigned int i)
 Create object as the string form of an unsigned int value.

 SQLString (longlong i)
 Create object as the string form of a longlong value.

 SQLString (ulonglong i)
 Create object as the string form of an unsigned longlong value.

 SQLString (float i)
 Create object as the string form of a float value.

 SQLString (double i)
 Create object as the string form of a double value.

SQLString & operator= (const char *str)
 Copy a C string into this object.

SQLString & operator= (const std::string &str)
 Copy a C++ string into this object.


Public Attributes

bool is_string
 If true, the object's string data is a copy of another string. Otherwise, it's the string form of an integral type.

bool dont_escape
 If true, the string data doesn't need to be SQL-escaped when building a query.

bool processed
 If true, one of the MySQL++ manipulators has processed the string data.


Detailed Description

A specialized std::string that will convert from any valid MySQL type.


Member Data Documentation

bool mysqlpp::SQLString::processed
 

If true, one of the MySQL++ manipulators has processed the string data.

"Processing" is escaping special SQL characters, and/or adding quotes. See the documentation for manip.h for details.

This flag is used by the template query mechanism, to prevent a string from being re-escaped or re-quoted each time that query is reused.


The documentation for this class was generated from the following files:
Generated on Thu May 26 09:40:39 2005 for MySQL++ by doxygen1.2.18