FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGeoMedia.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRGEOMEDIA_H
9 #define FAIRGEOMEDIA_H
10 
11 #include <Rtypes.h> // for FairGeoMedia::Class, etc
12 #include <TNamed.h> // for TNamed
13 #include <TString.h> // for TString
14 #include <iosfwd> // for fstream
15 
16 class FairGeoMedium;
17 class TList;
18 
23 class FairGeoMedia : public TNamed
24 {
25  private:
26  TList* media;
27  TString inputFile;
28  TString author;
29  TString description;
30  public:
31  FairGeoMedia();
32  ~FairGeoMedia();
33  void setInputFile(const char* file) { inputFile = file; }
34  const char* getInputFile() { return inputFile; }
35  void addMedium(FairGeoMedium* m);
36  FairGeoMedium* getMedium(const char*);
37  TList* getListOfMedia() { return media; }
38  void read(std::fstream&);
39  void print();
40  void list();
41  void write(std::fstream&);
42  void setAuthor(TString& s) { author = s; }
43  void setDescription(TString& s) { description = s; }
44  TString& getAuthor() { return author; }
45  TString& getDescription() { return description; }
46 
47  private:
48  FairGeoMedia(const FairGeoMedia&);
49  FairGeoMedia& operator=(const FairGeoMedia&);
50 
51  ClassDef(FairGeoMedia, 0);
52 };
53 
54 #endif /* !FAIRGEOMEDIA_H */
TList * getListOfMedia()
Definition: FairGeoMedia.h:37
void addMedium(FairGeoMedium *m)
TString & getAuthor()
Definition: FairGeoMedia.h:44
void setDescription(TString &s)
Definition: FairGeoMedia.h:43
FairGeoMedium * getMedium(const char *)
void read(std::fstream &)
void setInputFile(const char *file)
Definition: FairGeoMedia.h:33
void write(std::fstream &)
TString & getDescription()
Definition: FairGeoMedia.h:45
void setAuthor(TString &s)
Definition: FairGeoMedia.h:42
const char * getInputFile()
Definition: FairGeoMedia.h:34