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

📄 rec_settings.h

📁 电能质量交换格式转换库
💻 H
字号:
//  File name:          $Workfile: rec_settings.h $
//  Last modified:      $Modtime: 2/22/00 7:35p $
//  Last modified by:   $Author: Jack $
//
//  VCS archive path:   $Archive: /PQDIF/PQDcom/PQDcom4/pqdiflib/rec_settings.h $
//  VCS revision:       $Revision: 13 $ 

class CPQDIF_R_Settings : public CPQDIF_R_General
    {
    public:
        CPQDIF_R_Settings() {}
        virtual ~CPQDIF_R_Settings() ;

    // Operations
    public:

    // Attributes
    public:

    //  Read functions
    bool GetInfo
        (
        TIMESTAMPPQDIF&     timeEffective,
        TIMESTAMPPQDIF&     timeInstalled,
        TIMESTAMPPQDIF&     timeRemoved,  
        bool&               useCal,       
        bool&               useTrans      
        );

	bool CPQDIF_R_Settings::GetConnectionInfo
        (
        UINT4&  connectionType
        );

    long GetCountChannels( void );

    bool GetChannelInfo (long idxChannel, UINT4 & idxChannelDefn);

#ifdef zap
    //
    //
    //  Depricated function
    //
    bool GetChannelInfo
        (
        long                idxChannel,
        UINT4&              idxChannelDefn,
        UINT4&              triggerTypeID,
        REAL8&              fullScale,  
        REAL8&              noiseFloor, 
        REAL8&              triggerLow, 
        REAL8&              triggerHigh,
        REAL8&              triggerRate,
        CPQDIF_E_Vector&    triggerShapeParam   //  Array of [3]
        );
#endif

    bool GetChanTrans
        (
        long                idxChannel,
        UINT4&              xdTransformerTypeID,
        REAL8&              xdSystemSideRatio,  
        REAL8&              xdMonitorSideRatio,
        CPQDIF_E_Vector&    xdFrequencyResponse //  Array [n]
        );
    bool GetChanCal
        (
        long                idxChannel,
        REAL8&              calTimeSkew,  
        REAL8&              calOffset,  
        REAL8&              calRatio,  
        bool&               calMustUseARCal,
        CPQDIF_E_Vector&    calApplied,     //  Array [n]
        CPQDIF_E_Vector&    calRecorded     //  Array [n]
        );

    //  Write functions
    bool SetInfo
        (
        const   TIMESTAMPPQDIF&     timeEffective,
        const   TIMESTAMPPQDIF&     timeInstalled,
        const   TIMESTAMPPQDIF&     timeRemoved,  
                bool                useCal,       
                bool                useTrans      
        );


	bool CPQDIF_R_Settings::SetConnectionInfo
        (
        const   UINT4 connectionType
        );

#ifdef zap
    //
    //
    //  Depricated function
    //
    long AddChannel
        (
                UINT4               idxChannelDefn,
                UINT4               triggerTypeID,
                REAL8               fullScale,  
                REAL8               noiseFloor, 
                REAL8               triggerLow, 
                REAL8               triggerHigh,
                REAL8               triggerRate,
        const   CPQDIF_E_Vector *   triggerShapeParam   //  Array of [3] ... or NULL
        );
#endif
    long AddChannel
        (
        UINT4               idxChannel
        );
    long AddChannel
        (
        UINT4               idxChannel,
        UINT4               idTriggerType
        );



    bool SetChanTrans
        (
                UINT4               idxChannel,
                UINT4               xdTransformerTypeID,
                REAL8               xdSystemSideRatio,  
                REAL8               xdMonitorSideRatio,
        const   CPQDIF_E_Vector *   xdFrequencyResponse //  Array [n]... or NULL
        );
    bool SetChanCal
        (
                UINT4               idxChannel,
                REAL8               calTimeSkew,  
                REAL8               calOffset,  
                REAL8               calRatio,  
                bool                calMustUseARCal,
        const   CPQDIF_E_Vector *   calApplied,     //  Array [n]... or NULL
        const   CPQDIF_E_Vector *   calRecorded     //  Array [n]... or NULL
        );

    bool SetTriggerShapeParam
        (
        UINT4                     idxChannelDefn,
        const CPQDIF_E_Vector *   triggerShapeParam   //  Array of [3] ... or NULL
        ); 


    bool SetChannelReal8(UINT4 idxChannel, GUID tag, REAL8 dVal);

    bool SetTriggerLow(const UINT4 idxChannel, const REAL8 dVal)
        {
        return SetChannelReal8(idxChannel, tagTriggerLow, dVal);
        }

    bool SetTriggerHigh(const UINT4 idxChannel, const REAL8 dVal)
        {
        return SetChannelReal8(idxChannel, tagTriggerHigh, dVal);
        }

    bool SetTriggerRate(const UINT4 idxChannel, const REAL8 dVal)
        {
        return SetChannelReal8(idxChannel, tagTriggerRate, dVal);
        }

    bool SetFullScale(const UINT4 idxChannel, const REAL8 dVal)
        {
        return SetChannelReal8(idxChannel, tagFullScale, dVal);
        }

    bool SetNoiseFloor(const UINT4 idxChannel, const REAL8 dVal)
        {
        return SetChannelReal8(idxChannel, tagNoiseFloor, dVal);
        }
    
    bool SetEffective (const TIMESTAMPPQDIF& timeEffective)
        {
        return SetTimeInMainCollection(tagEffective, timeEffective);
        }

    bool SetInstalled (const TIMESTAMPPQDIF& timeInstalled)
        {
        return SetTimeInMainCollection(tagTimeInstalled, timeInstalled);
        }

    bool SetRemoved (const TIMESTAMPPQDIF& timeRemoved)
        {
        return SetTimeInMainCollection(tagTimeRemoved, timeRemoved);
        }

    bool SetNominalFrequency(const REAL8 dVal)
        {
        return SetREAL8InMainCollection(tagNominalFrequency, dVal);
        }

    bool SetUseCalibration(const BOOL4 bVal)
        {
        return SetBOOL4InMainCollection(tagUseCalibration, bVal);
        }

    bool SetUseTransducer(const BOOL4 bVal)
        {
        return SetBOOL4InMainCollection(tagUseTransducer, bVal);
        }


    bool GetChannelReal8(UINT4 idxChannel, GUID tag, REAL8 &dVal);

    bool GetTriggerLow(const UINT4 idxChannel, REAL8 &dVal)
        {
        return GetChannelReal8(idxChannel, tagTriggerLow, dVal);
        }

    bool GetTriggerHigh(const UINT4 idxChannel, REAL8 &dVal)
        {
        return GetChannelReal8(idxChannel, tagTriggerHigh, dVal);
        }

    bool GetTriggerRate(const UINT4 idxChannel, REAL8 &dVal)
        {
        return GetChannelReal8(idxChannel, tagTriggerRate, dVal);
        }

    bool GetFullScale(const UINT4 idxChannel, REAL8 &dVal)
        {
        return GetChannelReal8(idxChannel, tagFullScale, dVal);
        }

    bool GetNoiseFloor(const UINT4 idxChannel, REAL8 &dVal)
        {
        return GetChannelReal8(idxChannel, tagNoiseFloor, dVal);
        }

    bool GetEffective (TIMESTAMPPQDIF& timeEffective)
        {
        return GetTimeInMainCollection(tagEffective, timeEffective);
        }

    bool GetInstalled (TIMESTAMPPQDIF& timeInstalled)
        {
        return GetTimeInMainCollection(tagTimeInstalled, timeInstalled);
        }

    bool GetRemoved (TIMESTAMPPQDIF& timeRemoved)
        {
        return GetTimeInMainCollection(tagTimeRemoved, timeRemoved);
        }

    bool GetNominalFrequency(REAL8 &dVal)
        {
        return GetREAL8InMainCollection(tagNominalFrequency, dVal);
        }

    bool GetUseCalibration(BOOL4 &bVal)
        {
        return GetBOOL4InMainCollection(tagUseCalibration, bVal);
        }

    bool GetUseTransducer(BOOL4 &bVal)
        {
        return GetBOOL4InMainCollection(tagUseTransducer, bVal);
        }


    //  Internal functions
    public:
        CPQDIF_E_Collection * GetChannelSettings( void );
        CPQDIF_E_Collection * GetOneChannelSetting
            ( 
            long    idxChannelDefn
            );

    //  Local data
    private:
        //  None
    };

⌨️ 快捷键说明

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