Ignore:
Timestamp:
Jan 11, 2007, 7:02:52 PM (19 years ago)
Author:
ansari
Message:

1/ Introduction d'une classe P1DHistoWrapper (fichier phistwrapper.h) pour rendre PIHisto independant de SOPHYA et des objets Histo, HistErr, HProf ...
2/ Ecriture du wrapper/adaptateur pour SOPHYA::Histo,HProf,HistErr
3/ mise en conformite des ObjAdapter piapp pour Histo,HistErr, chgt numero de version

Reza 11/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomherradapter.cc

    r3123 r3125  
    88#include "nomherradapter.h"
    99#include "servnobjm.h"
    10 /*  A_FAIRE_REZA      #include "pihisterr.h" */
    11 /*  A_FAIRE_REZA      #include "pihist2err.h" */
     10
     11#include "pihisto.h"   /* Wrapper pour HistoErr */
     12#include "sohiswrap.h"   /* Wrapper pour HistoErr */
     13
    1214
    1315#include "objfitter.h"
     
    100102PIDrawer* NOMAdapter_HistoErr::GetDrawer(string & dopt)
    101103{
    102   /*  A_FAIRE_REZA    -> + des options pour choisir val / err2 / nb
    103 if (typeid(*mHerr) == typeid(HProf))  dopt = "fcirclemarker5 " + dopt;
    104 else dopt = "thinline " + dopt;
    105 PIHistoErr * pih = new PIHistoErr(mHerr, false);
     104  /*  A_FAIRE_CMV    -> + des options pour choisir val / err2 / nb
     105      pour les options, il faut rajouter des arguments ou methodes a
     106      la classe HistoErrWrapper() et modifier la methode  operator()(int_4 i) Error()
     107
     108      Si besoin, modifier dopt apres... dopt = "fcirclemarker5 " + dopt;
     109  */
     110HistoErrWrapper* hw = new HistoErrWrapper(mHerr, false); // false: le Wrapper ne delete pas l'objet mHerr
     111PIHisto * pih = new PIHisto(hw, true); // true: PIHisto delete l'objet HistoErrWrapper hw
    106112return( pih );
    107   */
    108   return NULL;
    109113}
    110114
Note: See TracChangeset for help on using the changeset viewer.