GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ENSDF.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef GW_ENSDF_H
24 #define GW_ENSDF_H
25 
26 #ifndef GW_BASEENSDF_H
27 #include "BaseENSDF.h"
28 #endif
29 
30 #ifndef ROOT_Rtypes
31 #include <Rtypes.h>
32 #endif
33 #ifndef ROOT_Gtypes
34 #include <Gtypes.h>
35 #endif
36 #ifndef ROOT_TString
37 #include <TString.h>
38 #endif
39 
40 namespace Gw {
41 
42 class Level;
43 class Link;
44 
52 class ENSDF : public BaseENSDF
53 {
54 private:
55 
56 protected:
57 
58 
59 public:
60  ENSDF();
61  virtual ~ENSDF();
62 
63  void test();
64 
66 
72  virtual Link *GetLink(const char *, TString &);
73 
75 
91  virtual Level *GetLevel(const char *, TString &);
92 
93  virtual bool Open(const char *fname) { return BaseENSDF::Open(fname) ; }
94  virtual void Close() { BaseENSDF::Close() ; }
95  virtual bool IsOpen() { return BaseENSDF::IsOpen(); }
96 
97  virtual unsigned int IsDataSet(const char *nuclide, const char *dsid = "ADOPTED LEVELS, GAMMAS") const
98  { return BaseENSDF::IsDataSet(nuclide,dsid); }
99 
100  // virtual void ls(Option_t *) const ;
101  virtual void ls(std::ostream &) const ;
102 
104  ClassDef(ENSDF,0); // Interface to ENSDF
105 };
106 
107 }
108 #endif
virtual ~ENSDF()
Definition: ENSDF.cpp:51
virtual bool IsOpen()
Definition: BaseENSDF.h:98
virtual void Close()
Definition: BaseENSDF.cpp:295
virtual unsigned int IsDataSet(const char *nuclide, const char *dsid="ADOPTED LEVELS, GAMMAS") const
look for a given data set
Definition: ENSDF.h:97
virtual bool Open(const char *fname)
Definition: ENSDF.h:93
virtual Link * GetLink(const char *, TString &)
to get a link from a record
Definition: ENSDF.cpp:53
General interface to ENSDF files.
Definition: BaseENSDF.h:53
ENSDF: Interface between ENSDF files and the GammaWare Nuclear data related objects.
Definition: ENSDF.h:52
ENSDF()
Definition: ENSDF.cpp:47
virtual Level * GetLevel(const char *, TString &)
to get a NuclearLevel from a Level record
Definition: ENSDF.cpp:85
virtual void ls(std::ostream &) const
Definition: ENSDF.cpp:240
base classe to interface ENSDF (Evaluated Nuclear Structure Data File)
void test()
Definition: ENSDF.cpp:245
virtual bool Open(const char *)
Definition: BaseENSDF.cpp:178
virtual unsigned int IsDataSet(const char *nuclide, const char *dsid="ADOPTED LEVELS, GAMMAS") const
look for a given data set
Definition: BaseENSDF.cpp:123
ClassDef(ENSDF, 0)
Root dictionary related.
virtual bool IsOpen()
Definition: ENSDF.h:95
virtual void Close()
Definition: ENSDF.h:94
Base class describing a general level.
Definition: Level.h:53