array of integer bind variable buffers More...
#include <ocipl.h>


Public Member Functions | |
| SqlIntArray (int size=g_OCIPL_BULK_ROWS) | |
| SqlIntArray (const SqlIntArray &other) | |
| ~SqlIntArray () | |
| int | get_int (int row, int null=INT_NULL) const |
| int * | get_ref (int row) |
| const int * | get_ptr (int row) const |
| tstring | 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 | |
| int * | _pvalues |
| int | _count |
| SqlInd * | _pind |
array of integer bind variable buffers
Definition at line 1364 of file ocipl.h.
| OCIPL::SqlIntArray::SqlIntArray | ( | int | size = g_OCIPL_BULK_ROWS ) |
[inline] |
Definition at line 1367 of file ocipl.h.
: SqlIndArray(size), _pvalues(static_cast<int*>(ocipl_alloc(size*sizeof(int)))) { }
| OCIPL::SqlIntArray::SqlIntArray | ( | const SqlIntArray & | other ) | [inline] |
Definition at line 1373 of file ocipl.h.
References OCIPL::SqlIndArray::_count, and _pvalues.
: SqlIndArray(other), _pvalues(static_cast<int*>(ocipl_alloc(other._count*sizeof(int)))) { if (_pvalues) memcpy(_pvalues, other._pvalues, other._count*sizeof(int)); }
| OCIPL::SqlIntArray::~SqlIntArray | ( | ) | [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;}

| int OCIPL::SqlIntArray::get_int | ( | int | row, |
| int | null = INT_NULL |
||
| ) | const [inline] |
| const int* OCIPL::SqlIntArray::get_ptr | ( | int | row ) | const [inline] |
| int* OCIPL::SqlIntArray::get_ref | ( | int | row ) | [inline] |
Definition at line 1388 of file ocipl.h.
Referenced by OCIPL::DefinePar::DefinePar().
{return &_pvalues[row];}

| SqlInd& OCIPL::SqlIndArray::ind | ( | int | idx ) | [inline, inherited] |
| 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];}

| 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] |
| tstring OCIPL::SqlIntArray::str | ( | int | row ) | const [inline] |
Definition at line 1391 of file ocipl.h.
References _stprintf_s1, TCHAR, and TEXT.
{
if (_pind[row].is_not_null()) {
TCHAR buffer[16];
_stprintf_s1(buffer, sizeof(buffer)/sizeof(TCHAR), TEXT("%d"), _pvalues[row]);
return buffer;
} else
return tstring();
}
int OCIPL::SqlIndArray::_count [protected, inherited] |
Definition at line 1288 of file ocipl.h.
Referenced by OCIPL::SqlIndArray::SqlIndArray(), SqlIntArray(), and OCIPL::SqlStringArray::SqlStringArray().
SqlInd* OCIPL::SqlIndArray::_pind [protected, inherited] |
Definition at line 1289 of file ocipl.h.
Referenced by OCIPL::SqlIndArray::SqlIndArray().
int* OCIPL::SqlIntArray::_pvalues [protected] |
Definition at line 1402 of file ocipl.h.
Referenced by SqlIntArray().
1.7.2