A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/dbapi__driver__convert_8hpp_source.html below:

NCBI C++ ToolKit: include/dbapi/driver/dbapi_driver_convert.hpp Source File

1 #ifndef DBAPI_DRIVER___DBAPI_DRIVER_CONVERT__HPP 2 #define DBAPI_DRIVER___DBAPI_DRIVER_CONVERT__HPP 63  operator bool

(

void

)

const 66  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

70  return

db_obj.

Value

() != 0;

74  return

ConvertFrom<Uint1, CDB_TinyInt>();

76  operator Int2

(

void

)

const 78  return

ConvertFrom<Int2, CDB_SmallInt>();

80  operator Int4

(

void

)

const 82  return

ConvertFrom<Int4, CDB_Int>();

84  operator Int8

(

void

)

const 86  return

ConvertFrom<Int8, CDB_BigInt>();

88  operator

float(

void

)

const 90  return

ConvertFrom<float, CDB_Float>();

92  operator

double(

void

)

const 94  return

ConvertFrom<double, CDB_Double>();

99  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

107  return

ConvertFrom<const CTime&, CDB_DateTime>();

111  template

<

typename

TO,

typename

FROM>

115  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

116  if

(db_obj.IsNULL()) {

119  return

MakeCP<CP>(db_obj.Value());

135

: m_Value(

value

.m_Value)

146  const int

item_num = m_Value->CurrentItemNo();

147  const EDB_Type

db_type = m_Value->ItemDataType(item_num);

154  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj_int);

155  if

(db_obj_int.

IsNULL

()) {

160

<< db_obj_int.

Value

()

165  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

171  return

db_obj.

Value

() != 0;

175  return

ConvertFrom<Uint1, CDB_TinyInt>();

179  return

ConvertFrom<Int2, CDB_SmallInt>();

184  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

191  return

MakeCP<SSafeCP>(db_obj.

Value

());

195  return

ConvertFrom<Int8, CDB_BigInt>();

197  operator

float(

void

)

const 199  return

ConvertFrom<float, CDB_Float>();

201  operator

double(

void

)

const 203  return

ConvertFrom<double, CDB_Double>();

207  const int

item_num = m_Value->CurrentItemNo();

208  const EDB_Type

db_type = m_Value->ItemDataType(item_num);

215  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj_int);

216  if

(db_obj_int.

IsNULL

()) {

221

<< db_obj_int.

Value

()

226  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

234  return

ConvertFrom<CTime, CDB_DateTime>();

238  template

<

typename

TO,

typename

FROM>

241  const int

item_num = m_Value->CurrentItemNo();

242  const EDB_Type

db_type = m_Value->ItemDataType(item_num);

249  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj_int);

250  if

