pnwavsum.h

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

H
79
字号
/*
**
**
**
**
**
*/

#ifndef PNWAVSUM_INC
#define PNWAVSUM_INC

/*
**  manifest constants used to describe the type of rms disturbance that is
**  summarized.
*/
#define  WAVESUM_UNCAT   0
#define  WAVESUM_SAG     1
#define  WAVESUM_SWELL   2


class PQNodeWaveSum
    {
    private:
        int iChannel;
        float fMinVal;
        float fMaxVal;
        float fMinRMSVal;
        float fMaxRMSVal;
        float fAveRMSVal;
        float fMaxExcur;
        float fDuration;
        float fArea;
        BOOL bIsTrigger;
        int iCategory;

    protected:


    public:

        /*
        ** 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.
        */
        PQNodeWaveSum(int iChan,int iCat,float fMin, float fMax,
                      float fMinRMS, float fMaxRMS,float fMaxEx,
                      float fDur,BOOL bIsTrig,
                      float fDistArea = 0.0,
                      float fAveRMS = 0.0);

        virtual ~PQNodeWaveSum();

        int GetChannel() {return iChannel;}

        BOOL IsTrigger() {return bIsTrigger;}

        float GetMin() {return fMinVal;}

        float GetMax() {return fMaxVal;}

        float GetMinRMS() {return fMinRMSVal;}

        float GetMaxRMS() {return fMaxRMSVal;}

        float GetAveRMS() {return fAveRMSVal;}

        float GetDuration() {return fDuration;}

        int  GetCategory() {return iCategory;}
    
        float GetDistArea() {return fArea;}

        float GetMaxExcursion() {return fMaxExcur;}

    };

#endif

⌨️ 快捷键说明

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