Version: 1.0.0
wxPostgresParameter Class Reference

#include <postgresql_param.h>

+ Inheritance diagram for wxPostgresParameter:

Detailed Description

Definition at line 6 of file postgresql_param.h.

Public Types

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

Public Member Functions

 wxPostgresParameter ()
 
 wxPostgresParameter (const wxString &strValue)
 
 wxPostgresParameter (int nValue)
 
 wxPostgresParameter (double dblValue)
 
 wxPostgresParameter (bool bValue)
 
 wxPostgresParameter (const wxDateTime &dateValue)
 
 wxPostgresParameter (const void *pData, long nDataLength)
 
virtual ~wxPostgresParameter ()
 
long GetDataLength ()
 
long * GetDataLengthPointer ()
 
const void * GetDataPtr ()
 
int GetParameterType ()
 
bool IsBinary ()
 
- 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
 
wxString m_strDateValue
 
bool m_bValue
 
wxMemoryBuffer m_BufferValue
 
wxCharBuffer m_CharBufferValue
 
long 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 postgresql_param.h.

Constructor & Destructor Documentation

◆ wxPostgresParameter() [1/7]

wxPostgresParameter::wxPostgresParameter ( )

◆ wxPostgresParameter() [2/7]

wxPostgresParameter::wxPostgresParameter ( const wxString &  strValue)

◆ wxPostgresParameter() [3/7]

wxPostgresParameter::wxPostgresParameter ( int  nValue)

◆ wxPostgresParameter() [4/7]

wxPostgresParameter::wxPostgresParameter ( double  dblValue)

◆ wxPostgresParameter() [5/7]

wxPostgresParameter::wxPostgresParameter ( bool  bValue)

◆ wxPostgresParameter() [6/7]

wxPostgresParameter::wxPostgresParameter ( const wxDateTime &  dateValue)

◆ wxPostgresParameter() [7/7]

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

◆ ~wxPostgresParameter()

virtual wxPostgresParameter::~wxPostgresParameter ( )
inlinevirtual

Definition at line 19 of file postgresql_param.h.

Member Function Documentation

◆ GetDataLength()

long wxPostgresParameter::GetDataLength ( )

◆ GetDataLengthPointer()

long* wxPostgresParameter::GetDataLengthPointer ( )

◆ GetDataPtr()

const void* wxPostgresParameter::GetDataPtr ( )

◆ GetParameterType()

int wxPostgresParameter::GetParameterType ( )

◆ IsBinary()

bool wxPostgresParameter::IsBinary ( )

Member Data Documentation

◆ m_BufferValue

wxMemoryBuffer wxPostgresParameter::m_BufferValue
private

Definition at line 48 of file postgresql_param.h.

◆ m_bValue

bool wxPostgresParameter::m_bValue
private

Definition at line 47 of file postgresql_param.h.

◆ m_CharBufferValue

wxCharBuffer wxPostgresParameter::m_CharBufferValue
private

Definition at line 49 of file postgresql_param.h.

◆ m_dblValue

double wxPostgresParameter::m_dblValue
private

Definition at line 45 of file postgresql_param.h.

◆ m_nBufferLength

long wxPostgresParameter::m_nBufferLength
private

Definition at line 50 of file postgresql_param.h.

◆ m_nParameterType

int wxPostgresParameter::m_nParameterType
private

Definition at line 40 of file postgresql_param.h.

◆ m_nValue

int wxPostgresParameter::m_nValue
private

Definition at line 44 of file postgresql_param.h.

◆ m_strDateValue

wxString wxPostgresParameter::m_strDateValue
private

Definition at line 46 of file postgresql_param.h.

◆ m_strValue

wxString wxPostgresParameter::m_strValue
private

Definition at line 43 of file postgresql_param.h.