1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
23 // ---------------------------------------------------------------------------
27 // This file is part of the ALICE Geometry Database .
29 // Author: Joana E. Santo/David Collados/Antonino Bajeli
31 // ---------------------------------------------------------------------------
34 #include "AliGConfig.h"
38 //-------------------------------------------------------------------------
40 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)
43 fBeg.Set(beg,0000); // Time validity of node version
44 fDetail = detail; // Level of detail
45 fEnd.Set(end,0000); // Time validity of node version
47 fFormula = formula; //Formula describing the node structure below
48 fMaterialName = materialname;
49 fShapeName = shapename;
50 fShapeType = shapetype;
53 //-------------------------------------------------------------------------
55 AliGConfig::AliGConfig( AliGConfig* Config )
58 /* Copy Constructor */
59 fBeg.Copy(Config->fBeg); // Time validity of node version
60 fDetail = Config->fDetail.Copy(); // Level of detail
61 fEnd.Copy(Config->fEnd); // Time validity of node version
63 fFormula = Config->fFormula.Copy();
64 fMaterialName = Config->fMaterialName.Copy();
65 fName = Config->fName.Copy();
66 fShapeName = Config->fShapeName.Copy();
67 fShapeType = Config->fShapeType.Copy();
68 fTitle = Config->fTitle.Copy();
71 /* Default Constructor */
72 fBeg.Set(); // Time validity of node version
73 fDetail = ""; // Level of detail
74 fEnd.Set(); // Time validity of node version
75 fFormula = ""; // Formula describing the node structure below
84 //-------------------------------------------------------------------------
86 AliGConfig::~AliGConfig()
91 //-------------------------------------------------------------------------
93 AliGConfig* AliGConfig::operator=( AliGConfig* Config )
96 if( this == Config) return this; // special case.
98 Config->fBeg.Copy(this->fBeg); // Time validity of node version
99 fDetail = Config->fDetail; // Level of detail
100 Config->fEnd.Copy(this->fEnd); // Time validity of node version
102 fFormula = Config->fFormula.Copy();
103 fMaterialName = Config->fMaterialName.Copy();
104 fName = Config->fName.Copy();
105 fShapeName = Config->fShapeName.Copy();
106 fShapeType = Config->fShapeType.Copy();
107 fTitle = Config->fTitle.Copy();
112 //-------------------------------------------------------------------------