Helper Wrapper Class to handle a Sample Log Entry.
More...
Helper Wrapper Class to handle a Sample Log Entry.
Storage class for ISampleLog::tSampleLogEntry structure.
Definition at line 22 of file samplelogentry.h.
◆ cSampleLogEntry() [1/2]
Copy CTOR.
Copies the Values of oEntry
to this new entry.
- Parameters
-
oEntry | [in] Values to copy. |
◆ cSampleLogEntry() [2/2]
Copy CTOR.
Copies the Values of sEntry
to this new entry.
- Parameters
-
sEntry | [in] Values to copy. |
◆ FromStream()
Deserializes the internal entry from an input stream.
It immediately starts with reading. No Seek call in pInStream
.
- Parameters
-
oInStream | [in] The Input Stream where to read the data from. |
nSizeRead | [out] Number of bytes read from pInStream . |
- Returns
- Standard result Code.
◆ GetEmptySampleID()
static helper to get an empty sample id.
- Returns
- return an empty sample id.
◆ GetEntry()
Gets the internal structure.
- Returns
- a reference of the internal values.
◆ IsEqualSampleID()
static helper to compare sample ids.
- Parameters
-
sID1 | [in] The Sample ID 1. |
sID2 | [in] The Sample ID 2. |
- Return values
-
true | if equal |
false | if not equal |
◆ operator const ISampleLog::tSampleLogEntry &()
Accessor for the entry via reference.
- Returns
- reference to the internal entry structure.
◆ operator const ISampleLog::tSampleLogEntry *()
Accessor for the entry via reference pointer.
- Returns
- reference pointer to the internal entry structure.
◆ operator=()
Copy assignment.
Copies the Values of oEntry
to this new entry.
- Parameters
-
oEntry | [in] Values to copy. |
- Returns
- the new entry
◆ operator==() [1/2]
Compares the Entries.
- Parameters
-
oEntry | [in] The entry to compare to. |
- Return values
-
true | if equal |
false | if not equal |
◆ operator==() [2/2]
Compares the Entries.
- Parameters
-
sEntry | [in] The entry to compare to. |
- Return values
-
true | if equal |
false | if not equal |
◆ SetEntry()
Sets the Values of the Entry by copying from psEntry.
- Parameters
-
psEntry | [in] Values to copy. |
- Return values
-
◆ ToStream()
Serializes the internal entry to an output stream.
It immediately starts writing. No Seek call in pOutStream
.
- Parameters
-
oOutStream | [in] The Output Stream where to write the data to. |
nSizeWritten | [out] Number of bytes written to pOutStream . |
- Returns
- Standard result Code.
◆ ToString()
tResult ToString |
( |
const adtf_util::cString & |
strSampleID, |
|
|
adtf_util::cString & |
strResult, |
|
|
const IHandleInfo * |
pHandleInfo = nullptr , |
|
|
const adtf_util::cString & |
strSeparator = ";" |
|
) |
| const |
Serializes the entry to a string value due to strSeparator
.
- Parameters
-
strSampleID | [in, out] The Sample ID as String. |
strResult | [in, out] The whole entry as String. |
pHandleInfo | [in] A handle info callback to get valid names for ThreadID and CreatorID. |
strSeparator | [in] if separator is not empty a comma separated list will be generated for this entry. if separator is empty a log formated string will be generated. |
- Return values
-
ERR_NOERROR | String is generated. |
an | error the string generated is not valid, i.e. string generation aborted. |