функция 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
Функция-член Flush класса ara::log::LogStream (предоставляемая через заголовочный файл 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.
| 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#20fdaf84- Content hash
20fdaf84- 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 · Немецкий оригинал