#include <ModelBase.h>
Inheritance diagram for GUI::ModelBase:
Public Member Functions | |
const std::string & | getName () const |
Return the model name. | |
void | addProperty (AbstractProperty *property_ptr) throw (GuiException) |
Add a new property in the model. | |
AbstractProperty * | getProperty (const std::string &name) throw (GuiException) |
Return the property for the gived name. |
Contains the list of widget properties
void GUI::ModelBase::addProperty | ( | AbstractProperty * | property_ptr | ) | throw (GuiException) |
Add a new property in the model.
The property name must be unique in the model, otherwise a GuiException is throw
property_ptr | pointer to the new property, do not take ownership |
const std::string & GUI::ModelBase::getName | ( | ) | const |
Return the model name.
AbstractProperty * GUI::ModelBase::getProperty | ( | const std::string & | name | ) | throw (GuiException) |
Return the property for the gived name.
The property name must exist, otherwise a GuiException is throw
name | the property name |