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

📄 tseg2.h

📁 对seg2格式数据处理的一个包装类
💻 H
字号:
// TSeg2.h: interface for the TSeg2 class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TSEG2_H__CC8BCD88_0D02_40BF_84FF_F9BCBF87D012__INCLUDED_)
#define AFX_TSEG2_H__CC8BCD88_0D02_40BF_84FF_F9BCBF87D012__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class TSeg2FileHead  
{
public:
	TSeg2FileHead();
	virtual ~TSeg2FileHead();
	int iId;//3 a55(文件描述块ID)
	int iFxg;//修改数
	int iPointLarge;//道指针子块的大小(M)
	int iNt;//文件中的道数
	int cAscii,cAscii1,cAscii2;//字符串终端大小
	int cLineend,cLineend1,cLineend2;
	char cDemo1[18];
	long int lPointNt[128];//
	CStringArray	m_FHString;
	int Position;//文件描述块的大小位置
	int GetPosition(){return Position;};

};


class TSeg2Chanel //: public  TSeg2FileHead
{
public:
	TSeg2Chanel();
	virtual ~TSeg2Chanel();
	int iId;
	int iLargeHead;
	long int iLargeData;
	long int iSamples;
	int iDataType;
	char cDemo[19];
	CString cChar;
	CStringArray	m_THString;
	CByteArray lpData;
};
class TSeg2  
{
public:
	int ReadSeg2();
	void OpenFile();
	BOOL IsSeg2File();

	TSeg2();
	virtual ~TSeg2();
	TSeg2Chanel& ReadChanel(int nt);
	TSeg2FileHead& ReadFileHead();

private:
	TSeg2Chanel m_ChanelHead;
	TSeg2FileHead m_FileHead;
	CFile *m_Seg2File;
	BOOL m_IsSeg2File,m_IsOpen;
	CString m_strFileName;

};



#endif // !defined(AFX_TSEG2_H__CC8BCD88_0D02_40BF_84FF_F9BCBF87D012__INCLUDED_)

⌨️ 快捷键说明

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