FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairParGenericSet.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 FAIRPARGENERICSET_H
9 #define FAIRPARGENERICSET_H
10 
11 #include "FairParSet.h" // for FairParSet
12 
13 #include <Rtypes.h> // for Bool_t, etc
14 
15 class FairParIo;
16 class FairParamList;
17 
19 {
20  public:
21  FairParGenericSet(const char* name, const char* title, const char* context, Bool_t ownership = kFALSE)
22  : FairParSet(name, title, context, ownership)
23  {}
24  virtual ~FairParGenericSet() {}
25  virtual void putParams(FairParamList*) = 0;
26  virtual Bool_t getParams(FairParamList*) = 0;
27  virtual void printParams();
28 
29  Bool_t init(FairParIo* inp);
30  Int_t write(FairParIo* output);
31 
32  // DB add on
33  void fill(UInt_t){};
34  void store(UInt_t){};
35 
36  protected:
38  : FairParSet()
39  {}
40  ClassDef(FairParGenericSet, 1); // Base class for generic-style parameter containers
41 };
42 
43 #endif /* !FAIRPARGENERICSET_H */
virtual Int_t write()
Definition: FairParSet.cxx:80
ClassDef(FairParGenericSet, 1)
virtual Bool_t getParams(FairParamList *)=0
virtual Bool_t init()
Definition: FairParSet.cxx:46
FairParGenericSet(const char *name, const char *title, const char *context, Bool_t ownership=kFALSE)
virtual void printParams()
virtual void putParams(FairParamList *)=0
virtual ~FairParGenericSet()