ADTF
Loading...
Searching...
No Matches
samplelogentry.h
Go to the documentation of this file.
1
7#pragma once
8
9#include "samplelog_intf.h"
11
12namespace adtf
13{
14namespace streaming
15{
16namespace ant
17{
23{
24 public:
27 {
28 public:
35 virtual adtf_util::cString GetThreadName(uint64_t ui64ProcId,
36 int32_t i32ThreadId) const = 0;
42 virtual adtf_util::cString GetHandleName(tHandle hHandle) const = 0;
43 };
44
45 public:
56
70
73
76 public:
77
89
97 tResult ToStream(ucom::ant::IStream& oOutStream, size_t& nSizeWritten) const;
105 tResult FromStream(const ucom::ant::IStream& oInStream, size_t& nSizeRead);
106
113 bool operator ==(const ISampleLog::tSampleLogEntry& sEntry) const;
120 bool operator ==(const cSampleLogEntry& oEntry) const;
121
126 operator const ISampleLog::tSampleLogEntry*() const;
131 operator const ISampleLog::tSampleLogEntry&() const;
132
143 tResult ToString(const adtf_util::cString& strSampleID,
144 adtf_util::cString& strResult,
145 const IHandleInfo* pHandleInfo=nullptr,
146 const adtf_util::cString& strSeparator=";") const;
147 public:
162 private:
164 tResult SetAdditionalData(const void* pData, size_t szAdditionalData);
165 bool IsEqual(const ISampleLog::tSampleLogEntry& sEntry) const;
166
167 private:
170 adtf_util::cMemoryBlock m_oAdditionalData;
171
172};
173
181{
182 public:
214 const ISampleLog::tSampleLogEntryEventID& ui32EventID,
215 const tTimeStamp& tmEntryTime,
216 const ISampleLog::tSampleLogSampleID& sSampleId);
230 tResult MemoryLock(const bool& bLock);
231
250 const tTimeStamp& tmCurrent,
251 ISampleLog& oLogSample);
258
273 adtf_util::cString& strResult,
274 const cSampleLogEntry::IHandleInfo* pHandleInfo=nullptr,
275 const adtf_util::cString& strSeparator=";");
276
277 private:
278 adtf_util::cMemoryBlock m_oBuffer;
279 std::unordered_map<ISampleLog::tSampleLogEntryCreatorID, size_t> m_oPositionMap;
281 size_t m_szCurrentSize;
282 bool m_bLocked;
283};
284
285} // namespace ant
290
291} // namespace streaming
292} // namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition samplelog_intf.h:32
uint64_t tSampleLogEntryCreatorID
The Log Entry Creator ID will be unique in current system.
Definition samplelog_intf.h:76
uint32_t tSampleLogEntryEventID
The Log Entry Event ID is defined by eSampleLogEntryEventID.
Definition samplelog_intf.h:74
static tResult ToString(const ISampleLog::tSampleLogTransmitReceiveState &sState, adtf_util::cString &strResult, const cSampleLogEntry::IHandleInfo *pHandleInfo=nullptr, const adtf_util::cString &strSeparator=";")
tResult LogBuffer(const ISampleLog::tSampleLogEntryCreatorID &ui64ID, const tTimeStamp &tmCurrent, ISampleLog &oLogSample)
tResult AddEntry(const ISampleLog::tSampleLogEntryCreatorID &ui64ID)
tResult SetEntry(const ISampleLog::tSampleLogEntryCreatorID &ui64CreatorID, const ISampleLog::tSampleLogEntryEventID &ui32EventID, const tTimeStamp &tmEntryTime, const ISampleLog::tSampleLogSampleID &sSampleId)
internal callback class to get valid names for the cSampleLogEntry::ToString function
Definition samplelogentry.h:27
virtual adtf_util::cString GetHandleName(tHandle hHandle) const =0
virtual adtf_util::cString GetThreadName(uint64_t ui64ProcId, int32_t i32ThreadId) const =0
Definition samplelogentry.h:23
cSampleLogEntry(const ISampleLog::tSampleLogEntry &sEntry)
static bool IsEqualSampleID(const ISampleLog::tSampleLogSampleID &sID1, const ISampleLog::tSampleLogSampleID &sID2)
tResult ToStream(ucom::ant::IStream &oOutStream, size_t &nSizeWritten) const
tResult ToString(const adtf_util::cString &strSampleID, adtf_util::cString &strResult, const IHandleInfo *pHandleInfo=nullptr, const adtf_util::cString &strSeparator=";") const
tResult SetEntry(const ISampleLog::tSampleLogEntry *psEntry)
tResult FromStream(const ucom::ant::IStream &oInStream, size_t &nSizeRead)
static ISampleLog::tSampleLogSampleID GetEmptySampleID()
const ISampleLog::tSampleLogEntry * GetEntry() const
cSampleLogEntry(const cSampleLogEntry &oEntry)
cSampleLogEntry & operator=(const cSampleLogEntry &oEntry)
bool operator==(const ISampleLog::tSampleLogEntry &sEntry) const
Definition stream_intf.h:84
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
Sample ID to assure uniqueness of samples in system.
Definition samplelog_intf.h:85