You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
953 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//////////////////////////////////////////////////////////////////////////////
//文件: SegY格式文件操作
//主要功能:
//
//程序编写:
//日期2005-12-07
//
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "binaryposition.h"
class AFX_EXT_CLASS CFormatItem
{
public:
CFormatItem(void);
~CFormatItem(void);
void Write(CString name);
int Read(CString name, CString section);
void operator=(CFormatItem& fi);
CBinaryPosition a; //一个采样点的长度
CBinaryPosition ap; //采样点长度的格式代码
CBinaryPosition n; //每道采样点数
CBinaryPosition n1;
CBinaryPosition nn;
CBinaryPosition m; //道总数
CBinaryPosition si; //采样间隔
////基于道头数据
//CBinaryPosition line; //线号
//CBinaryPosition cdp; //道号
//CBinaryPosition x; //坐标X
//CBinaryPosition x; //坐标Y
long row_head_num; //道头长度
long head_num; //文件头长度
CString section; //格式文件的段名称,即文件扩展名
};