⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svfreadfile.cpp

📁 GemoMedia 应用 演示了其使用方法
💻 CPP
字号:
// SVFReadFile.cpp: implementation of the CSVFReadFile class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SvfToGeoMedia.h"
#include "SVFReadFile.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

extern void SendMsg(CString str);
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSVFReadFile::CSVFReadFile()
{

}

CSVFReadFile::~CSVFReadFile()
{

}

void CSVFReadFile::SetParam(list<CGeoObj*>* pGeolist)
{
	m_pGeolist = pGeolist;
}

// 读SVF文件
void CSVFReadFile::ReadFile(CString strFileName)
{
	CStdioFile file;
	
	if (!file.Open(strFileName,CFile::modeRead|CFile::typeText))
	{
		CString strMsg = "文件"+strFileName+"打开失败!";
		AfxMessageBox(strMsg);
		SendMsg(strMsg);
	}
	
	CString strLine("");
	while(file.ReadString(strLine))
	{
		m_analyze.SetParam(m_pGeolist);
		m_analyze.ReadString(strLine);
	}
	
	file.Close();
}










































⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -