GUI::ModelBase Class Reference

Base class for widget model. More...

#include <ModelBase.h>

Inheritance diagram for GUI::ModelBase:

GUI::EditModel GUI::FormModel List of all members.

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.
AbstractPropertygetProperty (const std::string &name) throw (GuiException)
 Return the property for the gived name.

Detailed Description

Base class for widget model.

Contains the list of widget properties

See also:
GUI::Property


Member Function Documentation

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

Parameters:
property_ptr pointer to the new property, do not take ownership

const std::string & GUI::ModelBase::getName (  )  const

Return the model name.

Returns:
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

Parameters:
name the property name
Returns:
the property pointer


The documentation for this class was generated from the following files:
Generated on Wed Nov 15 22:21:10 2006 for Win32 by  doxygen 1.4.7