/****************************************************************************** Copyright (c) 2000 Microsoft Corporation Module Name: Index.cpp Abstract: This file contains the implementation of the JetBlue::Index class. Revision History: Davide Massarenti (Dmassare) 05/19/2000 created ******************************************************************************/ #include //////////////////////////////////////////////////////////////////////////////// JetBlue::Index::Index() { m_sesid = JET_sesidNil; // JET_SESID m_sesid; m_tableid = JET_tableidNil; // JET_TABLEID m_tableid; // MPC::string m_strName; m_grbitIndex = 0; // JET_GRBIT m_grbitIndex; m_cKey = 0; // LONG m_cKey; m_cEntry = 0; // LONG m_cEntry; m_cPage = 0; // LONG m_cPage; // ColumnVector m_vecColumns; // Column m_fake; } JetBlue::Index::~Index() { } //////////////////////////////////////// HRESULT JetBlue::Index::GenerateKey( /*[out]*/ LPSTR& szKey , /*[out]*/ unsigned long& cKey ) { __HCP_FUNC_ENTRY( "JetBlue::Index::Get" ); HRESULT hr; LPSTR szPtr; int iLen = m_vecColumns.size(); int iPos; szKey = NULL; cKey = 1; for(iPos=0; iPos