Changeset 1164 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Aug 30, 2000, 1:10:17 PM (25 years ago)
Author:
ercodmgr
Message:

MAJ Makefile - Reza 30/8/2000

Location:
trunk/SophyaPI/PIext
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/Makefile

    r1117 r1164  
    6767 $(INC)ppersist.h \
    6868 $(INC)pexceptions.h \
    69  $(INC)gnumd5.h pisiadw.h \
     69 $(INC)gnumd5.h \
     70 $(INC)dvlist.h \
     71 $(INC)objfio.h \
     72 $(INC)mutyv.h pisiadw.h \
    7073 $(INC)pilistx.h \
    7174 $(INC)pilistgen.h \
     
    7477 $(INC)periodic.h servnobjm.h \
    7578 $(INC)histos.h \
    76  $(INC)objfio.h \
    7779 $(INC)peida.h \
    7880 $(INC)utils.h \
     
    8385 $(INC)tarray.h \
    8486 $(INC)basarr.h \
    85  $(INC)mutyv.h \
    86  $(INC)dvlist.h \
    8787 $(INC)ndatablock.h \
    8888 $(INC)utilarr.h \
     
    9999 $(INC)ppersist.h \
    100100 $(INC)pexceptions.h \
    101  $(INC)gnumd5.h dlftypes.h servnobjm.h \
     101 $(INC)gnumd5.h \
     102 $(INC)dvlist.h \
     103 $(INC)objfio.h \
     104 $(INC)mutyv.h dlftypes.h servnobjm.h \
    102105 $(INC)pdlmgr.h nomgadapter.h \
    103106 $(INC)pidrawer.h \
     
    158161 $(INC)fmath.h \
    159162 $(INC)histos.h \
    160  $(INC)objfio.h \
    161  $(INC)tvector.h \
    162  $(INC)tmatrix.h \
    163  $(INC)tarray.h \
    164  $(INC)basarr.h \
    165  $(INC)mutyv.h \
    166  $(INC)dvlist.h \
     163 $(INC)tvector.h \
     164 $(INC)tmatrix.h \
     165 $(INC)tarray.h \
     166 $(INC)basarr.h \
    167167 $(INC)ndatablock.h \
    168168 $(INC)utilarr.h pintuple.h pintup3d.h \
     
    332332 $(INC)objfio.h \
    333333 $(INC)ndatablock.h \
    334  $(INC)utilarr.h pimgadapter.h
     334 $(INC)utilarr.h \
     335 $(INC)fioarr.h \
     336 $(INC)tvector.h pimgadapter.h
    335337$(OBJ)nomskymapadapter.o: nomskymapadapter.cc \
    336338 $(INC)machdefs.h nomskymapadapter.h \
     
    591593 $(INC)ppersist.h \
    592594 $(INC)pexceptions.h \
    593  $(INC)gnumd5.h pisiadw.h \
     595 $(INC)gnumd5.h \
     596 $(INC)dvlist.h \
     597 $(INC)objfio.h \
     598 $(INC)mutyv.h pisiadw.h \
    594599 $(INC)pilistx.h \
    595600 $(INC)pilistgen.h \
     
    601606 $(INC)tarray.h \
    602607 $(INC)basarr.h \
    603  $(INC)mutyv.h \
    604  $(INC)dvlist.h \
    605  $(INC)objfio.h \
    606608 $(INC)ndatablock.h \
    607609 $(INC)utilarr.h pawexecut.h
     
    634636 $(INC)ntuple.h \
    635637 $(INC)cimage.h \
     638 $(INC)fioarr.h \
    636639 $(INC)histos.h \
    637640 $(INC)histos2.h \
     
    917920 $(INC)ppersist.h \
    918921 $(INC)pexceptions.h \
    919  $(INC)gnumd5.h dlftypes.h piacmd.h \
     922 $(INC)gnumd5.h \
     923 $(INC)dvlist.h \
     924 $(INC)objfio.h \
     925 $(INC)mutyv.h dlftypes.h piacmd.h \
    920926 $(INC)pdlmgr.h pisiadw.h \
    921927 $(INC)pilistx.h \
     
    927933 $(INC)ntupintf.h \
    928934 $(INC)histos.h \
    929  $(INC)objfio.h \
    930935 $(INC)peida.h \
    931936 $(INC)utils.h \
     
    936941 $(INC)tarray.h \
    937942 $(INC)basarr.h \
    938  $(INC)mutyv.h \
    939  $(INC)dvlist.h \
    940943 $(INC)ndatablock.h \
    941944 $(INC)utilarr.h \
     
    946949 $(INC)generaldata.h \
    947950 $(INC)poly.h nomimagadapter.h \
    948  $(INC)cimage.h nomtmatvecadapter.h \
     951 $(INC)cimage.h \
     952 $(INC)fioarr.h nomtmatvecadapter.h \
    949953 nomskymapadapter.h $(INC)pixelmap.h \
    950954 $(INC)spherepos.h \
     
    11011105 $(INC)anydataobj.h \
    11021106 $(INC)ppersist.h \
    1103  $(INC)gnumd5.h dlftypes.h piacmd.h \
     1107 $(INC)gnumd5.h \
     1108 $(INC)dvlist.h \
     1109 $(INC)objfio.h \
     1110 $(INC)mutyv.h dlftypes.h piacmd.h \
    11041111 $(INC)pdlmgr.h pisiadw.h \
    11051112 $(INC)pilistx.h \
     
    11271134 $(INC)gnumd5.h \
    11281135 $(INC)ndatablock.h \
    1129  $(INC)utilarr.h pistdimgapp.h \
     1136 $(INC)utilarr.h \
     1137 $(INC)fioarr.h \
     1138 $(INC)tvector.h pistdimgapp.h \
    11301139 $(INC)pisysdep.h \
    11311140 $(INC)piapplx.h \
     
    11831192 $(INC)fmath.h \
    11841193 $(INC)histos.h \
    1185  $(INC)tvector.h \
    11861194 $(INC)piscdrawwdg.h \
    11871195 $(INC)piimgtools.h \
     
    12151223 $(INC)ppersist.h \
    12161224 $(INC)pexceptions.h \
    1217  $(INC)gnumd5.h dlftypes.h servnobjm.h \
     1225 $(INC)gnumd5.h \
     1226 $(INC)dvlist.h \
     1227 $(INC)objfio.h \
     1228 $(INC)mutyv.h dlftypes.h servnobjm.h \
    12181229 $(INC)pdlmgr.h nomgadapter.h \
    12191230 $(INC)pidrawer.h \
     
    12731284 $(INC)tarray.h \
    12741285 $(INC)basarr.h \
    1275  $(INC)mutyv.h \
    1276  $(INC)dvlist.h \
    1277  $(INC)objfio.h \
    12781286 $(INC)ndatablock.h \
    12791287 $(INC)utilarr.h \
     
    12871295 $(INC)ntuple.h \
    12881296 $(INC)cimage.h \
     1297 $(INC)fioarr.h \
    12891298 $(INC)histos.h \
    12901299 $(INC)histos2.h \
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r1105 r1164  
    1717#include "pistdimgapp.h"
    1818
     19#include "dvlist.h"
    1920
    2021// EVOL-PLANCK
     
    8485static Services2NObjMgr* servnobjm=NULL;
    8586
     87static DVList* myVars = NULL;  // Pour stocker les variables
     88
    8689static string* TmpDir;  // Repertoire pour les compilations / link dynamique
    8790
     
    112115  myDirs = new NObjDirList;
    113116  myObjs = new NObjList; 
     117  myVars = new DVList;
    114118  currDir = new string("home");
    115119  string dirn = "home";
     
    144148{
    145149fgOInit--;
    146 if (fgOInit == 0)  delete myObjs;
     150if (fgOInit == 0)  {
     151  string patt = "/*/*";
     152  DelObjects(patt, true);
     153  delete myObjs;
     154  delete myDirs;
     155  delete myVars;
     156}
    147157}
    148158
     
    188198{
    189199return(servnobjm);
     200}
     201
     202/* --Methode-- */
     203bool NamedObjMgr::SetVar(string const & key, string const & val)
     204{
     205  bool fg = myVars->HasKey(key);
     206  myVars->SetS(key, val);
     207  return(fg);
     208}
     209
     210/* --Methode-- */
     211bool NamedObjMgr::HasVar(string const & key)
     212{
     213  return(myVars->HasKey(key));
     214}
     215
     216/* --Methode-- */
     217bool NamedObjMgr::DeleteVar(string const & key)
     218{
     219  return(myVars->DeleteKey(key));
     220}
     221
     222/* --Methode-- */
     223string NamedObjMgr::GetVar(string const & key)
     224{
     225  return(myVars->GetS(key));
     226}
     227
     228/* --Methode-- */
     229DVList& NamedObjMgr::GetVarList()
     230{
     231  return(*myVars);
    190232}
    191233
     
    545587}
    546588
     589
    547590/* --Methode-- */
    548591bool NamedObjMgr::DelObj(string & nom, bool fgd)
  • trunk/SophyaPI/PIext/nobjmgr.h

    r495 r1164  
    88
    99#include "machdefs.h"
     10
     11#include <fstream.h>
     12#include <string>
     13#include <vector>
     14
    1015#include "anydataobj.h"
    1116#include "ppersist.h"
     17#include "dvlist.h"
    1218#include "dlftypes.h"
    1319
    14 #include <string>
    15 #include <vector>
    1620
    1721class NObjMgrAdapter;
     
    2832  virtual void          SetVerbose(bool fg=false);
    2933
     34// Gestion des variables globales (dans un DVList)
     35  virtual bool          SetVar(string const & key, string const & val);
     36  virtual bool          HasVar(string const & key);
     37  virtual bool          DeleteVar(string const & key);
     38  virtual string        GetVar(string const & key);
     39  virtual DVList&       GetVarList();
    3040
    31 // Gestion des repertoires
     41// Gestion des repertoires (Repertoire d'objets en memoire)
    3242  virtual bool          CreateDir(string & dirname);
    3343  virtual bool          DeleteDir(string & dirname);
     
    4454  virtual bool          AddObj(AnyDataObj* obj, string & nom, bool crd=false);
    4555  virtual bool          RenameObj(string & nom, string& nomnew);
    46   virtual bool          CopyObj(string & nom, string& nomcp);
    4756  virtual bool          DelObj(string & nom, bool fgd=true);
    4857  virtual void          DelObjects(string & patt, bool fgd=true);
    4958  virtual bool          DelObj_Id(int oid);
    5059  virtual AnyDataObj*   GetObj(string & nom);
     60// Acces a l'adaptateur
     61  virtual NObjMgrAdapter*       GetObjAdapter(string & nom);
     62// Liste des objets
    5163  virtual void          ListObjs(string & patt);               
    5264  virtual void          GetObjList(string & patt, vector<string>& );           
     65// Methode CopyObj() a virer probablement (Reza 30/8/200 obsolete ?)
     66  virtual void          CopyObj(string & nom, string& nomcp)
    5367
    5468//  Lecture et sauvegarde des objets sur fichier
     
    7892  virtual void          SetGraphicWinZone(int nzx, int nzy, bool fcr=false);
    7993
    80 // Acces a l'adaptateur
    81   virtual NObjMgrAdapter*       GetObjAdapter(string & nom);
    8294
    8395// Acces au PIApplication et a la classe de service
  • trunk/SophyaPI/PIext/nomgadapter.cc

    r463 r1164  
    3030
    3131/* --Methode-- */
     32string NObjMgrAdapter::GetDataObjType()
     33{
     34  return("AnyDataObj ");
     35}
     36
     37/* --Methode-- */
    3238AnyDataObj* NObjMgrAdapter::GetCopyObj()
    3339{
     
    3541cout << "NObjMgrAdapter::GetCopyObj() - Error : Not supported for " << s << endl;
    3642return(NULL);
     43}
     44
     45/* --Methode-- */
     46AnyDataObj* NObjMgrAdapter::CloneObj()
     47{
     48string s = typeid(*mObj).name();
     49cout << "NObjMgrAdapter::CloneObj() - Error : Not supported for " << s << endl;
     50return(NULL);
     51}
     52
     53/* --Methode-- */
     54void NObjMgrAdapter::CopyFrom(AnyDataObj *)
     55{
     56string s = typeid(*mObj).name();
     57cout << "NObjMgrAdapter::CopyFrom() - Error : Not supported for " << s << endl;
     58}
     59
     60
     61/* --Methode-- */
     62string NObjMgrAdapter::ToString()
     63{
     64char buff[128];
     65sprintf("%s@%lx", typeid(*mObj).name(), (long)mObj);
     66return(buff);
     67}
     68
     69/* --Methode-- */
     70void NObjMgrAdapter::FillFromString()
     71{
     72string s = typeid(*mObj).name();
     73cout << "NObjMgrAdapter::FillFromString() - Error : Not supported for " << s << endl;
     74 return;
    3775}
    3876
  • trunk/SophyaPI/PIext/nomgadapter.h

    r463 r1164  
    2525  virtual NObjMgrAdapter*       Clone(AnyDataObj* o);
    2626
     27  // Returns the actual data-object
    2728  virtual AnyDataObj*           GetDataObj();
    28   virtual AnyDataObj*           GetCopyObj();
     29
     30  // Returns the actual data-object type (class name)
     31  virtual string                GetDataObjType();
     32
     33  // Returns a new data-object, cloning the original object
     34  virtual AnyDataObj*           CloneDataObj();
     35  virtual AnyDataObj*           GetCopyObj();  // Methode obsolete - Devra etre remplace
     36                                               // par CloneDataObj()
     37
     38  // Copies data from object o
     39  virtual void                  CopyFrom(AnyDataObj* o);
     40
     41// Returns a string representation of the object
     42  virtual string                ToString();
     43// Fills the object from a string
     44  virtual void                  FillFromString();
    2945
    3046  virtual void                  ReadFits(string const & flnm);
  • trunk/SophyaPI/PIext/nomskymapadapter.cc

    r855 r1164  
    1717public:
    1818                LocalMapArrAdapter(LocalMap<T>* lm, bool d=false) :
    19                     P2DArrayAdapter(lm->XSize(), lm->YSize())
     19                    P2DArrayAdapter(lm->SizeX(), lm->SizeY())
    2020                    { ad = d; map = lm; }
    2121
Note: See TracChangeset for help on using the changeset viewer.