#include <MyMySQLPPTypeConv.h>
This object is returned by CMyMySQLPPRow::Get and CMyMySQLPPRow::operator[]. It automatically converts to the required type.
Example:
CMyMySQLPPResult res = ...;
CMyMySQLPPRow r = res[0];
int asint = r[1];
long aslong = r[1];
char* assstr = r[1];
So you don't need to implement any type converting by your own.
Definition at line 29 of file MyMySQLPPTypeConv.h.
Public Member Functions | |
CMyMySQLPPTypeConv (void) | |
Class constructor. | |
CMyMySQLPPTypeConv (char *data) | |
Class constructor accepting data. | |
~CMyMySQLPPTypeConv (void) | |
Class destructor. | |
void | Free (void) |
Frees up space used by this object. | |
void | SetData (const char *data) |
Sets new data to be converted. | |
const char * | GetData (void) |
Returns data to be converted. | |
int | GetAsInt (void) |
Returns data converted to integer. | |
operator int (void) | |
Returns data converted to integer. | |
LPSTR | GetAsString (void) |
Returns data converted to string. | |
operator LPSTR (void) | |
Returns data converted to integer. | |
double | GetAsDouble (void) |
Returns data converted to double. | |
operator double (void) | |
Returns data converted to double. | |
long | GetAsLong (void) |
Returns data converted to long. | |
operator long (void) | |
Returns data converted to long. | |
__int64 | GetAsInt64 (void) |
Returns data converted to 64 bit integer. | |
operator __int64 (void) | |
Returns data converted to 64 bit integer. | |
UINT | GetAsUInt (void) |
Returns data converted to unsigned integer. | |
operator UINT (void) | |
Returns data converted to unsigned integer. | |
LPCSTR | GetAsConstString (void) |
Returns data converted to const string. | |
operator LPCSTR (void) | |
Returns data converted to const string. |
|
Class constructor.
Definition at line 43 of file MyMySQLPPTypeConv.cpp. |
|
Class constructor accepting data.
Definition at line 51 of file MyMySQLPPTypeConv.cpp. |
|
Class destructor.
Definition at line 59 of file MyMySQLPPTypeConv.cpp. References Free(). |
|
Frees up space used by this object.
Definition at line 65 of file MyMySQLPPTypeConv.cpp. Referenced by SetData(), and ~CMyMySQLPPTypeConv(). |
|
Returns data converted to const string.
Definition at line 199 of file MyMySQLPPTypeConv.cpp. Referenced by operator LPCSTR(). |
|
Returns data converted to double.
Definition at line 127 of file MyMySQLPPTypeConv.cpp. Referenced by operator double(). |
|
Returns data converted to integer.
Definition at line 93 of file MyMySQLPPTypeConv.cpp. Referenced by operator int(). |
|
Returns data converted to 64 bit integer.
Definition at line 163 of file MyMySQLPPTypeConv.cpp. Referenced by operator __int64(). |
|
Returns data converted to long.
Definition at line 145 of file MyMySQLPPTypeConv.cpp. Referenced by operator long(). |
|
Returns data converted to string.
Definition at line 111 of file MyMySQLPPTypeConv.cpp. Referenced by operator LPSTR(). |
|
Returns data converted to unsigned integer.
Definition at line 181 of file MyMySQLPPTypeConv.cpp. Referenced by operator UINT(). |
|
Returns data to be converted.
Definition at line 85 of file MyMySQLPPTypeConv.cpp. |
|
Returns data converted to 64 bit integer.
Definition at line 173 of file MyMySQLPPTypeConv.cpp. References GetAsInt64(). |
|
Returns data converted to double.
Definition at line 137 of file MyMySQLPPTypeConv.cpp. References GetAsDouble(). |
|
Returns data converted to integer.
Definition at line 103 of file MyMySQLPPTypeConv.cpp. References GetAsInt(). |
|
Returns data converted to long.
Definition at line 155 of file MyMySQLPPTypeConv.cpp. References GetAsLong(). |
|
Returns data converted to const string.
Definition at line 207 of file MyMySQLPPTypeConv.cpp. References GetAsConstString(). |
|
Returns data converted to integer.
Definition at line 119 of file MyMySQLPPTypeConv.cpp. References GetAsString(). |
|
Returns data converted to unsigned integer.
Definition at line 191 of file MyMySQLPPTypeConv.cpp. References GetAsUInt(). |
|
Sets new data to be converted.
Definition at line 75 of file MyMySQLPPTypeConv.cpp. References Free(). |