referencetabinfo.cpp at tip Вы: nobody
Вход

File sqlite1c/SQL_DBF/referencetabinfo.cpp from the latest check-in


// referencetabinfo.cpp
#include "StdAfx.h"
#include "referencetabinfo.h"

CReferenceTabInfo::CReferenceTabInfo(CStringArray& arrOfNames)
{
	CSbCntTypeDef* pSbDef = pMetaDataCont->GetSTypeDef(arrOfNames[1]);
	if(!pSbDef)
	{
		setError(" %s  .", (LPCSTR)arrOfNames[1]);
		return;
	}
	m_strTableName = pSbDef->GetTableName();
	m_pTable = static_cast<CTableEx*>(pDataDict->GetTable(m_strTableName));
	
	CNoCaseMap<CString> aliaces;
	CDWordArray longStr;
	fillNamesFromObjs(pSbDef->GetParams(), aliaces, &longStr);
	fillTabInfo(aliaces, &longStr);
}