Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTSession::GetLibType

Retrieves the c-tree Plus operational model used when compiling the c-treeDB library.

DECLARATION

LIB_TYPE CTSession::GetLibType()

DESCRIPTION

ctdbGetLibType() provides the ability to detect c-tree Plus operational model used when compiling a c-treeDB C library.

RETURns

ctdbGetLibType() returns a value of type CTLIB_TYPE.

CTLIB_TYPE

Description

CTLIB_SINGLE

Single user libary.

CTLIB_MUSER

Multi-user libary.

CTLIB_CLIENT

Client libary

CTLIB_LOCLIB

LOCLIB model.

CTLIB_SERVER

Server side library.

CTLIB_THREA

Multi-threaded enabled.

CTLIB_TRAN

Transaction processing enabled.

The return value has the following bits set if the library supports optional features.

Optional Bits

Description

 

CTLIB_THREA

Multi-threaded enabled.

CTLIB_TRAN

Transaction processing enabled.

See "c-treeDB Errors and Return Values" for a complete listing of valid c-treeDB error codes and return values.

TOCIndex