91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 36.61MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-11
  • 語言: 其他
  • 標簽: PQDIF??SDK??

資源簡介

電能質(zhì)量監(jiān)測系列用于對電能質(zhì)量數(shù)據(jù)打包成PQDIF格式文件

資源截圖

代碼片段和文件信息

/*
**??PQDIF?READING?EXAMPLE
**
**??File?name:??????????$Workfile:?main.cpp?$
**??Last?modified:??????$Modtime:?4/13/01?5:03p?$
**??Last?modified?by:???$Author:?Erich?$
**
**??VCS?archive?path:???$Archive:?/PQDIF/Native15/PQDIFr/main.cpp?$
**??VCS?revision:???????$Revision:?33?$?
**
**??------------------------------------------------------------------------
**
**??Language:?ANSI?C/C++
**
**??This?example?shows?how?a?simple?piece?of?code?can?parse?through
**??the?complete?physical?structure?of?a?PQDIF?file?with?no?knowledge
**??of?the?logical?structure.
**
**??CHANGE?HISTORY
**??------------------------------------------------------------------------
**??RFS?25-Feb-1998?????Split?the?“display“?portion?into?PQDISPLY.CPP
**??????????????????????and?added?PQDIFR.CPP?which?reads?the?PQDIF?data
**??????????????????????into?the?same?proprietary?structures?which?were
**??????????????????????were?used?in?the?PQDIFW?application.
**??------------------------------------------------------------------------
*/

#include?“pqdifr.h“

#include?“zlib.h“???//??Standard?compression/decomp?algorithm


//??globals
bool?g_bHeaderOnly?=?false;

//??Local?functions?for?parsing?the?physical?aspects?of?the?file.
//??The?“l(fā)ogical“?aspects?are?handled?by?the?“accept“?functions
//??in?PQREAD.CPP
//
extern?void?parseFile(?FILE?*pfiOriginal?);

extern?BOOL?parseOneRecord
????????(
????????FILE?*??????????????????pfiOriginal????????//??Input?file?(input)
????????FILE?*??????????????????pfiScratch?//??Scratch?file?(modified)
????????c_record_mainheader&????hdrRecord??//??Record?header?(output)
????????UINT4???????????????????styleCompression???//??Compression?style?(input)
????????UINT4???????????????????algCompression?????//??Compression?algorithm?(input)
????????bool????????????????????bHeaderOnly
????????);

extern?BOOL?decompBlock
????????(?
????????FILE?*??????pfiCompressed?
????????long????????pos?
????????long????????size
????????FILE?*??????pfiDecompressed?
????????long????????posInDecomp?
????????SIZE4&??????sizeDecompressed
????????UINT4???????algCompression
????????UINT4&??????checksum
????????);

extern?BOOL?parseCollection
????????(?
????????FILE?*??pfiOriginal
????????long????posStartOfRecord
????????int?????level
????????SIZE4???sizeOfRecord
????????);


//??Open?the?file?(if?found)?and?begin?parsing?through?it.
//
int?main(int?argc?char?*argv[])
????{
????static?char?fnameInput[?_MAX_FNAME?];
????static?char?pathApplication[?_MAX_PATH?];
????static?char?buffer[?256?];

????if?(argc?????????{
????????printf(?“usage:?pqdifr?[/switches]?in-file?[out-file]\n“?);
????????return?1;
????????}

????//
????//
????//??See?if?there?are?path?components
????//
????char?szAppFile[_MAX_PATH];
????char?szAppFullPath[_MAX_PATH];

????strcpy(szAppFile?argv[0]);
????//
????//
????//??Expand?to?get?the?full?path.??Note?that?this?will
????//??not?add?the?.exe?extens

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2002-10-02?15:30??Documents\
?????文件???????27648??2000-02-18?23:51??Documents\CoverLetterPQDIFSDK.doc
?????文件???????13122??2002-10-17?11:10??Documents\CoverLetterPQDIFSDK.PDF
?????文件??????439845??2002-08-08?15:03??Documents\IEEE1159-3.pdf
?????文件???????88541??2001-01-27?19:30??Documents\ImplementingPQDIF.PDF
?????文件??????113664??1999-01-26?09:38??Documents\PQDIF?Technical?Overview.ppt
?????文件???????45105??2001-01-27?19:31??Documents\pqdif.PDF
?????目錄???????????0??2002-10-17?10:49??Native\
?????文件?????????736??1998-03-06?15:32??Native\Example15.dsw
?????文件????????1067??2001-01-27?21:53??Native\Native15.dsw
?????目錄???????????0??2002-10-04?14:38??Native\pqdifr\
?????文件???????38591??1998-07-09?18:19??Native\pqdifr\example.txt
?????文件???????13780??2002-01-17?14:06??Native\pqdifr\logical.txt
?????文件???????24644??2001-04-14?17:11??Native\pqdifr\main.cpp
?????文件????????9031??2001-06-01?14:00??Native\pqdifr\names.cpp
?????文件?????????918??2001-06-01?14:00??Native\pqdifr\names.h
?????文件???????33259??2002-10-04?14:35??Native\pqdifr\name_id.inc
?????文件????????4980??2002-01-17?14:04??Native\pqdifr\name_tag.inc
?????文件???????14185??2000-03-16?09:03??Native\pqdifr\ping.txt
?????文件???????14938??1998-03-19?15:07??Native\pqdifr\pqdexamp.h
?????文件???????????0??1998-02-25?13:31??Native\pqdifr\pqdifr.cpp
?????文件????????5077??2001-04-13?09:06??Native\pqdifr\PQDIFr.dsp
?????文件?????????535??2000-12-28?14:29??Native\pqdifr\PQDIFr.dsw
?????文件??????204800??2002-10-04?14:39??Native\pqdifr\PQDIFr.exe
?????文件????????1092??1998-03-19?15:07??Native\pqdifr\pqdifr.h
?????文件???????85172??2002-10-04?14:35??Native\pqdifr\pqdif_id.h
?????文件???????47866??2002-01-17?14:04??Native\pqdifr\pqdif_lg.h
?????文件???????14864??2002-01-07?15:59??Native\pqdifr\pqdif_ph.h
?????文件???????13493??1999-07-16?23:09??Native\pqdifr\pqdisply.cpp
?????文件????????1669??1999-03-23?12:26??Native\pqdifr\pqdisply.h
?????文件???????13830??1998-04-21?14:06??Native\pqdifr\pqexport.cpp
............此處省略593個文件信息

評論

共有 條評論