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 |
|
---|
9 | #include "defs.h"
|
---|
10 | #include <string>
|
---|
11 |
|
---|
12 | #include "ctimer.h"
|
---|
13 |
|
---|
14 | #include "dlftypes.h"
|
---|
15 |
|
---|
16 | class NTuple;
|
---|
17 | class Histo;
|
---|
18 | class Histo2D;
|
---|
19 | class HProf;
|
---|
20 | class PIStdImgApp;
|
---|
21 |
|
---|
22 | class Services2NObjMgr {
|
---|
23 | public:
|
---|
24 | Services2NObjMgr(PIStdImgApp* app, string& tmpdir);
|
---|
25 | ~Services2NObjMgr();
|
---|
26 |
|
---|
27 | inline void SetImgApp(PIStdImgApp* app) {mImgapp = app; }
|
---|
28 |
|
---|
29 | void Nobj_ComputeExpressions(PPersist* obj, string& expx, string& expy, string& expz,
|
---|
30 | string& expwt, string& expcut,
|
---|
31 | NTuple* nt=NULL, Histo* h1=NULL,
|
---|
32 | Histo2D* h2=NULL, HProf* hp=NULL);
|
---|
33 | PlotExprFunc LinkExprFunc(string& vardec, string& expx, string& expy, string& expz,
|
---|
34 | string& wt, string& cut);
|
---|
35 | DlFunction LinkFunctionFromFile(string& fnamer, char* funcname);
|
---|
36 | void CloseDLL();
|
---|
37 |
|
---|
38 | char* PClassIdToClassName(int cid);
|
---|
39 | char* PClassIdToShortClassName(int cid);
|
---|
40 | string FileName2Name(string const & fn);
|
---|
41 | int DecodeDispOption(string& dopt, bool& fgsrgr);
|
---|
42 |
|
---|
43 | void InitGrAttNames();
|
---|
44 |
|
---|
45 | // Variables membre , en public pour le moment
|
---|
46 | struct gratt_item {
|
---|
47 | int a1, a2;
|
---|
48 | };
|
---|
49 | typedef map<string, gratt_item, less<string> > GrAttNames;
|
---|
50 |
|
---|
51 | // Pour les changements d'attributs graphiques / de visualisation
|
---|
52 | GrAttNames GrAcolors;
|
---|
53 | GrAttNames GrAlines;
|
---|
54 | GrAttNames GrAmarkers;
|
---|
55 | GrAttNames GrAfonts;
|
---|
56 | GrAttNames GrAcmap;
|
---|
57 | GrAttNames GrAzoom;
|
---|
58 |
|
---|
59 | void* dlhandle; // shared-lib lib.so
|
---|
60 | string TmpDir; // Pour le link dynamique
|
---|
61 |
|
---|
62 | PIStdImgApp* mImgapp;
|
---|
63 |
|
---|
64 | };
|
---|
65 |
|
---|
66 |
|
---|
67 | #endif
|
---|