Public Member Functions | Public Attributes | Protected Member Functions

OCIPL::BindOutput Struct Reference

factory for call parameters of OCI bind functions More...

#include <ocipl.h>

Collaboration diagram for OCIPL::BindOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BindOutput (SqlInt &var)
 BindOutput (int &var, OCIInd *ind=NULL)
 BindOutput (unsigned int &var, OCIInd *ind=NULL)
 BindOutput (long &var, OCIInd *ind=NULL)
 BindOutput (unsigned long &var, OCIInd *ind=NULL)
 BindOutput (char &var, OCIInd *ind=NULL)
 BindOutput (float &var, OCIInd *ind=NULL)
 BindOutput (double &var, OCIInd *ind=NULL)
 BindOutput (TCHAR *buffer)
 BindOutput (TCHAR *buffer, size_t len, ub2 type=SQLT_AFC, OCIInd *ind=NULL)
 BindOutput (tstring &str)
 BindOutput (SqlString &str)
 BindOutput (OciDate &date)
 BindOutput (SqlDateTime &date)
 BindOutput (SqlNumber &num)

Public Attributes

dvoid * valuep
sb4 value_sz
ub2 dty
OCIInd * indp

Protected Member Functions

 BindOutput ()

Detailed Description

factory for call parameters of OCI bind functions

Definition at line 2525 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::BindOutput::BindOutput ( SqlInt var ) [inline]

Definition at line 2532 of file ocipl.h.

References OCIPL::SqlInt::get_ref(), and OCIPL::SqlValue::ind().

    {
        valuep  = var.get_ref();
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = var.ind();
    }

Here is the call graph for this function:

OCIPL::BindOutput::BindOutput ( int &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2540 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(int);
        dty     = SQLT_INT;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( unsigned int &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2548 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(unsigned int);
        dty     = SQLT_UIN;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( long &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2556 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(long);
        dty     = SQLT_INT;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( unsigned long &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2564 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(unsigned long);
        dty     = SQLT_UIN;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( char &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2572 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(char);
        dty     = SQLT_CHR;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( float &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2580 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(float);
        dty     = SQLT_FLT;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( double &  var,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2588 of file ocipl.h.

    {
        valuep  = (void*)&var;
        value_sz= sizeof(double);
        dty     = SQLT_FLT;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( TCHAR *  buffer ) [inline]

Definition at line 2596 of file ocipl.h.

References _tcslen, and TCHAR.

    {
        valuep  = (dvoid*) buffer;
        value_sz= buffer? (sb4)(_tcslen(buffer)+1)*sizeof(TCHAR): 0;
        dty     = SQLT_STR;
        indp    = NULL;
    }
OCIPL::BindOutput::BindOutput ( TCHAR *  buffer,
size_t  len,
ub2  type = SQLT_AFC,
OCIInd *  ind = NULL 
) [inline]

Definition at line 2604 of file ocipl.h.

    {
        valuep  = (dvoid*) buffer;
        value_sz= (sb4)len;
        dty     = type;
        indp    = ind;
    }
OCIPL::BindOutput::BindOutput ( tstring str ) [inline]

Definition at line 2612 of file ocipl.h.

References TCHAR.

    {
        valuep  = (dvoid*) str.c_str();
        value_sz= (sb4)(str.length()+1)*sizeof(TCHAR);
        dty     = SQLT_STR;
        indp    = NULL;
    }
OCIPL::BindOutput::BindOutput ( SqlString str ) [inline]

Definition at line 2620 of file ocipl.h.

References OCIPL::SqlString::alen(), OCIPL::SqlValue::ind(), OCIPL::SqlString::str(), and TCHAR.

    {
        valuep  = (dvoid*) str.str();
        value_sz= (sb4)str.alen()*sizeof(TCHAR);
        dty     = SQLT_STR;
        indp    = str.ind();
    }

Here is the call graph for this function:

OCIPL::BindOutput::BindOutput ( OciDate date ) [inline]

Definition at line 2637 of file ocipl.h.

References OCIPL::SqlValue::ind().

    {
        valuep  = &date;
        value_sz= sizeof(OCIDate);
        dty     = SQLT_ODT;
        indp    = date.ind();
    }

Here is the call graph for this function:

OCIPL::BindOutput::BindOutput ( SqlDateTime date ) [inline]

Definition at line 2645 of file ocipl.h.

References OCIPL::SqlDateTime::get_ref(), and OCIPL::SqlValue::ind().

    {
        valuep  = date.get_ref();
        value_sz= sizeof(ocidatetime);  // 7
        dty     = SQLT_DAT;
        indp    = date.ind();
    }

Here is the call graph for this function:

OCIPL::BindOutput::BindOutput ( SqlNumber num ) [inline]

Definition at line 2653 of file ocipl.h.

References OCIPL::SqlNumber::get_ref(), and OCIPL::SqlValue::ind().

    {
        valuep  = num.get_ref();
        value_sz= sizeof(oraclenumber); // 22
        dty     = SQLT_VNU;
        indp    = num.ind();
    }

Here is the call graph for this function:

OCIPL::BindOutput::BindOutput (  ) [inline, protected]

Definition at line 2680 of file ocipl.h.

    {
    }

Member Data Documentation

Definition at line 2529 of file ocipl.h.

Referenced by OCIPL::SqlStatement::bind_output().

Definition at line 2530 of file ocipl.h.

Referenced by OCIPL::SqlStatement::bind_output().

Definition at line 2528 of file ocipl.h.

Referenced by OCIPL::SqlStatement::bind_output().

Definition at line 2527 of file ocipl.h.

Referenced by OCIPL::SqlStatement::bind_output().


The documentation for this struct was generated from the following file: