Last change
on this file since 1134 was 1068, checked in by ercodmgr, 25 years ago |
petit pb de print pour saveobjs
intro du PPersist pour GeneralFitData
cmv 13/7/00
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "machdefs.h"
|
---|
2 | #include <stdlib.h>
|
---|
3 | #include <typeinfo>
|
---|
4 | #include <iostream.h>
|
---|
5 | #include <string>
|
---|
6 |
|
---|
7 | #include "nomgfdadapter.h"
|
---|
8 | #include "pipodrw.h"
|
---|
9 |
|
---|
10 | //-------------------------------------------------------------------------
|
---|
11 | // Class Adaptateur d'objet (Pour NamedObjMgr) d'objet GeneralFitData
|
---|
12 | //-------------------------------------------------------------------------
|
---|
13 |
|
---|
14 | /* --Methode-- */
|
---|
15 | NOMAdapter_GeneralFitData::NOMAdapter_GeneralFitData(GeneralFitData* o)
|
---|
16 | : NObjMgrAdapter(o)
|
---|
17 | {
|
---|
18 | mG = o;
|
---|
19 | }
|
---|
20 |
|
---|
21 | /* --Methode-- */
|
---|
22 | NOMAdapter_GeneralFitData::~NOMAdapter_GeneralFitData()
|
---|
23 | {
|
---|
24 | }
|
---|
25 |
|
---|
26 | /* --Methode-- */
|
---|
27 | NObjMgrAdapter* NOMAdapter_GeneralFitData::Clone(AnyDataObj* o)
|
---|
28 | {
|
---|
29 | GeneralFitData* g = dynamic_cast<GeneralFitData *>(o);
|
---|
30 | if (g) return ( new NOMAdapter_GeneralFitData(g) );
|
---|
31 | return ( new NObjMgrAdapter(o) );
|
---|
32 | }
|
---|
33 |
|
---|
34 | /* --Methode-- */
|
---|
35 | AnyDataObj* NOMAdapter_GeneralFitData::GetCopyObj()
|
---|
36 | {
|
---|
37 | return( new GeneralFitData(*mG) );
|
---|
38 | }
|
---|
39 |
|
---|
40 | /* --Methode-- */
|
---|
41 | void NOMAdapter_GeneralFitData::SavePPF(POutPersist& pos, string const & nom)
|
---|
42 | {
|
---|
43 | #ifdef SANS_EVOLPLANCK
|
---|
44 | string tag = nom; // A cause de const
|
---|
45 | mG->Write(pos,0,tag);
|
---|
46 | #else
|
---|
47 | ObjFileIO<GeneralFitData> fio(mG);
|
---|
48 | fio.Write(pos, nom);
|
---|
49 | #endif
|
---|
50 | }
|
---|
51 |
|
---|
52 | /* --Methode-- */
|
---|
53 | void NOMAdapter_GeneralFitData::Print(ostream& os)
|
---|
54 | {
|
---|
55 | os << *(mG);
|
---|
56 | }
|
---|
57 |
|
---|
58 | /* --Methode-- */
|
---|
59 | NTupleInterface* NOMAdapter_GeneralFitData::GetNTupleInterface(bool& adel)
|
---|
60 | {
|
---|
61 | adel = false;
|
---|
62 | return(mG);
|
---|
63 | }
|
---|
64 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.