-
Notifications
You must be signed in to change notification settings - Fork 8
/
Comtrade.h.bak
78 lines (68 loc) · 1.64 KB
/
Comtrade.h.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#pragma once
#include "afx.h"
#include <vector>
#include "AChannel.h"
#include "uniclass.h"
#include "ComTime.h"
class CDatFile :
public CFile
{
public:
CDatFile(void);
~CDatFile(void);
};
class CCfgFile :
public CStdioFile
{
public:
CCfgFile(void);
~CCfgFile(void);
CString ReadLine(void);//从ANSI文件中读取一行CString
};
class CComtrade
{
public:
CComtrade(const CString& FileName);
~CComtrade(void);
AChannel Evaluator(const CString& inputExp); //公式求值器
//protected:
CComtrade(void);
CDatFile pDatFile;
CCfgFile pCfgFile;
CString m_Line1;
CString m_Line2;
int m_TotalNumber;
int m_ANumber;
int m_DNumber;
std::vector<unsigned int> Sample;
std::vector<int> Time;
std::vector<AChannel*> AVector;
std::vector<DChannel*> DVector;
double m_LF; //line frequency
int m_NRates;
std::vector<SampleRate> m_SampleRate;
int m_TotalSampleNum;
CComTime m_StartTime;
CComTime m_EndTime;
CString m_DataFileType;
double m_TimeMult;
double maxVoltageData;
double maxCurrentData;
double maxFrequencyData;
drawParaCom m_drawParam;
public:
//序量分析部分
std::vector<ChannelGroup> m_AChannelGroup;//模拟通道组
int FormAChannelGroup(void);
Seq_Comp CurentSeqComp[2]; //当前点序分量,默认最多同时显示两个序分量通道
int GetCurrentSeqComp(int CurrentPoint, int ch_A, int ch_B, int ch_C, int Index);
//阻抗分析部分
Z z;
int GetCurrentZ(int CurrentPoint, int ch_UA, int ch_UB, int ch_UC, int ch_IA, int ch_IB, int ch_IC , int Type);
//母差分析部分
double GetPointTime(int sampPoint);
// 获得点通道
int getPointChan(int scrollPos, int pointPos);
int getTotalAVSpace(void);
int getChanPos(int chanNum);
};