array of string bind variable buffers More...
#include <ocipl.h>
Public Member Functions | |
SqlStringArray (int size=g_OCIPL_BULK_ROWS, int blen=OCIPL_DEFAULT_STRING_BUFFER) | |
SqlStringArray (const SqlStringArray &other) | |
~SqlStringArray () | |
size_t | len (int row) const |
size_t | blen () const |
size_t | alen () const |
void | clear (int row) |
void | assign (int row, const TCHAR *s) |
TCHAR * | str (int row) |
const TCHAR * | c_str (int row) const |
bool | is_null (int idx) const |
bool | is_not_null (int idx) const |
const SqlInd & | ind (int idx) const |
SqlInd & | ind (int idx) |
int | get_buffer_count () const |
Protected Attributes | |
size_t | _blen |
TCHAR * | _buffer |
int | _count |
SqlInd * | _pind |
array of string bind variable buffers
Definition at line 1488 of file ocipl.h.
OCIPL::SqlStringArray::SqlStringArray | ( | int | size = g_OCIPL_BULK_ROWS , |
int | blen = OCIPL_DEFAULT_STRING_BUFFER |
||
) | [inline] |
OCIPL::SqlStringArray::SqlStringArray | ( | const SqlStringArray & | other ) | [inline] |
Definition at line 1500 of file ocipl.h.
References _blen, OCIPL::SqlIndArray::_count, and TCHAR.
: SqlIndArray(other), _blen(other._blen), _buffer(static_cast<TCHAR*>(ocipl_alloc(other._count*(other._blen+1)*sizeof(TCHAR)))) { if (_buffer) memcpy(_buffer, 0, other._count*(other._blen+1)*sizeof(TCHAR)); }
OCIPL::SqlStringArray::~SqlStringArray | ( | ) | [inline] |
size_t OCIPL::SqlStringArray::alen | ( | ) | const [inline] |
Definition at line 1516 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::bind_input(), and OCIPL::DefinePar::DefinePar().
{return _blen+1;}
void OCIPL::SqlStringArray::assign | ( | int | row, |
const TCHAR * | s | ||
) | [inline] |
size_t OCIPL::SqlStringArray::blen | ( | ) | const [inline] |
const TCHAR* OCIPL::SqlStringArray::c_str | ( | int | row ) | const [inline] |
Definition at line 1523 of file ocipl.h.
References TEXT.
Referenced by OCIPL::SqlVariantArray::number(), OCIPL::SqlVariantArray::oci_date(), and OCIPL::SqlVariantArray::str().
{return is_not_null(row)? _buffer + row*(_blen+1): TEXT("");}
void OCIPL::SqlStringArray::clear | ( | int | row ) | [inline] |
int OCIPL::SqlIndArray::get_buffer_count | ( | ) | const [inline, inherited] |
Definition at line 1285 of file ocipl.h.
Referenced by OCIPL::DefinePar::DefinePar().
{return _count;}
const SqlInd& OCIPL::SqlIndArray::ind | ( | int | idx ) | const [inline, inherited] |
Definition at line 1282 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::bind_input(), and OCIPL::DefinePar::DefinePar().
{return _pind[idx];}
SqlInd& OCIPL::SqlIndArray::ind | ( | int | idx ) | [inline, inherited] |
bool OCIPL::SqlIndArray::is_not_null | ( | int | idx ) | const [inline, inherited] |
Definition at line 1280 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::is_not_null(), OCIPL::SqlVariantArray::number(), OCIPL::SqlVariantArray::oci_date(), and OCIPL::SqlVariantArray::sql_date().
{return _pind[idx].is_not_null();}
bool OCIPL::SqlIndArray::is_null | ( | int | idx ) | const [inline, inherited] |
size_t OCIPL::SqlStringArray::len | ( | int | row ) | const [inline] |
TCHAR* OCIPL::SqlStringArray::str | ( | int | row ) | [inline] |
Definition at line 1522 of file ocipl.h.
Referenced by OCIPL::SqlVariantArray::bind_input(), and OCIPL::DefinePar::DefinePar().
size_t OCIPL::SqlStringArray::_blen [protected] |
Definition at line 1526 of file ocipl.h.
Referenced by SqlStringArray().
TCHAR* OCIPL::SqlStringArray::_buffer [protected] |
int OCIPL::SqlIndArray::_count [protected, inherited] |
Definition at line 1288 of file ocipl.h.
Referenced by OCIPL::SqlIndArray::SqlIndArray(), OCIPL::SqlIntArray::SqlIntArray(), and SqlStringArray().
SqlInd* OCIPL::SqlIndArray::_pind [protected, inherited] |
Definition at line 1289 of file ocipl.h.
Referenced by OCIPL::SqlIndArray::SqlIndArray().