The interface definition for a PureMVC Model. More...
#include <pmvcpp.h>
Public Member Functions | |
virtual void | registerProxy (IProxy *proxy)=0 |
Register an IProxy instance with the Model . | |
virtual IProxy * | retrieveProxy (std::string proxyName)=0 |
Retrieve an IProxy instance from the Model. | |
virtual IProxy * | removeProxy (std::string proxyName)=0 |
Remove an IProxy instance from the Model. | |
virtual bool | hasProxy (std::string proxyName)=0 |
Check if a Proxy is registered. | |
virtual void | setMultitonKey (std::string key)=0 |
Set multiton key. | |
virtual std::string | getMultitonKey ()=0 |
Get multiton key. |
The interface definition for a PureMVC Model.
In PureMVC, IModel
implementors provide access to IProxy
objects by named lookup.
An IModel
assumes these responsibilities:
IProxy
instances IProxy
instances virtual std::string PureMVC::IMultitonKeyHeir::getMultitonKey | ( | ) | [pure virtual, inherited] |
Get multiton key.
Returns the multiton key.
Implemented in PureMVC::MultitonKeyHeir.
virtual bool PureMVC::IModel::hasProxy | ( | std::string | proxyName | ) | [pure virtual] |
Check if a Proxy is registered.
proxyName |
proxyName
. Implemented in PureMVC::Model.
virtual void PureMVC::IModel::registerProxy | ( | IProxy * | proxy | ) | [pure virtual] |
Register an IProxy
instance with the Model
.
proxyName | the name to associate with this IProxy instance. | |
proxy | an object reference to be held by the Model . |
Implemented in PureMVC::Model.
virtual IProxy* PureMVC::IModel::removeProxy | ( | std::string | proxyName | ) | [pure virtual] |
virtual IProxy* PureMVC::IModel::retrieveProxy | ( | std::string | proxyName | ) | [pure virtual] |
Retrieve an IProxy
instance from the Model.
proxyName |
IProxy
instance previously registered with the given proxyName
. Implemented in PureMVC::Model.
virtual void PureMVC::IMultitonKeyHeir::setMultitonKey | ( | std::string | key | ) | [pure virtual, inherited] |
Set multiton key.
Sets the multiton key.
key | The name of the key |
Implemented in PureMVC::MultitonKeyHeir.