Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MapRecordSet.h
Package: SHP_to_VCT.rar [view]
Upload User: bjslfz
Upload Date: 2022-07-25
Package Size: 4430k
Code Size: 2k
Category:
File Operate
Development Platform:
C/C++
- /************************************************************
- 文件名: MapRecordSet.h
- 作者: 谢婧 Version : 1.0 Date: 2008/05/26
- 类描述: 对Shp对象的属性数据记录集(DBF数据)的管理
- 邮件地址:xiejing0707@163.com
- ***********************************************************/
- #ifndef _MAP_RECORDSET_H_
- #define _MAP_RECORDSET_H_
- #include "dbfFile.h"
- #include "MapTableDesc.h"
- #define MAX_CACH_SIZE 100 //最大缓存记录数
- class CMapFields;
- //记录集移动的位置
- typedef enum {
- BookmarkCurrent,
- BookmarkFirst,
- BookmarkLast
- } RECORDSTART;
- class CMapRecordSet {
- public:
- CMapRecordSet();
- ~CMapRecordSet();
- //ATTRIBUTE
- public:
- long GetRecordCount();
- CMapFields* GetFields(long sIndex);
- CMapTableDesc* GetTableDesc();
- BOOL GetBOF();
- BOOL GetEOF();
- int GetCacheSize();
- DBF_HEADER m_Header; //存储DBF文件头
- BOOL SetCacheSize(int& CacheSize);
- //opeeration
- public:
- BOOL openDBF(CString& csFileName);
- void MoveFirst();
- void MoveLast();
- void MoveNext();
- void MovePrev();
- BOOL Move(int iNumRecords , RECORDSTART Start );
- void ReadRecord(unsigned long lRecordID);
- CMapTableDesc m_TableDesc;
- CArray<CMapFields*,CMapFields*> m_Fields; //记录集缓冲区
- CFile fDbf;
- unsigned long iCursorPos; //游标当前位置
- void Clear();
- private:
- int m_CacheSize;
- BOOL bBOF,bEOF;
- private:
- BOOL m_bDbfOpen; //数据库文件是否打开
- };
- //extern static void SwapWord( int length, void * wordP );
- #endif //_MAP_RECORDSET_H_