RobWorkProject
23.9.11-
|
Base class for a hierarchical simulator log. More...
#include <SimulatorLog.hpp>
Inherits Serializable.
Inherited by SimulatorLogEntry, and SimulatorLogScope.
Public Types | |
typedef rw::core::Ptr< SimulatorLog > | Ptr |
Smart pointer type of SimulatorLog. | |
typedef rw::core::Ptr< const SimulatorLog > | CPtr |
Smart pointer type of const SimulatorLog. | |
Public Member Functions | |
SimulatorLog (SimulatorLogScope *parent=NULL) | |
Constructor. More... | |
virtual | ~SimulatorLog () |
Destructor. | |
virtual void | read (class rw::common::InputArchive &iarchive, const std::string &id) |
virtual void | write (class rw::common::OutputArchive &oarchive, const std::string &id) const |
virtual SimulatorLogScope * | getParent () const |
Get the parent of this log item. More... | |
virtual std::size_t | children () const =0 |
Get the number of children under this log item. More... | |
virtual std::string | getType () const =0 |
Get a textual representation of the type of the item. More... | |
virtual bool | operator== (const SimulatorLog &b) const |
Check if logs are identical. More... | |
virtual bool | operator!= (const SimulatorLog &b) const |
Check if logs are non-identical. More... | |
virtual std::string | getFilename () const |
Get the full filename with path for where this log entry was created. More... | |
virtual void | setFilename (const std::string &file) |
Set the name of the file where this log entry was created. More... | |
virtual void | setFilename (const char *file) |
Set the name of the file where this log entry was created. More... | |
virtual std::string | getDescription () const |
Get a string describing this entry. More... | |
virtual void | setDescription (const std::string &description) |
Set a very short description of this entry. More... | |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable () |
destructor | |
Base class for a hierarchical simulator log.
Every log item should have a filename that refers to the file that added the log item, as well as a description that is as short as possible.
SimulatorLog | ( | SimulatorLogScope * | parent = NULL | ) |
Constructor.
parent | the parent of this log item. |
|
pure virtual |
Get the number of children under this log item.
Implemented in SimulatorLogScope, and SimulatorLogEntry.
|
virtual |
|
virtual |
Get the full filename with path for where this log entry was created.
|
virtual |
Get the parent of this log item.
|
pure virtual |
Get a textual representation of the type of the item.
Implemented in SimulatorLogEntry, LogForceTorque, SimulatorLogScope, LogVelocities, LogValues, LogStep, LogPositions, LogMessage, LogEquationSystem, LogDistanceResult, LogDistanceMultiResult, LogContactVelocities, LogContactSet, LogContactForceTorque, LogConstraints, LogConstraintForceTorque, and LogCollisionResult.
|
virtual |
Check if logs are non-identical.
b | [in] other log to compare with. |
|
virtual |
Check if logs are identical.
b | [in] other log to compare with. |
Reimplemented in SimulatorLogScope, SimulatorLogEntry, LogVelocities, LogValues, LogStep, LogPositions, LogMessage, LogForceTorque, LogEquationSystem, LogDistanceResult, LogDistanceMultiResult, LogContactVelocities, LogContactSet, LogContactForceTorque, LogConstraints, LogConstraintForceTorque, and LogCollisionResult.
|
virtual |
Enable read-serialization of inherited class by implementing this method. Data is read from iarchive and filled into this object.
iarchive | [in] the InputArchive from which to read data. |
id | [in] The id of the serialized sobject. |
Implements Serializable.
Reimplemented in SimulatorLogScope, SimulatorLogEntry, LogVelocities, LogValues, LogStep, LogPositions, LogMessage, LogForceTorque, LogEquationSystem, LogDistanceResult, LogDistanceMultiResult, LogContactVelocities, LogContactSet, LogConstraints, and LogCollisionResult.
|
virtual |
Set a very short description of this entry.
description | [in] the description to set. |
|
virtual |
Set the name of the file where this log entry was created.
file | [in] the filename (expected to have full path included). |
|
virtual |
Set the name of the file where this log entry was created.
file | [in] the filename (expected to have full path included). |
|
virtual |
Enable write-serialization of inherited class by implementing this method. Data is written to oarchive from this object.
oarchive | [out] the OutputArchive in which data should be written. |
id | [in] The id of the serialized sobject. |
Implements Serializable.
Reimplemented in SimulatorLogScope, SimulatorLogEntry, LogVelocities, LogValues, LogStep, LogPositions, LogMessage, LogForceTorque, LogEquationSystem, LogDistanceResult, LogDistanceMultiResult, LogContactVelocities, LogContactSet, LogConstraints, and LogCollisionResult.