4 // ---------------------------------------------------------------------------
8 // This file is part of the ALICE Geometry Database .
10 // Author: Joana E. Santo/David Collados/Antonino Bajeli
12 // ---------------------------------------------------------------------------
15 #include "AliGConfig.h"
19 //-------------------------------------------------------------------------
21 AliGConfig::AliGConfig( Text_t* name, Text_t* title, TStringLong formula, Text_t* detail, const Text_t* shapetype, const Text_t* shapename, const Text_t* materialname, Int_t beg, Int_t end ) : TNamed(name, title)
24 fBeg.Set(beg,0000); // Time validity of node version
25 fDetail = detail; // Level of detail
26 fEnd.Set(end,0000); // Time validity of node version
28 fFormula = formula; //Formula describing the node structure below
29 fMaterialName = materialname;
30 fShapeName = shapename;
31 fShapeType = shapetype;
34 //-------------------------------------------------------------------------
36 AliGConfig::AliGConfig( AliGConfig* Config )
39 /* Copy Constructor */
40 fBeg.Copy(Config->fBeg); // Time validity of node version
41 fDetail = Config->fDetail.Copy(); // Level of detail
42 fEnd.Copy(Config->fEnd); // Time validity of node version
44 fFormula = Config->fFormula.Copy();
45 fMaterialName = Config->fMaterialName.Copy();
46 fName = Config->fName.Copy();
47 fShapeName = Config->fShapeName.Copy();
48 fShapeType = Config->fShapeType.Copy();
49 fTitle = Config->fTitle.Copy();
52 /* Default Constructor */
53 fBeg.Set(); // Time validity of node version
54 fDetail = ""; // Level of detail
55 fEnd.Set(); // Time validity of node version
56 fFormula = ""; // Formula describing the node structure below
65 //-------------------------------------------------------------------------
67 AliGConfig::~AliGConfig()
72 //-------------------------------------------------------------------------
74 AliGConfig* AliGConfig::operator=( AliGConfig* Config )
77 if( this == Config) return this; // special case.
79 Config->fBeg.Copy(this->fBeg); // Time validity of node version
80 fDetail = Config->fDetail; // Level of detail
81 Config->fEnd.Copy(this->fEnd); // Time validity of node version
83 fFormula = Config->fFormula.Copy();
84 fMaterialName = Config->fMaterialName.Copy();
85 fName = Config->fName.Copy();
86 fShapeName = Config->fShapeName.Copy();
87 fShapeType = Config->fShapeType.Copy();
88 fTitle = Config->fTitle.Copy();
93 //-------------------------------------------------------------------------