(db_obj_int.

IsNULL

()) {

255

<< db_obj_int.

Value

()

260  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

262  if

(db_obj.IsNULL()) {

267  return

MakeCP<SSafeCP>(db_obj.Value());

284  operator bool

(

void

)

const

;

285  operator Int1

(

void

)

const

;

286  operator Uint1

(

void

)

const

;

287  operator Int2

(

void

)

const

;

288  operator Uint2

(

void

)

const

;

289  operator Int4

(

void

)

const

;

290  operator Uint4

(

void

)

const

;

291  operator Int8

(

void

)

const

;

292  operator Uint8

(

void

)

const

;

293  operator

float(

void

)

const

;

294  operator

double(

void

)

const

;

295  operator string

(

void

)

const

;

296  operator CTime

(

void

)

const

;

316  template

<

typename

TO,

typename

FROM>

321  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

322  if

(db_obj.IsNULL()) {

329  template

<

typename

TO,

typename

FROM>

334  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

335  if

(db_obj.IsNULL()) {

339  return Convert

(

string

(

static_cast<const char

*

>

(db_obj.Data()),

343  template

<

typename

TO,

typename

FROM>

346  FROM

db_obj(m_Value->ItemMaxSize(item_num));

348  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

349  if

(db_obj.IsNULL()) {

353  return Convert

(

string

(

static_cast<const char

*

>

(db_obj.Data()),

357  template

<

typename

TO,

typename

FROM>

363  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

364  if

(db_obj.IsNULL()) {

368  result

.resize(db_obj.Size());

369

db_obj.Read(

const_cast<void

*

>

(

static_cast<const void

*

>

(

result

.data())),

376  template

<

typename

TO,

typename

FROM>

381  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

382  if

(db_obj.IsNULL()) {

389  template

<

typename

TO>

392  const int

item_num = m_Value->CurrentItemNo();

393  const EDB_Type

db_type = m_Value->ItemDataType(item_num);

397  value

= ConvertFrom<TO, CDB_Int>();

400  value

= ConvertFrom<TO, CDB_SmallInt>();

403  value

= ConvertFrom<TO, CDB_TinyInt>();

406  value

= ConvertFrom<TO, CDB_BigInt>();

409  value

= ConvertFromStr<TO, CDB_VarChar>();

412  value

= ConvertFromChar<TO, CDB_Char>(item_num);

415  value

= ConvertFromStr<TO, CDB_VarBinary>();

418  value

= ConvertFromChar<TO, CDB_Binary>(item_num);

421  value

= ConvertFrom<TO, CDB_Float>();

424  value

= ConvertFrom<TO, CDB_Double>();

431  value

= ConvertFromLOB<TO, CDB_Text>();

434  value

= ConvertFromLOB<TO, CDB_Image>();

437  value

= ConvertFromLOB<TO, CDB_VarCharMax>();

440  value

= ConvertFromLOB<TO, CDB_VarBinaryMax>();

443  value

= ConvertFrom<TO, CDB_Bit>();

446  value

= ConvertFrom<TO, CDB_Numeric>();

449  value

= ConvertFromChar<TO, CDB_LongChar>(item_num);

455  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

458

(

"NULL long binary"

);

484  operator bool

(

void

)

const

;

485  operator Int1

(

void

)

const

;

486  operator Uint1

(

void

)

const

;

487  operator Int2

(

void

)

const

;

488  operator Uint2

(

void

)

const

;

489  operator Int4

(

void

)

const

;

490  operator Uint4

(

void

)

const

;

491  operator Int8

(

void

)

const

;

492  operator Uint8

(

void

)

const

;

493  operator

float(

void

)

const

;

494  operator

double(

void

)

const

;

495  operator string

(

void

)

const

;

496  operator CTime

(

void

)

const

;

499  template

<

typename

TO,

typename

FROM>

504  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

505  if

(db_obj.IsNULL()) {

512  template

<

typename

TO,

typename

FROM>

517  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

518  if

(db_obj.IsNULL()) {

522  return Convert

(

string

(

static_cast<const char

*

>

(db_obj.Data()),

526  template

<

typename

TO,

typename

FROM>

529  FROM

db_obj(m_Value->ItemMaxSize(item_num));

531  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

532  if

(db_obj.IsNULL()) {

536  return Convert

(

string

(

static_cast<const char

*

>

(db_obj.Data()),

540  template

<

typename

TO,

typename

FROM>

546  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

547  if

(db_obj.IsNULL()) {

551  result

.resize(db_obj.Size());

552

db_obj.Read(

const_cast<void

*

>

(

static_cast<const void

*

>

(

result

.data())),

559  template

<

typename

TO,

typename

FROM>

564  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

565  if

(db_obj.IsNULL()) {

572  template

<

typename

TO>

575  const int

item_num = m_Value->CurrentItemNo();

576  const EDB_Type

db_type = m_Value->ItemDataType(item_num);

580  value

= ConvertFrom<TO, CDB_Int>();

583  value

= ConvertFrom<TO, CDB_SmallInt>();

586  value

= ConvertFrom<TO, CDB_TinyInt>();

589  value

= ConvertFrom<TO, CDB_BigInt>();

592  value

= ConvertFromStr<TO, CDB_VarChar>();

595  value

= ConvertFromChar<TO, CDB_Char>(item_num);

598  value

= ConvertFromStr<TO, CDB_VarBinary>();

601  value

= ConvertFromChar<TO, CDB_Binary>(item_num);

604  value

= ConvertFrom<TO, CDB_Float>();

607  value

= ConvertFrom<TO, CDB_Double>();

614  value

= ConvertFromLOB<TO, CDB_Text>();

617  value

= ConvertFromLOB<TO, CDB_Image>();

620  value

= ConvertFrom<TO, CDB_Bit>();

623  value

= ConvertFrom<TO, CDB_Numeric>();

626  value

= ConvertFromChar<TO, CDB_LongChar>(item_num);

632  const_cast<CDB_Result

*

>

(m_Value)->GetItem(&db_obj);

651 template

<

typename

CP,

typename

R,

typename

S>

661 template

<

typename

CP,

typename

R>

673 template

<

typename

T1,

typename

T2>

694 template

<

typename

T1,

typename

T2>

708  const unsigned int n

=

source

.NofItems();

713  if

(

static_cast<unsigned int>

(

source

.CurrentItemNo()) <

n

) {

717  if

(

static_cast<unsigned int>

(

source

.CurrentItemNo()) <

n

) {

725 template

<

typename

CP,

typename

T>

736  const unsigned int n

=

source

.NofItems();

739  for

(

unsigned int i

=

source

.CurrentItemNo();

i

<

n

;

i

=

source

.CurrentItemNo()) {

747 template

<

typename

CP,

typename

T>

758  const unsigned int n

=

source

.NofItems();

761  for

(

unsigned int i

=

source

.CurrentItemNo();

i

<

n

;

i

=

source

.CurrentItemNo()) {

769 template

<

typename

CP,

typename

T>

780  const unsigned int n

=

source

.NofItems();

783  for

(

unsigned int i

=

source

.CurrentItemNo();

i

<

n

;

i

=

source

.CurrentItemNo()) {

791 template

<

typename

CP,

typename

T>

802  const unsigned int n

=

source

.NofItems();

805  for

(

unsigned int i

=

source

.CurrentItemNo();

i

<

n

;

i

=

source

.CurrentItemNo()) {

813 template

<

typename

K,

typename

V>

825  const unsigned int n

=

source

.NofItems();

828  for

(

unsigned int i

=

source

.CurrentItemNo();

i

<

n

;

i

=

source

.CurrentItemNo()) {

833

res_val.

insert

(pair<K, V>(k, v));

840 template

<

typename

K,

typename

V>

852  const unsigned int n

=

source

.NofItems();

855  for

(

unsigned int i

=

source

.CurrentItemNo();

i

<

n

;

i

=

source

.CurrentItemNo()) {

860  if

(

static_cast<unsigned int>

(

source

.CurrentItemNo()) <

n

) {

864

res_val.

insert

(pair<K, V>(k, v));

872 template

<

typename

CP,

typename

TO>

888 template

<

typename

CP,

typename

T>

896  while

(rs->Fetch()) {

902 template

<

typename

CP,

typename

T>

910  while

(rs->Fetch()) {

916 template

<

typename

CP,

typename

T>

924  while

(rs->Fetch()) {

930 template

<

typename

CP,

typename

T>

938  while

(rs->Fetch()) {

944 template

<

typename

CP,

typename

K,

typename

V>

952  while

(rs->Fetch()) {

956  value

.insert(pair<K, V>(k, v));

962 template

<

typename

CP>

969

: m_Stmt(other.m_Stmt)

975  if

(!m_Stmt->Send()) {

982

m_Stmt->DumpResults();

992  template

<

typename

TO>

993  operator

TO(

void

)

const 997  while

(m_Stmt->HasMoreResults()) {

998

shared_ptr<CDB_Result> rs(m_Stmt->Result());

1000  if

(rs.get() ==

NULL

) {

1017 template

<

typename

CP>

1024

: m_Stmt(other.m_Stmt)

1030  if

(!m_Stmt->Send()) {

1037

m_Stmt->DumpResults();

1047  template

<

typename

TO>

1048  operator

TO(

void

)

const 1052  while

(m_Stmt->HasMoreResults()) {

1053

shared_ptr<CDB_Result> rs(m_Stmt->Result());

1055  if

(rs.get() ==

NULL

) {

1073 template

<

typename

CP>

1080

: m_Stmt(other.m_Stmt)

1086  if

(!m_Stmt->Send()) {

1093

m_Stmt->DumpResults();

1103  template

<

typename

TO>

1104  operator

TO(

void

)

const 1108  while

(m_Stmt->HasMoreResults()) {

1109

shared_ptr<CDB_Result> rs(m_Stmt->Result());

1111  if

(rs.get() ==

NULL

) {

1128 template

<

typename

CP>

1135

: m_Stmt(other.m_Stmt)

1141  if

(!m_Stmt->Send()) {

1148

m_Stmt->DumpResults();

1158  template

<

typename

TO>

1159  operator

TO(

void

)

const 1163  while

(m_Stmt->HasMoreResults()) {

1164

shared_ptr<CDB_Result> rs(m_Stmt->Result());

1166  if

(rs.get() ==

NULL

) {

1184 template

<

typename

CP>

1191

: m_Stmt(other.m_Stmt)

1197

, m_RS(

value

.Open())

1208  template

<

typename

TO>

1209  operator

TO(

void

)

const 1220  mutable

shared_ptr<CDB_Result>

m_RS

;

1223 template

<

typename

CP>

1230

: m_Stmt(other.m_Stmt)

1236

, m_RS(

value

->Open())

1247  template

<

typename

TO>

1248  operator

TO(

void

)

const 1259  mutable

shared_ptr<CDB_Result>

m_RS

;

iterator_bool insert(const value_type &val)

iterator_bool insert(const value_type &val)

static void Convert(const shared_ptr< CDB_Result > &rs, TValue &value)

static void Convert(const shared_ptr< CDB_Result > &rs, TValue &value)

static void Convert(const shared_ptr< CDB_Result > &rs, TValue &value)

static void Convert(const shared_ptr< CDB_Result > &rs, TValue &value)

static void Convert(const shared_ptr< CDB_Result > &rs, TValue &value)

static void Convert(const shared_ptr< CDB_Result > &rs, TValue &value)

static R Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

static TValue Make(CDB_Result &source)

CValueConvert(const CValueConvert< CP, TObj > &other)

CValueConvert(TObj &value)

shared_ptr< CDB_Result > m_RS

shared_ptr< CDB_Result > m_RS

CValueConvert(TObj *value)

shared_ptr< TObj > m_Stmt

CValueConvert(const CValueConvert< CP, TObj * > &other)

CValueConvert(TObj &value)

CValueConvert(const CValueConvert< CP, TObj > &other)

CValueConvert(const CValueConvert< CP, TObj * > &other)

shared_ptr< TObj > m_Stmt

CValueConvert(TObj *value)

CValueConvert(const CValueConvert< CP, TObj > &other)

CValueConvert(TObj &value)

shared_ptr< TObj > m_Stmt

CValueConvert(TObj *value)

CValueConvert(const CValueConvert< CP, TObj * > &other)

TO ConvertFromChar(const int item_num) const

TO ConvertFromStr(void) const

TO ConvertFrom(void) const

TO ConvertFromLOB(void) const

const CDB_Result obj_type

TO Convert2CTime(void) const

void ReadCDBObject(TO &value) const

const CDB_Result obj_type

TO Convert2CTime(void) const

TO ConvertFromChar(const int item_num) const

TO ConvertFrom(void) const

TO ConvertFromLOB(void) const

void ReadCDBObject(TO &value) const

TO ConvertFromStr(void) const

const CDB_Result obj_type

TO ConvertFrom(void) const

CValueConvert(obj_type &value)

const CDB_Result obj_type

TO ConvertFrom(void) const

CValueConvert(const CValueConvert< CP, CDB_Result > &value)

CValueConvert(obj_type &value)

const char * Data(void) const

const void * Value() const

uint8_t Uint1

1-byte (8-bit) unsigned integer

int16_t Int2

2-byte (16-bit) signed integer

int32_t Int4

4-byte (32-bit) signed integer

uint32_t Uint4

4-byte (32-bit) unsigned integer

uint16_t Uint2

2-byte (16-bit) unsigned integer

int64_t Int8

8-byte (64-bit) signed integer

uint64_t Uint8

8-byte (64-bit) unsigned integer

int8_t Int1

1-byte (8-bit) signed integer

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define NCBI_DBAPIDRIVER_EXPORT

const GenericPointer< typename T::ValueType > T2 value

const CharType(& source)[N]

const value_slice::CValueConvert< value_slice::SRunTimeCP, FROM > Convert(const FROM &value)

#define NCBI_CONVERT_TO(x, y)

#define NCBI_REPORT_CONVERSION_ERROR(x)

#define NCBI_REPORT_CONSTANT_CONVERSION_ERROR(x)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4