| [223] | 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
 | 2 | // Classe de services destinee a NamedObjMgr pour piapp
 | 
|---|
 | 3 | // Reza                             Aout 98
 | 
|---|
 | 4 | // CEA-DAPNIA      LAL-IN2P3/CNRS
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | #ifndef SERVNOBJM_H_SEEN
 | 
|---|
 | 7 | #define SERVNOBJM_H_SEEN
 | 
|---|
 | 8 | 
 | 
|---|
| [249] | 9 | #include "machdefs.h"
 | 
|---|
| [223] | 10 | #include <string>
 | 
|---|
 | 11 | 
 | 
|---|
 | 12 | #include "ctimer.h"
 | 
|---|
 | 13 | 
 | 
|---|
 | 14 | #include "pdlmgr.h"
 | 
|---|
 | 15 | #include "dlftypes.h"
 | 
|---|
 | 16 | 
 | 
|---|
 | 17 | class NTuple;
 | 
|---|
 | 18 | class Histo;
 | 
|---|
 | 19 | class Histo2D;
 | 
|---|
 | 20 | class HProf;
 | 
|---|
 | 21 | class PIStdImgApp;
 | 
|---|
 | 22 | 
 | 
|---|
 | 23 | class Services2NObjMgr {
 | 
|---|
 | 24 | public:
 | 
|---|
 | 25 |                 Services2NObjMgr(PIStdImgApp* app, string& tmpdir);
 | 
|---|
 | 26 |                 ~Services2NObjMgr();
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 |   inline void   SetImgApp(PIStdImgApp* app) {mImgapp = app; }
 | 
|---|
 | 29 | 
 | 
|---|
 | 30 |   void          Nobj_ComputeExpressions(PPersist* obj, string& expx, string& expy, string& expz, 
 | 
|---|
 | 31 |                                         string& expwt, string& expcut,
 | 
|---|
 | 32 |                                         NTuple* nt=NULL, Histo* h1=NULL,
 | 
|---|
 | 33 |                                         Histo2D* h2=NULL, HProf* hp=NULL);
 | 
|---|
 | 34 |   PlotExprFunc  LinkExprFunc(string& vardec, string& expx, string& expy, string& expz, 
 | 
|---|
 | 35 |                              string& wt, string& cut);
 | 
|---|
 | 36 |   DlFunction    LinkFunctionFromFile(string& fnamer, char* funcname);
 | 
|---|
 | 37 |   void          CloseDLL();  
 | 
|---|
 | 38 | 
 | 
|---|
 | 39 |   char*         PClassIdToClassName(int cid);
 | 
|---|
 | 40 |   char*         PClassIdToShortClassName(int cid);
 | 
|---|
 | 41 |   string        FileName2Name(string const & fn);
 | 
|---|
 | 42 |   int           DecodeDispOption(string& dopt, bool& fgsrgr);
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 |   void          InitGrAttNames();
 | 
|---|
 | 45 | 
 | 
|---|
 | 46 | //   Variables membre , en public pour le moment
 | 
|---|
 | 47 |   struct gratt_item {
 | 
|---|
 | 48 |     int a1, a2;
 | 
|---|
 | 49 |   };
 | 
|---|
 | 50 |   typedef map<string, gratt_item, less<string> > GrAttNames;
 | 
|---|
 | 51 | 
 | 
|---|
 | 52 | //  Pour les changements d'attributs graphiques / de visualisation
 | 
|---|
 | 53 |   GrAttNames GrAcolors;
 | 
|---|
 | 54 |   GrAttNames GrAlines;
 | 
|---|
 | 55 |   GrAttNames GrAmarkers;
 | 
|---|
 | 56 |   GrAttNames GrAfonts;
 | 
|---|
 | 57 |   GrAttNames GrAcmap;  
 | 
|---|
 | 58 |   GrAttNames GrAzoom;  
 | 
|---|
 | 59 |   GrAttNames GrAaxes;  
 | 
|---|
 | 60 | 
 | 
|---|
 | 61 |   PDynLinkMgr * dynlink;  // shared-lib lib.so
 | 
|---|
 | 62 |   string TmpDir;          // Pour fichiers temporaires
 | 
|---|
 | 63 | 
 | 
|---|
 | 64 |   PIStdImgApp* mImgapp;
 | 
|---|
 | 65 |   
 | 
|---|
 | 66 | };
 | 
|---|
 | 67 | 
 | 
|---|
 | 68 | 
 | 
|---|
 | 69 | #endif
 | 
|---|