source: Sophya/trunk/SophyaPI/PIext/servnobjm.h@ 171

Last change on this file since 171 was 171, checked in by ercodmgr, 27 years ago

Adaptation a PDynLinkMgr Reza 21/12/98

File size: 1.8 KB
Line 
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 "pdlmgr.h"
15#include "dlftypes.h"
16
17class NTuple;
18class Histo;
19class Histo2D;
20class HProf;
21class PIStdImgApp;
22
23class Services2NObjMgr {
24public:
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
60 PDynLinkMgr * dynlink; // shared-lib lib.so
61 string TmpDir; // Pour fichiers temporaires
62
63 PIStdImgApp* mImgapp;
64
65};
66
67
68#endif
Note: See TracBrowser for help on using the repository browser.