Logging of a generic message.
More...
#include <LogMessage.hpp>
Inherits SimulatorLogEntry.
Logging of a generic message.
◆ LogMessage()
Constructor.
- Note
- This item will not be added as a child to the parent scope using this constructor.
- Parameters
-
parent | the parent of this log item. |
◆ autoLink()
virtual bool autoLink |
( |
| ) |
|
|
virtual |
Do automatic linking to other entries.
- Returns
- true if linking succeeded, false otherwise.
Implements SimulatorLogEntry.
◆ createNew()
Create a new entry of the same type (no data is copied).
- Parameters
-
parent | the parent of the new entry. |
- Returns
- the new entry.
Implements SimulatorLogEntry.
◆ getLinkedEntries()
Get a list of other entries that this entry is linked to.
Using linked entries makes it possible to avoid logging too much redundant information.
- Returns
- a list of linked entries.
Implements SimulatorLogEntry.
◆ getMessage()
std::string getMessage |
( |
| ) |
const |
Get the message.
- Returns
- the message.
◆ getType()
virtual std::string getType |
( |
| ) |
const |
|
virtual |
Get a textual representation of the type of the item.
- Returns
- the type of item as a string.
Implements SimulatorLogEntry.
◆ getTypeID()
static std::string getTypeID |
( |
| ) |
|
|
static |
Get the type id of this entry type.
- Returns
- the type id.
◆ operator==()
Check if logs are identical.
- Parameters
-
b | [in] other log to compare with. |
- Returns
- true if identical, false otherwise.
Reimplemented from SimulatorLogEntry.
◆ read()
Enable read-serialization of inherited class by implementing this method. Data is read from iarchive and filled into this object.
- Parameters
-
iarchive | [in] the InputArchive from which to read data. |
id | [in] The id of the serialized sobject. |
- Note
- the id can be empty in which case the overloaded method should provide a default identifier. E.g. the Vector3D class defined "Vector3D" as its default id.
Reimplemented from SimulatorLogEntry.
◆ stream()
Get the stream to output to.
- Returns
- the stream.
◆ write()
Enable write-serialization of inherited class by implementing this method. Data is written to oarchive from this object.
- Parameters
-
oarchive | [out] the OutputArchive in which data should be written. |
id | [in] The id of the serialized sobject. |
- Note
- the id can be empty in which case the overloaded method should provide a default identifier. E.g. the Vector3D class defined "Vector3D" as its default id.
Reimplemented from SimulatorLogEntry.
The documentation for this class was generated from the following file: