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

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

Creation du module PIext en regroupant des fichiers de Drawer/Wdg pour
Objets ds PEIDA/Outils++, Images++, ... et des classes de ProgPI,
lie a piapp (PIStdImgApp, NamedObjMgr, ...) Reza 18/12/98

File size: 1.8 KB
RevLine 
[165]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
16class NTuple;
17class Histo;
18class Histo2D;
19class HProf;
20class PIStdImgApp;
21
22class Services2NObjMgr {
23public:
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
Note: See TracBrowser for help on using the repository browser.