Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTSegment::SetSegmentKSeg

Establishes a segment’s extended key segment definition.

Declaration

void CTSegment::SetSegmentKSeg(pctKSEGDEF pKSeg);

Description

CTSegment::SetSegmentKSeg() establishes a segment’s extended key segment definition. pKSeg is a pointer to an extended key segment definition structure with the extended key definition.

Return

void

Example

ctKSEGDEF kseg;


kseg.kseg_ssiz = ctKSEG_SSIZ_COMPUTED;

kseg.kseg_type = ctKSEG_TYPE_UNICODE;

kseg.kseg_styp = ctKSEG_STYP_UTF16;

kseg.kseg_comp = ctKSEG_COMPU_S_DEFAULT | ctKSEG_COMPU_N_NONE;

kseg.kseg_desc = "en_US"

hSegment.SetSegmentKSeg(&kseg);

See Also

CTIndex::GetIndexKSeg(), CTIndex::SetIndexKSeg(), CTSegment::GetSegmentKSeg(),
CTSegment::SetKSegDefaults(), CTTable::GetTableKSeg(), CTTable::SetTableKSeg()

TOCIndex