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.
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD>: SegY<67><59>ʽ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д:
|
|
|
|
|
|
//<2F><><EFBFBD>ڣ<EFBFBD>2005-12-07
|
|
|
|
|
|
//
|
|
|
|
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "formatitem.h"
|
|
|
|
|
|
#include "..\DrawLocal\FileSegy.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace NMxn
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class AFX_EXT_CLASS CMxnOther
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CMxnOther(void);
|
|
|
|
|
|
~CMxnOther(void);
|
|
|
|
|
|
|
|
|
|
|
|
CFileSegy::EDataType GetFormatCode(CString name);
|
|
|
|
|
|
int GetFormatLength(int code);
|
|
|
|
|
|
long double BinaryToDouble(CFileSegy &fr, CBinaryPosition & _fmt);
|
|
|
|
|
|
|
|
|
|
|
|
void ReverseString(char *str,int n);
|
|
|
|
|
|
inline long ToLong(double v);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
inline long CMxnOther::ToLong(double v)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(v>=0)v+=0.5;
|
|
|
|
|
|
else v-=0.5;
|
|
|
|
|
|
return (long)v;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}//namespace
|
|
|
|
|
|
|
|
|
|
|
|
using namespace NMxn;
|