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

📄 pndata.h

📁 PQDIF软件包(SDK,Software Development Kit),它能转换、生成并且显示PQDIF文件.对于开发电力系统的数据输出非常有用。
💻 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 + -