rviz::FailedDisplay Class Reference

A FailedDisplay instance represents a Display class we tried and failed to instantiate. More...

#include <failed_display.h>

Inheritance diagram for rviz::FailedDisplay:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FailedDisplay (const QString &desired_class_id, const QString &error_message)
virtual QString getDescription () const
 Return the description.
virtual QVariant getViewData (int column, int role) const
 Return data appropriate for the given column (0 or 1) and role for this Display.
virtual void load (const YAML::Node &yaml_node)
 Store the given YAML data for later, so we can return it with save() when someone writes this back to a file.
virtual void save (YAML::Emitter &emitter)
 Emit YAML equivalent to the last which was sent to load().

Private Attributes

QString error_message_
std::auto_ptr< YAML::Node > saved_yaml_

Detailed Description

A FailedDisplay instance represents a Display class we tried and failed to instantiate.

FailedDisplay stores the class id which it was supposed to be, and an error message describing the failure.

The load() and save() functions work together to ensure that loaded configuration data is saved out again without modification. This ensures that running rviz with a missing plugin library won't damage config files which refer to it.

Definition at line 49 of file failed_display.h.


Constructor & Destructor Documentation

rviz::FailedDisplay::FailedDisplay ( const QString &  desired_class_id,
const QString &  error_message 
)

Definition at line 42 of file failed_display.cpp.


Member Function Documentation

QString rviz::FailedDisplay::getDescription (  )  const [virtual]

Return the description.

Reimplemented from rviz::Property.

Definition at line 61 of file failed_display.cpp.

QVariant rviz::FailedDisplay::getViewData ( int  column,
int  role 
) const [virtual]

Return data appropriate for the given column (0 or 1) and role for this Display.

Reimplemented from rviz::Display.

Definition at line 48 of file failed_display.cpp.

void rviz::FailedDisplay::load ( const YAML::Node &  yaml_node  )  [virtual]

Store the given YAML data for later, so we can return it with save() when someone writes this back to a file.

Reimplemented from rviz::Display.

Definition at line 66 of file failed_display.cpp.

void rviz::FailedDisplay::save ( YAML::Emitter &  emitter  )  [virtual]

Emit YAML equivalent to the last which was sent to load().

Reimplemented from rviz::Display.

Definition at line 72 of file failed_display.cpp.


Member Data Documentation

Definition at line 67 of file failed_display.h.

std::auto_ptr<YAML::Node> rviz::FailedDisplay::saved_yaml_ [private]

Definition at line 66 of file failed_display.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:47 2012