source: Sophya/trunk/SophyaPI/PIext/nomgfdadapter.cc@ 463

Last change on this file since 463 was 463, checked in by ercodmgr, 26 years ago

HelpToTex + CopyObj (ds Adapter) et PawExecutor cmv+Reza 12/10/99

File size: 1.5 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-- */
15NOMAdapter_GeneralFitData::NOMAdapter_GeneralFitData(GeneralFitData* o)
16 : NObjMgrAdapter(o)
17{
18mG = o;
19}
20
21/* --Methode-- */
22NOMAdapter_GeneralFitData::~NOMAdapter_GeneralFitData()
23{
24}
25
26/* --Methode-- */
27NObjMgrAdapter* NOMAdapter_GeneralFitData::Clone(AnyDataObj* o)
28{
29GeneralFitData* g = dynamic_cast<GeneralFitData *>(o);
30if (g) return ( new NOMAdapter_GeneralFitData(g) );
31return ( new NObjMgrAdapter(o) );
32}
33
34/* --Methode-- */
35AnyDataObj* NOMAdapter_GeneralFitData::GetCopyObj()
36{
37return( new GeneralFitData(*mG) );
38}
39
40/* --Methode-- */
41void NOMAdapter_GeneralFitData::SavePPF(POutPersist& pos, string const & nom)
42{
43#ifdef SANS_EVOLPLANCK
44// PEIDA-EROS L'histo est lui-meme PPersist
45string tag = nom; // A cause de const
46mG->Write(pos,0,tag);
47#else
48string s = typeid(*mObj).name();
49cout<<"NOMAdapter_GeneralFitData::SavePPF() - Error : Not supported for "<<s<<endl;
50#endif
51}
52
53/* --Methode-- */
54void NOMAdapter_GeneralFitData::Print(ostream& os)
55{
56os << *(mG);
57}
58
59/* --Methode-- */
60NTupleInterface* NOMAdapter_GeneralFitData::GetNTupleInterface(bool& adel)
61{
62adel = false;
63return(mG);
64}
65
Note: See TracBrowser for help on using the repository browser.