Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OOP Design
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00198504
Message ID:
00198735
Vues:
16
Hi Ned -

I will check out the Iterator and Visitor Patterns. By your description, it sounds promising.

Thanks!
~ ellen


> A couple of questions:
> 1.) Which objects in your system know what fields need to be updated?
> 2.) Have you looked at the Iterator and Visitor patterns?
> If there are objects(call them 'process objects') that know which fields need to be updated in a given situation, then you could iterate through them and either:
> a.) Pass a reference to your visitor into the process object and have it call the appropriate methods to update the data
> - Isolates knowlege of fields to update to the process objects
> b.) Pass a reference to your process object to the update object and have it iterrogate the process object to determine which fields need to be stored, what their values are and update the data
> - Requires a more complicated update object then option a.)
ellen whitney
EPS Software Corp
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform