| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 | #include "stdafx.h"#include "InformationTable.h"#include "DBConst.h"namespace OTSSQLITE{	void CInformationTable::AddColumn(ColumnDefine col)	{		return myTable->AddColumn(col);	}	int CInformationTable::GetColumnCount()	{		return myTable->GetColumnCount();	}	CString CInformationTable::GetTableName()	{		return myTable->GetTableName();	}	void CInformationTable::SetTableName(LPCTSTR a_sTableName)	{		return myTable->SetTableName(a_sTableName);	}	CString CInformationTable::GetColumnName(const int a_nColId)	{		return myTable->GetColumnName(a_nColId);	}	CString CInformationTable::GetColumnFullName(const int a_nColId)	{		return myTable->GetColumnFullName(a_nColId);	}	CString CInformationTable::GetColumnNames(const BOOL a_bWithPrimary /*= TRUE*/)	{		return myTable->GetColumnNames(a_bWithPrimary);	}	CString CInformationTable::GetColumnFullNames(const BOOL a_bWithPrimary /*= TRUE*/)	{		return myTable->GetColumnFullNames(a_bWithPrimary);	}	OTSSQLITE::ColumnType CInformationTable::GetColumnType(const int a_nColId)	{		return myTable->GetColumnType(a_nColId);	}	CString CInformationTable::GetCreateTableCommandString()	{		return myTable->GetCreateTableCommandString();	}	CString CInformationTable::GetDeleteTableCommandString()	{		return myTable->GetDeleteTableCommandString();	}	CString CInformationTable::GetRemoveAllRowsCommandString()	{		return myTable->GetRemoveAllRowsCommandString();	}	CString CInformationTable::GetInsertCommandFormatString(const BOOL a_bWithPrimary /*= FALSE*/)	{		return myTable->GetInsertCommandFormatString(a_bWithPrimary);	}	CString CInformationTable::GetInsertCommandFormatString(std::vector<int>& a_colIndexes)	{		return myTable->GetInsertCommandFormatString();	}	CString CInformationTable::GetUpdateCommandFormatString(std::vector<int>& a_updateColIndexes, const int a_nConditionColIndex)	{		return myTable->GetUpdateCommandFormatString(a_updateColIndexes,a_nConditionColIndex);	}	CInformationTable::CInformationTable()	{		myTable = CreateNewSQLiteTable();		//m_listcolumnDefines.clear();		myTable->AddColumn(std::make_pair(_T("name"), ColumnType::ID::STRING));		myTable->AddColumn(std::make_pair(_T("value"), ColumnType::ID::STRING));		myTable->AddColumn(std::make_pair(_T("comment"), ColumnType::ID::STRING));		ASSERT(myTable->GetColumnCount() == ((int)ColumnID::MAX - (int)ColumnID::MIN) + 1);		SetTableName(g_sGeneralInfoTableName);	}	CInformationTable::~CInformationTable()	{	}}
 |