![]() |
RobWorkProject
23.9.11-
|
Log a set of contacts. More...
#include <LogContactSet.hpp>
Inherits SimulatorLogEntry.
Public Types | |
| typedef rw::core::Ptr< LogContactSet > | Ptr |
| Smart pointer type of LogContactSet. | |
Public Types inherited from SimulatorLogEntry | |
| typedef rw::core::Ptr< SimulatorLogEntry > | Ptr |
| Smart pointer type of SimulatorLogEntry. | |
Public Types inherited from SimulatorLog | |
| 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 | |
| LogContactSet (SimulatorLogScope *parent) | |
| Constructor. More... | |
| virtual | ~LogContactSet () |
| 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 std::string | getType () const |
| 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 std::list< SimulatorLogEntry::Ptr > | getLinkedEntries () const |
| Get a list of other entries that this entry is linked to. More... | |
| virtual bool | autoLink () |
| Do automatic linking to other entries. More... | |
| virtual SimulatorLogEntry::Ptr | createNew (SimulatorLogScope *parent) const |
| Create a new entry of the same type (no data is copied). More... | |
| const std::vector< rwsim::contacts::Contact > & | getContacts () const |
| Get the list of contacts. More... | |
| const rwsim::contacts::Contact & | getContact (std::size_t i) const |
| Get a contact. More... | |
| void | setContacts (const std::vector< rwsim::contacts::Contact > &contacts) |
| Set a new list of contacts. More... | |
| void | addContact (const rwsim::contacts::Contact &contact) |
| Append a contact. More... | |
| std::size_t | size () const |
| Get the number of contacts currently in set. More... | |
Public Member Functions inherited from SimulatorLogEntry | |
| SimulatorLogEntry (SimulatorLogScope *parent) | |
| Constructor. More... | |
| virtual | ~SimulatorLogEntry () |
| Destructor. | |
| virtual std::size_t | children () const |
| Get the number of children under this log item. More... | |
| virtual int | line () const |
| Get the line number in the file where this entry was added. More... | |
| virtual void | setLine (int line) |
| Set the line number where this entry was added. More... | |
Public Member Functions inherited from SimulatorLog | |
| SimulatorLog (SimulatorLogScope *parent=NULL) | |
| Constructor. More... | |
| virtual | ~SimulatorLog () |
| Destructor. | |
| virtual SimulatorLogScope * | getParent () const |
| Get the parent of this log item. 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 | |
Static Public Member Functions | |
| static std::string | getTypeID () |
| Get the type id of this entry type. More... | |
Log a set of contacts.
| LogContactSet | ( | SimulatorLogScope * | parent | ) |
Constructor.
| parent | the parent of this log item. |
| void addContact | ( | const rwsim::contacts::Contact & | contact | ) |
Append a contact.
| contact | [in] the contact to append. |
|
virtual |
Do automatic linking to other entries.
Implements SimulatorLogEntry.
|
virtual |
Create a new entry of the same type (no data is copied).
| parent | the parent of the new entry. |
Implements SimulatorLogEntry.
| const rwsim::contacts::Contact& getContact | ( | std::size_t | i | ) | const |
Get a contact.
| i | [in] the index. |
| const std::vector<rwsim::contacts::Contact>& getContacts | ( | ) | const |
Get the list of contacts.
|
virtual |
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.
Implements SimulatorLogEntry.
|
virtual |
Get a textual representation of the type of the item.
Implements SimulatorLogEntry.
|
static |
Get the type id of this entry type.
|
virtual |
Check if logs are identical.
| b | [in] other log to compare with. |
Reimplemented from SimulatorLogEntry.
|
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. |
Reimplemented from SimulatorLogEntry.
| void setContacts | ( | const std::vector< rwsim::contacts::Contact > & | contacts | ) |
Set a new list of contacts.
| contacts | [in] the list of contacts. |
| std::size_t size | ( | ) | const |
Get the number of contacts currently in set.
|
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. |
Reimplemented from SimulatorLogEntry.