Version: 1.0.0
mysql_param.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_MYSQL_PARAMETER_H_
2 #define _WX_DATABASE_MYSQL_PARAMETER_H_
3 
4 #include "wx/database/wxprec.h"
5 
7 {
8 public:
9  // ctor
11  wxMysqlParameter(const wxString& strValue);
12  wxMysqlParameter(int nValue);
13  wxMysqlParameter(double dblValue);
14  wxMysqlParameter(bool bValue);
15  wxMysqlParameter(const wxDateTime& dateValue);
16  wxMysqlParameter(const void* pData, long nDataLength);
17 
18  // dtor
19  virtual ~wxMysqlParameter();
20 
21  enum {
29  };
30 
31  long unsigned int GetDataLength();
32  long unsigned int* GetDataLengthPtr();
33 
34  const void* GetDataPtr();
35  int GetParameterType();
36 
37  enum_field_types GetBufferType();
38 
39 private:
41 
42  // A union would probably be better here
43  wxString m_strValue;
44  int m_nValue;
45  double m_dblValue;
46  MYSQL_TIME* m_pDate;
47  bool m_bValue;
48  wxMemoryBuffer m_BufferValue;
49  wxCharBuffer m_CharBufferValue;
50  long unsigned int m_nBufferLength;
51 
52 };
53 
54 
55 #endif//_WX_DATABASE_MYSQL_PARAMETER_H_
MYSQL_TIME * m_pDate
Definition: mysql_param.h:46
const void * GetDataPtr()
long unsigned int * GetDataLengthPtr()
virtual ~wxMysqlParameter()
long unsigned int GetDataLength()
wxMemoryBuffer m_BufferValue
Definition: mysql_param.h:48
long unsigned int m_nBufferLength
Definition: mysql_param.h:50
enum_field_types GetBufferType()
wxCharBuffer m_CharBufferValue
Definition: mysql_param.h:49
wxString m_strValue
Definition: mysql_param.h:43