Version: 1.0.0
include
wx
database
postgresql
postgresql_param.h
Go to the documentation of this file.
1
#ifndef _WX_DATABASE_POSTGRESQL_PARAMETER_H_
2
#define _WX_DATABASE_POSTGRESQL_PARAMETER_H_
3
4
#include "
wx/database/wxprec.h
"
5
6
class
wxPostgresParameter
:
public
wxDatabaseStringConverter
7
{
8
public
:
9
// ctor
10
wxPostgresParameter
();
11
wxPostgresParameter
(
const
wxString& strValue);
12
wxPostgresParameter
(
int
nValue);
13
wxPostgresParameter
(
double
dblValue);
14
wxPostgresParameter
(
bool
bValue);
15
wxPostgresParameter
(
const
wxDateTime& dateValue);
16
wxPostgresParameter
(
const
void
* pData,
long
nDataLength);
17
18
// dtor
19
virtual
~wxPostgresParameter
() { }
20
21
enum
{
22
PARAM_STRING
= 0,
23
PARAM_INT
,
24
PARAM_DOUBLE
,
25
PARAM_DATETIME
,
26
PARAM_BOOL
,
27
PARAM_BLOB
,
28
PARAM_NULL
29
};
30
31
long
GetDataLength
();
32
long
*
GetDataLengthPointer
();
33
34
const
void
*
GetDataPtr
();
35
int
GetParameterType
();
36
37
bool
IsBinary
();
38
39
private
:
40
int
m_nParameterType
;
41
42
// A union would probably be better here
43
wxString
m_strValue
;
44
int
m_nValue
;
45
double
m_dblValue
;
46
wxString
m_strDateValue
;
47
bool
m_bValue
;
48
wxMemoryBuffer
m_BufferValue
;
49
wxCharBuffer
m_CharBufferValue
;
50
long
m_nBufferLength
;
51
52
};
53
54
55
#endif//_WX_DATABASE_POSTGRESQL_PARAMETER_H_
wxprec.h
wxPostgresParameter::~wxPostgresParameter
virtual ~wxPostgresParameter()
Definition:
postgresql_param.h:19
wxDatabaseStringConverter
Definition:
string_converter.h:6
wxPostgresParameter::PARAM_BOOL
Definition:
postgresql_param.h:26
wxPostgresParameter::PARAM_NULL
Definition:
postgresql_param.h:28
wxPostgresParameter::m_dblValue
double m_dblValue
Definition:
postgresql_param.h:45
wxPostgresParameter::GetParameterType
int GetParameterType()
wxPostgresParameter::IsBinary
bool IsBinary()
wxPostgresParameter::m_bValue
bool m_bValue
Definition:
postgresql_param.h:47
wxPostgresParameter::m_nBufferLength
long m_nBufferLength
Definition:
postgresql_param.h:50
wxPostgresParameter::GetDataPtr
const void * GetDataPtr()
wxPostgresParameter::m_strValue
wxString m_strValue
Definition:
postgresql_param.h:43
wxPostgresParameter::m_nParameterType
int m_nParameterType
Definition:
postgresql_param.h:40
wxPostgresParameter::m_strDateValue
wxString m_strDateValue
Definition:
postgresql_param.h:46
wxPostgresParameter::PARAM_BLOB
Definition:
postgresql_param.h:27
wxPostgresParameter::PARAM_INT
Definition:
postgresql_param.h:23
wxPostgresParameter::PARAM_DATETIME
Definition:
postgresql_param.h:25
wxPostgresParameter::wxPostgresParameter
wxPostgresParameter()
wxPostgresParameter::m_CharBufferValue
wxCharBuffer m_CharBufferValue
Definition:
postgresql_param.h:49
wxPostgresParameter::GetDataLengthPointer
long * GetDataLengthPointer()
wxPostgresParameter::GetDataLength
long GetDataLength()
wxPostgresParameter::m_BufferValue
wxMemoryBuffer m_BufferValue
Definition:
postgresql_param.h:48
wxPostgresParameter::PARAM_DOUBLE
Definition:
postgresql_param.h:24
wxPostgresParameter::PARAM_STRING
Definition:
postgresql_param.h:22
wxPostgresParameter
Definition:
postgresql_param.h:6
wxPostgresParameter::m_nValue
int m_nValue
Definition:
postgresql_param.h:44
Generated on Mon Aug 19 2019 16:14:36 for wxDatabase by
Doxygen
1.8.15