Public Member Functions | Public Attributes

OCIPL::TrimBindPar Struct Reference

Binding of input strings with trimming to the specified maximum length. More...

#include <ocipl.h>

Inheritance diagram for OCIPL::TrimBindPar:
Inheritance graph
[legend]
Collaboration diagram for OCIPL::TrimBindPar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TrimBindPar (const TCHAR *buffer, size_t max_len)
 TrimBindPar (const tstring &str, size_t max_len)
 TrimBindPar (const SqlString &str, size_t max_len)

Public Attributes

const dvoid * valuep
sb4 value_sz
ub2 dty
const OCIInd * indp

Detailed Description

Binding of input strings with trimming to the specified maximum length.

Definition at line 2688 of file ocipl.h.


Constructor & Destructor Documentation

OCIPL::TrimBindPar::TrimBindPar ( const TCHAR *  buffer,
size_t  max_len 
) [inline]

Definition at line 2690 of file ocipl.h.

References _tcslen, min, and TCHAR.

    {
        size_t len = _tcslen(buffer);

        valuep  = (dvoid*) buffer;
        value_sz= (sb4)min(len, max_len)*sizeof(TCHAR);
        dty     = SQLT_AFC;
        indp    = NULL;
    }
OCIPL::TrimBindPar::TrimBindPar ( const tstring str,
size_t  max_len 
) [inline]

Definition at line 2700 of file ocipl.h.

References min, and TCHAR.

    {
        size_t len = str.length();

        valuep  = (dvoid*) str.c_str();
        value_sz= (sb4)min(len, max_len)*sizeof(TCHAR);
        dty     = SQLT_AFC;
        indp    = NULL;
    }
OCIPL::TrimBindPar::TrimBindPar ( const SqlString str,
size_t  max_len 
) [inline]

Definition at line 2710 of file ocipl.h.

References OCIPL::SqlString::c_str(), OCIPL::SqlString::len(), min, and TCHAR.

    {
        size_t len = str.len();

        valuep  = (dvoid*) str.c_str();
        value_sz= (sb4)min(len, max_len)*sizeof(TCHAR);
        dty     = SQLT_AFC;
        indp    = NULL;
    }

Here is the call graph for this function:


Member Data Documentation

ub2 OCIPL::BindInput::dty [inherited]

Definition at line 2332 of file ocipl.h.

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

const OCIInd* OCIPL::BindInput::indp [inherited]

Definition at line 2333 of file ocipl.h.

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

sb4 OCIPL::BindInput::value_sz [inherited]

Definition at line 2331 of file ocipl.h.

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

const dvoid* OCIPL::BindInput::valuep [inherited]

Definition at line 2330 of file ocipl.h.

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


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