A scope can have children, and the type allows hierarchical logging.
More...
#include <SimulatorLogScope.hpp>
Inherits SimulatorLog.
Inherited by LogStep.
A scope can have children, and the type allows hierarchical logging.
A scope can have one SimulatorStatistics object attached to it. SimulatorStatistics is a special method for doing statistics on a SimulatorLog. Please see this class for information about how this is done.
◆ SimulatorLogScope()
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. |
◆ appendChild()
Add a child to this scope.
- Parameters
-
◆ children()
virtual std::size_t children |
( |
| ) |
const |
|
virtual |
Get the number of children under this log item.
- Returns
- the number of children.
Implements SimulatorLog.
◆ getChild()
Get a specific child item.
- Parameters
-
id | [in] the id of the child. |
- Returns
- the child item (or NULL if not found).
◆ getChildren()
Get the children of this scope.
- Returns
- a vector of children log items.
◆ getStatistics()
Get statistics for this scope.
- Returns
- the statistics.
◆ 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 SimulatorLog.
Reimplemented in LogStep.
◆ indexOf()
Get the id of a specific log item that is known to be a child.
- Parameters
-
child | [in] the child item to search for. |
- Returns
- the index of the child (or the number of children if not found).
◆ lineBegin()
virtual int lineBegin |
( |
| ) |
const |
|
virtual |
Get the line in the file where this scope begins.
- Returns
- the first line.
◆ lineEnd()
virtual int lineEnd |
( |
| ) |
const |
|
virtual |
Get the line in the file where this scope ends.
- Returns
- the last line.
◆ operator==()
Check if logs are identical.
- Parameters
-
b | [in] other log to compare with. |
- Returns
- true if identical, false otherwise.
Reimplemented from SimulatorLog.
Reimplemented in LogStep.
◆ 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 SimulatorLog.
Reimplemented in LogStep.
◆ setLineBegin()
virtual void setLineBegin |
( |
int |
line | ) |
|
|
virtual |
Set the line in the file where this scope begins.
- Parameters
-
◆ setLineEnd()
virtual void setLineEnd |
( |
int |
line | ) |
|
|
virtual |
Set the line in the file where this scope ends.
- Parameters
-
◆ 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 SimulatorLog.
Reimplemented in LogStep.
The documentation for this class was generated from the following file: