LinkDataSet.cpp
上传用户:y440e3
上传日期:2010-03-08
资源大小:200k
文件大小:1k
- // LinkDataSet.cpp : implementation file
- //
- #include "stdafx.h"
- #include "draw.h"
- #include "LinkDataSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CLinkDataSet
- IMPLEMENT_DYNAMIC(CLinkDataSet, CRecordset)
- CLinkDataSet::CLinkDataSet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CLinkDataSet)
- m_database_id = 0;
- m_record_id = 0;
- m_graph_id = 0;
- m_element_id = 0;
- m_link_mode = 0;
- m_nFields = 5;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CLinkDataSet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=GISBOOK");
- }
- CString CLinkDataSet::GetDefaultSQL()
- {
- return _T("[dbo].[LinkInfo]");
- }
- void CLinkDataSet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CLinkDataSet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Int(pFX, _T("[database_id]"), m_database_id);
- RFX_Long(pFX, _T("[record_id]"), m_record_id);
- RFX_Int(pFX, _T("[graph_id]"), m_graph_id);
- RFX_Long(pFX, _T("[element_id]"), m_element_id);
- RFX_Int(pFX, _T("[link_mode]"), m_link_mode);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CLinkDataSet diagnostics
- #ifdef _DEBUG
- void CLinkDataSet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CLinkDataSet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG