From 61ac290c2897f69db9d879ea4968304ddcd23d40 Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期五, 01 八月 2025 19:22:54 +0800 Subject: [PATCH] 1. 添加日志文件 --- SourceCode/Bond/SGMeasurement/SGMeasurementDlg.h | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/SourceCode/Bond/SGMeasurement/SGMeasurementDlg.h b/SourceCode/Bond/SGMeasurement/SGMeasurementDlg.h index 96e570b..3b8748c 100644 --- a/SourceCode/Bond/SGMeasurement/SGMeasurementDlg.h +++ b/SourceCode/Bond/SGMeasurement/SGMeasurementDlg.h @@ -49,6 +49,13 @@ DECLARE_MESSAGE_MAP() private: + /** + * @brief 閫�鍑虹▼搴忔椂鐨勬竻鐞嗘搷浣溿�� + * + * 姝ゅ嚱鏁板湪绋嬪簭閫�鍑哄墠琚皟鐢紝鐢ㄤ簬鎵ц蹇呰鐨勮祫婧愰噴鏀句笌鐘舵�佹仮澶嶏紝 + * 鍖呮嫭鏂紑璁惧杩炴帴銆佺Щ闄ゆ墭鐩樺浘鏍囩瓑銆� + * 鏈�缁堥攢姣佷富绐楀彛骞堕��鍑哄簲鐢ㄣ�� + */ void ExitApplication(); /** @@ -85,7 +92,7 @@ * @param content 鏃ュ織鍐呭銆� * @param color 瀛椾綋棰滆壊锛岄粯璁や负榛戣壊銆� */ - void AppendLogLineRichStyled(const CString& content, COLORREF color = RGB(0, 0, 0)); + void AppendLogLineRichStyled(const CString& strContent, COLORREF color = RGB(0, 0, 0)); /** * @brief 楂樹寒鏃ュ織涓墍鏈夊尮閰嶆寚瀹氬瓧绗︿覆鐨勯儴鍒嗐�� @@ -178,10 +185,33 @@ const std::vector<float>& vecGlass2, float& fAvg1, float& fAvg2, float& fOffset); + /** + * @brief 鍒濆鍖栬澶囩鐨勬暟鎹瓨鍌ㄧ紦鍐插尯銆� + * + * 璋冪敤搴曞眰鎺ュ彛娓呴櫎褰撳墠瀛樺偍鍖哄唴瀹癸紝涓烘柊涓�杞殑鏁版嵁閲囬泦鍋氬噯澶囥�� + * 蹇呴』鍦ㄨ澶囪繛鎺ユ垚鍔熶笖鏈繘琛屾暟鎹瓨鍌ㄦ椂璋冪敤銆� + * + * @return true 琛ㄧず鍒濆鍖栨垚鍔燂紱false 琛ㄧず澶辫触锛堝彲鑳芥槸璁惧鏈繛鎺ユ垨璋冪敤鎺ュ彛閿欒锛夈�� + */ bool InitDataStorage(); + /** + * @brief 鍚姩璁惧绔暟鎹噰闆嗗拰瀛樺偍銆� + * + * 璋冪敤姝ゅ嚱鏁板悗璁惧寮�濮嬮噰闆嗗苟缂撳瓨鏁版嵁銆� + * 閫氬父閰嶅悎瑙﹀彂妯″紡杩涜閲囬泦銆� + * + * @return true 琛ㄧず鍚姩鎴愬姛锛沠alse 琛ㄧず鍚姩澶辫触銆� + */ bool StartDataStorage(); + /** + * @brief 鍋滄鏁版嵁閲囬泦骞朵粠璁惧鑾峰彇褰撳墠瀛樺偍鏁版嵁銆� + * + * 璋冪敤鍚庤澶囧仠姝㈤噰闆嗭紝骞跺皾璇曡鍙栨寚瀹氱鍙g殑鏁版嵁锛屼緵鍚庣画鍒嗘瀽澶勭悊銆� + * + * @return true 琛ㄧず鍋滄骞惰鍙栨暟鎹垚鍔燂紱false 琛ㄧず澶辫触锛堝璁惧鏈搷搴旀垨鏁版嵁鏃犳晥锛夈�� + */ bool StopDataStorage(); /** -- Gitblit v1.9.3