pnimpdat.h

来自「PQDIF软件包(SDK,Software Development Kit),它」· C头文件 代码 · 共 69 行

H
69
字号
/*
**  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 + =
减小字号Ctrl + -
显示快捷键?