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

📄 pnimpdat.h

📁 PQDIF软件包(SDK,Software Development Kit),它能转换、生成并且显示PQDIF文件.对于开发电力系统的数据输出非常有用。
💻 H
字号:
/*
**  Class PQNodeImpulseData
**      This class holds the impulse information collected by the PQNode
**      Impulse Disturbance.
**
*/

#ifndef PNIMPDAT_INC
#define PNIMPDAT_INC


class PQNodeImpulseData
    {
    private:
        int iChannel;
        float *pfImpData;

    protected:


    public:

        PQNodeImpulseData()
            {
            pfImpData = NULL;
            }
        /*
        ** Main form of the constructor usually called by one of the 
        ** disturbance decoder modules.  Not normally called by an app
        ** directly since app doesn't have direct access to some of the info.
        */
        PQNodeImpulseData(int iChan,float *pfImpInfo) 
                  {iChannel = iChan; pfImpData = pfImpInfo;}

        virtual ~PQNodeImpulseData() {delete pfImpData;}

        /*
        ** Method to return the positive peak of the impulse.  This is
        ** an excursion from the waveform.  Units are controlled by the
        ** creator and the values that are passed.
        */
        float GetPosPeak() {return pfImpData[0];}

        /*
        ** Method to return the negative peak of the impulse.  This is
        ** an excursion from the waveform.  Units are controlled by the
        ** creator and the values that are passed.
        */
        float GetNegPeak() {return pfImpData[1];}

        /*
        ** Method to return the volt seconds of the impulse.  This is
        ** an excursion from the waveform.  Units are controlled by the
        ** creator and the values that are passed.
        */
        float GetVoltSec() {return pfImpData[2];}

        /*
        ** Method to return the value of the waveform at the time the 
        ** impulse occured.  Units are controlled by the
        ** creator and the values that are passed.
        */
        float GetImpWaveValue() {return pfImpData[3];}

    };

#endif

⌨️ 快捷键说明

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