這本也是經典中的經典。它已經深入到接觸 C++ Object Model
的層次。特別是 exception-Safety 這一章一系列的步步深入,很大
程度上改變了我對 C++ 的認識。此外,它有提到 Pimpl Idiom,這
對改善 C++ 編譯效率也有一定的幫助。其他的主題,例如泛型編程
和對標準庫的幾個討論議題、暫時物件、物件壽命、自動轉換…等,也
頗有深度。如果沒看過這本,且對自己的 C++ 功力頗有信心的人,可
以測試看看。
Standard-Library exception Safety
Bjarne Stroustrup
Texas A&M University
(and AT&T Labs – Research)
http://www.research.att.com/~bs
Introduction to the C++ exception handling mechanisms and “resource acquisition is initialization” for people with little experience with exceptions
you can use Hutch s INCLUDE and LIB files to assemble the program with the exception of the Windows.inc.
If you use the EWCalc.mak file you will have to change the pointers to the proper directories.
ExcpHook is an open source (see license.txt) exception Monitor for Windows made by Gynvael Coldwind (of Team Vexillium). t uses a ring0 driver to hook KiexceptionDispatch procedure to detect the exceptions, and then shows information about the exception on stdout (using the ring3 part of the program ofc).
The difference between this method, and the standard debug API method it that this method monitores all of XP processes, and the program does not have to attach to any other process to monitor it, hence it s harder to detect.
The code currently is considered as ALPHA, and it has been reported to BSoD sometimes (on multi core/cpu machines). Take Care!
為解決輸油管道溫度壓力參數實時監測的問題,設計了以C8051F930單片機作為控制核心的超低功耗輸油管道溫度壓力遠程監測系統。現場儀表使用高精度電橋采集數據,通過433 MHz短距離無線通信網絡與遠程終端RTU進行通信,RTU通過GPRS網絡與PC上位機進行遠程數據傳輸,在上位機中實現數據存儲和圖形化界面顯示,從而實現輸油管道溫度壓力參數的實時監測和異常報警。經實驗證明,該系統的12位數據采集精度滿足設計要求,漏碼率小于1%,正常工作時間超過5個月,能實時有效地監測輸油管道的溫度壓力參數,節省大量人工成本,有效預防管道參數異常造成的經濟損失和環境污染。
Abstract:
In order to solve the problems on real-time monitoring of pipeline temperature and pressure parameters, the ultra-low power remote pipeline temperature and pressure monitoring system was designed by using the single chip processor C8051F930 as the control core. The high-precision electric bridge was used in field instruments for data collection, the 433MHz short-range wireless communication network was used to make communication between field instrument and RTU, the GPRS was used by the RTU to transmit data to the PC host computer, and the data was stored and displayed in the PC host computer, so the real-time monitoring and exception alerts of pipeline temperature and pressure parameters were achieved. The experiment proves that the system of which error rate is less than 1% over five months working with the 12-bit data acquisition accuracy can effectively monitor the pipeline temperature and pressure parameters in real time, it saves a lot of labor costs and effectively prevents environmental pollution and economic losses caused by abnormal channel parameters.