Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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 Member Functions

MYSQLPP_EXPORT SQLString ()
 Default constructor; empty string.
MYSQLPP_EXPORT SQLString (const std::string &str)
 Create object as a copy of a C++ string.
MYSQLPP_EXPORT SQLString (const char *str)
 Create object as a copy of a C string.
MYSQLPP_EXPORT SQLString (char i)
 Create object as the string form of a char value.
MYSQLPP_EXPORT SQLString (unsigned char i)
 Create object as the string form of an unsigned char value.
MYSQLPP_EXPORT SQLString (short int i)
 Create object as the string form of a short int value.
MYSQLPP_EXPORT SQLString (unsigned short int i)
 Create object as the string form of an unsigned short int value.
MYSQLPP_EXPORT SQLString (int i)
 Create object as the string form of an int value.
MYSQLPP_EXPORT SQLString (unsigned int i)
 Create object as the string form of an unsigned int value.
MYSQLPP_EXPORT SQLString (longlong i)
 Create object as the string form of a longlong value.
MYSQLPP_EXPORT SQLString (ulonglong i)
 Create object as the string form of an unsigned longlong value.
MYSQLPP_EXPORT SQLString (float i)
 Create object as the string form of a float value.
MYSQLPP_EXPORT SQLString (double i)
 Create object as the string form of a double value.
SQLStringoperator= (const char *str)
 Copy a C string into this object.
SQLStringoperator= (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 flag is reset by operator=, to force the new parameter value to be re-processed.


The documentation for this class was generated from the following files:
Generated on Tue Aug 16 12:54:00 2005 for MySQL++ by  doxygen 1.3.9.1