फ़ंक्शन Flush [SWS_LOG_00039] Upstream: RS_LT_00003, RS_LT_00049
void Flush () noexcept;
Sends out the current log buffer and initiates a new message stream. Note: Calling ara::log::LogStream::Flush is only necessary if the ara::log::LogStream object is going to be re-used within the same scope. Otherwise, if the object goes out of scope (e.g. end of function block) then the flushing operation will be done internally by the destructor. It is important to note that the ara::log::LogStream::Flush command does not empty the buffer, but it forwards the buffer’s current contents to the Logging framework.
Sends out the current log buffer and initiates a new message stream. Note: Calling ara::log::LogStream::Flush is only necessary if the ara::log::LogStream object is going to be re-used within the same scope. Otherwise, if the object goes out of scope (e.g. end of function block) then the flushing operation will be done internally by the destructor. It is important to note that the ara::log::LogStream::Flush command does not empty the buffer, but it forwards the buffer’s current contents to the Logging framework.
Validate requirementfunction Flush [SWS_LOG_00039] Upstream: RS_LT_00003 , RS_LT_00049
Was muss freigegeben werden?
Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.
Sends out the current log buffer and initiates a new message stream. Note: Calling ara::log::LogStream::Flush is only necessary if the ara::log::LogStream object is going to be re-used within the same scope. Otherwise, if the object goes out of scope (e.g. end of function block) then the flushing operation will be done internally by the destructor. It is important to note that the ara::log::LogStream::Flush command does not empty the buffer, but it forwards the buffer’s current contents to the Logging framework.Prüfkontext
क्लास ara::log::LogStream का मेंबर फ़ंक्शन Flush (हेडर फ़ाइल ara/log/log_stream.h के माध्यम से प्रदान किया गया) लॉग बफ़र की वर्तमान स्थिति को लॉगिंग फ़्रेमवर्क तक पहुँचाता है और साथ ही एक नया संदेश प्रवाह शुरू करता है [SWS_LOG_00039]। यहाँ यह भेद करना महत्वपूर्ण है कि ara::log::LogStream::Flush को कॉल करने से बफ़र खाली नहीं होता है, बल्कि इसका वर्तमान डेटा बिना किसी बदलाव के फ़्रेमवर्क को अग्रेषित कर दिया जाता है [SWS_LOG_00039]।
फ़ंक्शन की एक स्पष्ट कॉल केवल तभी आवश्यक होती है जब बाद के लॉग आउटपुट के लिए उसी स्कोप के भीतर ara::log::LogStream ऑब्जेक्ट का पुन: उपयोग किया जाना हो [SWS_LOG_00039]। दूसरी ओर, यदि ऑब्जेक्ट अपने स्कोप से बाहर निकल जाता है – जैसे कि किसी फ़ंक्शन ब्लॉक के अंत तक पहुँचने पर –, तो बफ़र स्वचालित रूप से आंतरिक रूप से क्लास [SWS_LOG_00039] के डिस्ट्रक्टर के माध्यम से भेजा जाता है।
विधि का सिग्नेचर void Flush () noexcept; है, यह कोई तर्क स्वीकार नहीं करती है और इसका कोई रिटर्न मान नहीं होता है [SWS_LOG_00039]। इसे अपवाद-सुरक्षित (“exception safe”) के रूप में चिह्नित किया गया है, लेकिन यह कोई थ्रेड सुरक्षा (“not thread-safe”) प्रदान नहीं करती है [SWS_LOG_00039]।
यह उपयोग संबंधी निर्देश R25-11 विनिर्देश के आधार पर एक AI द्वारा तैयार किया गया था।
| Header-Datei | #include "ara/log/log_stream.h" |
|---|---|
| Scope | class ara::log::LogStream |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_LOG_00039- Status
- valid/auto-approved
- Version
AUTOSAR/AP/record/SWS_LOG_00039@rel:R25-11#3bfbdbf6- Content hash
3bfbdbf6- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00039
Status: valid/auto-approved
Version: rel:R25-11#13a1717f
Versionshistorie & Revisions (3 transitions, 8 revision)
- Current State
valid/auto-approved- Reason
- unchanged
- Campaign
2026-08-sws-log-pilot-after-tool-improvement- Active Version
AUTOSAR/AP/record/SWS_LOG_00039@rel:R25-11#13a1717f
Recorded Revisions (8):
- R25-11
rel:R25-11#57455c372026-09-30 - R19-11
rel:R19-11#1f1e47ec2026-10-14 - R20-11
rel:R20-11#fd1f4b762026-10-14 - R21-11
rel:R21-11#fd1f4b762026-10-14 - R22-11
rel:R22-11#4c987cfb2026-10-14 - R23-11
rel:R23-11#91bc2c892026-10-14 - R24-11
rel:R24-11#13a1717f2026-10-14 - R25-11
rel:R25-11#13a1717f2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-10 | tool | valid/unversioned → invalid/obsolete | spec update after tool improvement | 2026-08-sws-log-pilot-after-tool-improvement |
| 2026-08-10 | tool | invalid/obsolete → valid/auto-approved | unchanged | 2026-08-sws-log-pilot-after-tool-improvement |
| 2026-08-10T14:00:00Z | assistant | none → valid/auto-approved | Überführung vorhandener Prosa-Beschreibung in requirement_text-Format | legacy-desc-import |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल