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

📄 analysis.h

📁 一个用C++写的电力系统故障录波数据管理系统
💻 H
字号:
#if !defined(AFX_ANALYSIS_H__890371A1_16BD_11D2_9F6B_F7D27BC80CDD__INCLUDED_)
#define AFX_ANALYSIS_H__890371A1_16BD_11D2_9F6B_F7D27BC80CDD__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// Analysis.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// Analysis document

#include "convert.h"

#define LONG1 200
#define CAPS1L 64
#define CAPS2L 32
const double dt = 314.15926*.001*.98359*2;

struct letter {
                unsigned int order;
				unsigned int trait;
				unsigned int line;
				unsigned int arrange;
				unsigned char *caps;
				unsigned int x; 
				unsigned int y;
			   };

class CAnalysis : public CConvert
{
protected:
         // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CAnalysis)

// Attributes
public:
	double fFaultJL;
	CString m_DateTime;
	CString FaultDelayTime;
	int Wyyph;

	FILE *fp1;
	int FaultChannel[120];
	int se_se,bl_se;
	struct letter far *se;
	struct letter far *bl;
	BYTE   *caps1;
	BYTE   *caps2;
	int    page;
	double x1,r1,x0,r0,b1,b0,kr,kl,c0,c1,nz,jlzd,kml,xm,kmr,rm,zzd,nl,ny;
	double *va,*vb,*vc,*vd,*ia,*ib,*ic,*i0,*kg1,*kg2;
	double *va1,*vb1,*vc1,*v01,*ia1,*ib1,*ic1,*i01,*im,*im1;
	int    lon,np,trait;
	char   *j1,*j2;
	int guzq[13];
	long int guzhxl;
	int m_FaultLineNo;
	CString m_strFaultLineName;
	CString m_strFaultPhase;
	CString m_strReportFile;

public:
   CString m_StrglconfigFile;
public:
   int tab1(int trai);
   int initfile2(CString name,int sequence_se,struct letter *se);
   int rechange(void);
   int jl(int trai);
   double tbpxl(void);
   int jl1(int order,double dst,int t);
   int zb(long int uni,long int *xljl);
   int tbpfx(double *i1, double *i2, double *u1,double *u2,int *jp,int m,int n);
   int addtime(unsigned char *buf,long int lon);
   int naday(unsigned char *buf,int tra);
   double youxz1(double far *v);
   int jl2(double *i1,double *i2,int nqd1,double *x,int kk);
   int jlpqc(int *nqd,int *nqc,int *tx,int tra);
   int jlpqc1(int *nqd,int *nqc,int *tx,int tra);
   int pqd1(double *u,double *i,int *jj,int n,int m);
   int px(double *u,double *i,double *ii,double *iii,int *jj,int n,int m);
   int jl3(double *i1,int nqd1,double *x);
   void lb1(double*u,double*v,int j);
   void lb2(double*u,double*v,int j);
   void lb3(double*u,double*v,int j);
   void lb4(double*u,double*v,int j);
   void lb5(double*u,double*v,int j);
   void lb6(double*u,double*v,int j);
   void lb7(double*u,double*v,int j);
   void lb8(double*u,double*v,int j);
   int  jdjl(double *u,double *i,double *i0,double *im0,int k,double *x,double *r);
   int  xjjl(double *u1,double *u2,double *i1,double *i2,int n,double *x,double *r);
   int  jdgz(double *u,double *i,double *i0,double *im0,int k,double *x,double *r);
   int  xjgz(double *u1,double *i1,double *u2,double *i2, int n,int k,double *x,double *r);
   int  tj(double *x,double *r,double *sq,double *sx,double *sr, double *srx,double *srr,int n);
   int  pqd2(double *i1,double *i2,double *i3,int *jj,int n);
   int  px2(double *u,double *i,int *jj,int n);
   int  pqc(double *u,double *i,int *jj,int n);
   void convcaps(void);
   void escan1(int * location_x,int * location_y,int a);
   void convcap(int mxl);
   int  wscani(void);
   int  pscani(int *g);
   void escan2(int * location_x,int * location_y,int a);
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAnalysis)
	public:
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
	protected:
	virtual BOOL OnNewDocument();
	//}}AFX_VIRTUAL

// Implementation
public:
    CAnalysis();
	virtual ~CAnalysis();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CAnalysis)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ANALYSIS_H__890371A1_16BD_11D2_9F6B_F7D27BC80CDD__INCLUDED_)

⌨️ 快捷键说明

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