📄 pndata.h
字号:
/*
**
** File: pndata.h
**
** $NAME$
** Class definition header for the PQDDBMS data classifier
** for PQNodes.
** $PATHS$
** General
**
** $AUTHOR$
** Jack King
** Copyright (C) 1992 by Electrotek Concepts, Inc.
** $1$
*/
#ifndef PNDATA_INC
#define PNDATA_INC
#define IDS_PNCHARAC_TITLE 100
#define IDS_PNCHARAC_VERSION 101
#define IDS_PNCHARAC_DATE 102
/*
** This function decodes a data file and, based upon the file type, forms the
** appropriate characterizing data and calls the PQDM routine to add the
** info to the database. The ProcessDisturbance function provides the
** PQBeginEvent and PQEndEvent calls.
*/
/*
** This class decodes a data file and, based upon the file type, forms the
** appropriate characterizing data and calls the PQDM routine to add the
** info to the database. The ProcessDistFile function provides the
** PQBeginEvent and PQEndEvent calls.
*/
#include "pqdtypes.h"
#include "eventime.h"
#include "event.h"
class PNDataChar
{
private:
CEventTime *pDateTime;
HANDLE hDistData;
LPBYTE pData;
UINT uDistType;
DWORD dwFileSize;
PQDPhase GetPQPhaseId(int iChannel, UINT uConnectCode);
BOOL ProcessWaveFault();
BOOL ProcessRMSVar();
BOOL ProcessOutage();
BOOL ProcessWaveform();
BOOL ProcessRMS();
BOOL ProcessColdLoad();
BOOL ProcessImpulse();
protected:
public:
CPQEvent *pEvent; // Event being processed
/*
** Default Constructor.
*/
PNDataChar();
/*
** Constructor for the class. hDistFile is the memory handle to the
** data file for the event that we will process. uDistrubType is
** the PNDS/PASS data type code. PEvDateTime is the event timestamp
** as required by PQView.
*/
PNDataChar(CPQEvent *pEv);
/*
** Destructor
*/
~PNDataChar();
/*
** This is the "DoMe" function for the class. This function
** decodes the data, calls PQBeginEvent, forms the characterized
** data, calls the PQDM functions to add the data to the database
** and calls PQEndEvent. The return value is true if all information
** associated with the event was successfully added to the
** database. Otherwise, FALSE is returned.
*/
BOOL ProcessDistFile();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -