ADTF
|
Helper class to serialize and handle an ISampleLog. More...
Public Member Functions | |
cSampleLogEntryList () | |
default CTOR. | |
cSampleLogEntryList (const cSampleLogEntryList &oCopyList) | |
Copy CTOR which will copy the given oCopyList to this list. More... | |
cSampleLogEntryList (cSampleLogEntryList &&oMoveList) | |
Move CTOR which will move the internal m_List to this list. More... | |
cSampleLogEntryList & | operator= (const cSampleLogEntryList &oCopyList) |
Copy assignment which will copy the given oCopyList to this list. More... | |
cSampleLogEntryList & | operator= (cSampleLogEntryList &&oMoveList) |
Move assignment which will move the given oCopyList to this list. More... | |
virtual | ~cSampleLogEntryList () |
DTOR. | |
tResult | AddEntry (const ISampleLog::tSampleLogEntry &sEntry) |
Adds an entry to the list. More... | |
tResult | GetLogEntries (ISampleLog::IGetLogEntryCallback &pGetCallback) const |
Copies all entries to the given pGetCallback implementation. More... | |
tResult | Clear () |
Clear this list. More... | |
tResult | GetIt (const ISampleLog::tSampleLogEntry &sLogEntry) |
Implementation of the ISampleLog::IGetLogEntryCallback to get the entries of a ISampleLog. More... | |
tResult | ToStream (ucom::ant::IStream &oOutStream, size_t &szSizeWritten) |
Serializes all entries to an output stream. More... | |
tResult | FromStream (const ucom::ant::IStream &oInStream, size_t &szSizeRead) |
Deserializes the internal entry from an input stream. More... | |
Protected Attributes | |
std::list< cSampleLogEntry > | m_lstLogList |
current list of logs | |
Static Private Attributes | |
static const uint8_t | m_ui8SerializedClassVersion1 |
internal serialize class version | |
Helper class to serialize and handle an ISampleLog.
Implements the ISampleLog::IGetLogEntryCallback to retrieve the entries of ISampleLog.
Definition at line 25 of file samplelogentrylist.h.
cSampleLogEntryList | ( | const cSampleLogEntryList & | oCopyList | ) |
Copy CTOR which will copy the given oCopyList to this list.
oCopyList | [in] The list to copy. |
cSampleLogEntryList | ( | cSampleLogEntryList && | oMoveList | ) |
Move CTOR which will move the internal m_List to this list.
oMoveList | [in] The list to copy. |
tResult AddEntry | ( | const ISampleLog::tSampleLogEntry & | sEntry | ) |
Adds an entry to the list.
The entry will be copied. (deep copy!)
sEntry | [in] The entry to add. |
ERR_NOERROR | entry added successfully. |
ERR_NEMORY | additional information buffer can not be copied due to high memory consumption. |
tResult Clear | ( | ) |
Clear this list.
ERR_NOERROR | cleared. |
tResult FromStream | ( | const ucom::ant::IStream & | oInStream, |
size_t & | szSizeRead | ||
) |
Deserializes the internal entry from an input stream.
It immediately starts with reading. No Seek call in pInStream
.
oInStream | [in] The Input Stream where to read the data from. |
szSizeRead | [out] Number of bytes read from pInStream . |
|
virtual |
Implementation of the ISampleLog::IGetLogEntryCallback to get the entries of a ISampleLog.
The entry will be copied. (deep copy!)
sLogEntry | [in] The current entry to add. |
ERR_NOERROR | entry added successfully. |
ERR_NEMORY | additional information buffer can not be copied due to high memory consumption. |
Implements ISampleLog::IGetLogEntryCallback.
tResult GetLogEntries | ( | ISampleLog::IGetLogEntryCallback & | pGetCallback | ) | const |
Copies all entries to the given pGetCallback
implementation.
pGetCallback | [in] callback interface to call the ISampleLog::IGetLogEntryCallback::GetIt. |
ERR_NOERROR | entry added successfully. |
an | error error forwarded from the ISampleLog::IGetLogEntryCallback::GetIt call. |
cSampleLogEntryList& operator= | ( | const cSampleLogEntryList & | oCopyList | ) |
Copy assignment which will copy the given oCopyList to this list.
oCopyList | [in] The list to copy. |
cSampleLogEntryList& operator= | ( | cSampleLogEntryList && | oMoveList | ) |
Move assignment which will move the given oCopyList to this list.
oMoveList | [in] The list to copy. |
tResult ToStream | ( | ucom::ant::IStream & | oOutStream, |
size_t & | szSizeWritten | ||
) |
Serializes all entries to an output stream.
It immediately starts writing. No Seek call in pOutStream
.
oOutStream | [in] The Output Stream where to write the data to. |
szSizeWritten | [out] Number of bytes written to pOutStream . |