Version: 1.0.0
wxMysqlParameter Class Reference

#include <mysql_param.h>

+ Inheritance diagram for wxMysqlParameter:

Detailed Description

Definition at line 6 of file mysql_param.h.

Public Types

enum  {
  PARAM_STRING = 0, PARAM_INT, PARAM_DOUBLE, PARAM_DATETIME,
  PARAM_BOOL, PARAM_BLOB, PARAM_NULL
}
 

Public Member Functions

 wxMysqlParameter ()
 
 wxMysqlParameter (const wxString &strValue)
 
 wxMysqlParameter (int nValue)
 
 wxMysqlParameter (double dblValue)
 
 wxMysqlParameter (bool bValue)
 
 wxMysqlParameter (const wxDateTime &dateValue)
 
 wxMysqlParameter (const void *pData, long nDataLength)
 
virtual ~wxMysqlParameter ()
 
long unsigned int GetDataLength ()
 
long unsigned int * GetDataLengthPtr ()
 
const void * GetDataPtr ()
 
int GetParameterType ()
 
enum_field_types GetBufferType ()
 
- Public Member Functions inherited from wxDatabaseStringConverter
 wxDatabaseStringConverter ()
 
 wxDatabaseStringConverter (const wxChar *charset)
 
virtual ~wxDatabaseStringConverter ()
 
void SetEncoding (wxFontEncoding encoding)
 
void SetEncoding (const wxCSConv *conv)
 
const wxCSConv * GetEncoding ()
 
virtual const wxCharBuffer ConvertToUnicodeStream (const wxString &inputString)
 
virtual size_t GetEncodedStreamLength (const wxString &inputString)
 
virtual wxString ConvertFromUnicodeStream (const char *inputBuffer)
 
virtual wxString ConvertFromUnicodeStream (const wxChar *inputBuffer)
 

Private Attributes

int m_nParameterType
 
wxString m_strValue
 
int m_nValue
 
double m_dblValue
 
MYSQL_TIME * m_pDate
 
bool m_bValue
 
wxMemoryBuffer m_BufferValue
 
wxCharBuffer m_CharBufferValue
 
long unsigned int m_nBufferLength
 

Additional Inherited Members

- Static Public Member Functions inherited from wxDatabaseStringConverter
static const wxCharBuffer ConvertToUnicodeStream (const wxString &inputString, const char *encoding)
 
static wxString ConvertFromUnicodeStream (const char *inputBuffer, const char *encoding)
 
static size_t GetEncodedStreamLength (const wxString &inputString, const char *encoding)
 
static wxString ConvertFromUnicodeStream (const wxChar *inputBuffer, const char *encoding)
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PARAM_STRING 
PARAM_INT 
PARAM_DOUBLE 
PARAM_DATETIME 
PARAM_BOOL 
PARAM_BLOB 
PARAM_NULL 

Definition at line 21 of file mysql_param.h.

Constructor & Destructor Documentation

◆ wxMysqlParameter() [1/7]

wxMysqlParameter::wxMysqlParameter ( )

◆ wxMysqlParameter() [2/7]

wxMysqlParameter::wxMysqlParameter ( const wxString &  strValue)

◆ wxMysqlParameter() [3/7]

wxMysqlParameter::wxMysqlParameter ( int  nValue)

◆ wxMysqlParameter() [4/7]

wxMysqlParameter::wxMysqlParameter ( double  dblValue)

◆ wxMysqlParameter() [5/7]

wxMysqlParameter::wxMysqlParameter ( bool  bValue)

◆ wxMysqlParameter() [6/7]

wxMysqlParameter::wxMysqlParameter ( const wxDateTime &  dateValue)

◆ wxMysqlParameter() [7/7]

wxMysqlParameter::wxMysqlParameter ( const void *  pData,
long  nDataLength 
)

◆ ~wxMysqlParameter()

virtual wxMysqlParameter::~wxMysqlParameter ( )
virtual

Member Function Documentation

◆ GetBufferType()

enum_field_types wxMysqlParameter::GetBufferType ( )

◆ GetDataLength()

long unsigned int wxMysqlParameter::GetDataLength ( )

◆ GetDataLengthPtr()

long unsigned int* wxMysqlParameter::GetDataLengthPtr ( )

◆ GetDataPtr()

const void* wxMysqlParameter::GetDataPtr ( )

◆ GetParameterType()

int wxMysqlParameter::GetParameterType ( )

Member Data Documentation

◆ m_BufferValue

wxMemoryBuffer wxMysqlParameter::m_BufferValue
private

Definition at line 48 of file mysql_param.h.

◆ m_bValue

bool wxMysqlParameter::m_bValue
private

Definition at line 47 of file mysql_param.h.

◆ m_CharBufferValue

wxCharBuffer wxMysqlParameter::m_CharBufferValue
private

Definition at line 49 of file mysql_param.h.

◆ m_dblValue

double wxMysqlParameter::m_dblValue
private

Definition at line 45 of file mysql_param.h.

◆ m_nBufferLength

long unsigned int wxMysqlParameter::m_nBufferLength
private

Definition at line 50 of file mysql_param.h.

◆ m_nParameterType

int wxMysqlParameter::m_nParameterType
private

Definition at line 40 of file mysql_param.h.

◆ m_nValue

int wxMysqlParameter::m_nValue
private

Definition at line 44 of file mysql_param.h.

◆ m_pDate

MYSQL_TIME* wxMysqlParameter::m_pDate
private

Definition at line 46 of file mysql_param.h.

◆ m_strValue

wxString wxMysqlParameter::m_strValue
private

Definition at line 43 of file mysql_param.h.