December 12, 2002  
 

Ce commit a pour but d'extraire les sources Metafor restantes dans Oofelie pour découpler Oofelie et Metafor. En effet, jusqu'à ce jour, lorsque nous voulions introduire de nouveaux Physet, Element, Material, etc, il n'était pas possible de le faire sans modifier le source de Oofelie. Ces modifs, souvent très localisées devaient être commitées et nous imposaient donc de se tenir à jour vis-à-vis de la version évoluante d'Open-Engineering. La solution apportée est très simple (idée de Luc). Il suffit de se donner quelques accès via des "includes" dans les fameux fichiers à modifier. Les fichiers à inclure sont dans le répertoire oo_meta/oo_patch de Metafor. Ainsi, par exemple, pour ajouter un Physet à Oofelie, on modifie le fichier oo_meta/oo_patch/mt_bit_pos_h.h et on le commite dans Metafor.

Liste des modifs auxiliaires:

 

Les fichiers ajoutés ont un nom qui respecte une certaine logique :

Le jour où tous ces fichiers auront disparu Oofelie sera modulaire.

Ajout des fichiers suivants:

A oo_kernel/hardening_properties.h
A oo_kernel/prophardening.cpp
A oo_kernel/prophardening.h
A oo_patch/mt_bit_pos_h.h
A oo_patch/mt_dim1d.h
A oo_patch/mt_dim2d.h
A oo_patch/mt_dim3d.h
A oo_patch/mt_dimension_h.h
A oo_patch/mt_domain_cpp.h
A oo_patch/mt_domain_dom_add.h
A oo_patch/mt_domain_if_not_found_int.h
A oo_patch/mt_domain_set_analysis.h
A oo_patch/mt_drawable.h
A oo_patch/mt_drawable_h.h
A oo_patch/mt_element.cpp
A oo_patch/mt_element.h
A oo_patch/mt_element_h.h
A oo_patch/mt_element_type_cpp.h
A oo_patch/mt_elemenum_h.h
A oo_patch/mt_elemset.cpp
A oo_patch/mt_elemset.h
A oo_patch/mt_elemset_h.h
A oo_patch/mt_fixaset.cpp
A oo_patch/mt_fixaset.h
A oo_patch/mt_fixaset_h.h
A oo_patch/mt_fixaset_to_dofset.h
A oo_patch/mt_i_new_child_from_id.h
A oo_patch/mt_i_new_child_from_po.h
A oo_patch/mt_i_size_all.h
A oo_patch/mt_id_cpp.h
A oo_patch/mt_id_h.h
A oo_patch/mt_init.cpp
A oo_patch/mt_init.h
A oo_patch/mt_main.cpp
A oo_patch/mt_materenum_h.h
A oo_patch/mt_material_type_cpp.h
A oo_patch/mt_physet.cpp
A oo_patch/mt_physet.h
A oo_patch/mt_physet_constructor.h
A oo_patch/mt_physet_copyconstructor.h
A oo_patch/mt_physet_cpp.h
A oo_patch/mt_physet_h.h
A oo_patch/mt_positset_h.h
A oo_patch/mt_propelem_init.h
A oo_patch/mt_propmater_init.h

Conclusion: ne modifiez plus Oofelie pour introduire ce qui peut l'être via ces fichiers; cela nous permet de certifier notre version beaucoup plus facilement.

Si toutefois vous avez besoin de modifier Oofelie (correction d'un bug) et que Open Engineering a trop de boulot pour le faire, il est possible de demander à O-E de créer une branche à partir de notre version courante pour y ajouter notre "patch" (qui, logiquement, sera très localisé).

 

 

Back to Metafor web server
created :December 12, 2002   modified : December 12, 2002
contact : r_boman_AT_yahoo.fr