]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/EMCAL/AliEMCALConfiguration.h
Fixing coverity defects:
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEMCALConfiguration.h
CommitLineData
1cee71ae 1/*
2 * AliEMCALConfiguration.h
3 *
4 * Created on: 06.11.2014
5 * Author: markusfasel
6 */
7
c4109efb 8#ifndef _ALIEMCALCONFIGURATION_H_
9#define _ALIEMCALCONFIGURATION_H_
1cee71ae 10
ec5c3ac7 11#include <ostream>
29c5adc8 12#include <string>
1cee71ae 13#include <TNamed.h>
14
15class TList;
16
c4109efb 17class AliJSONValue;
5a56104e 18
1cee71ae 19class AliEMCALConfiguration : public TNamed {
20public:
21 AliEMCALConfiguration(const char *name);
22 virtual ~AliEMCALConfiguration();
23
c4109efb 24 void AddParam(const char *name, AliJSONValue *value);
1cee71ae 25 void AddConfiguration(AliEMCALConfiguration * conf);
26 void Build(const char * jsonstring);
27 void Build(TList *entries);
29c5adc8 28 std::string CreateJSONString() const;
1cee71ae 29
5a56104e 30 Bool_t HasKey(const char *key) const { return GetValue(key) != NULL; }
c4109efb 31 AliJSONValue *GetValue(const char *key) const ;
68d39387 32 void Print(Option_t *) const;
1cee71ae 33
34protected:
35 TList *fParams;
36
97bf0336 37private:
38 AliEMCALConfiguration(const AliEMCALConfiguration &ref);
39 AliEMCALConfiguration &operator=(const AliEMCALConfiguration &ref);
40
1cee71ae 41 ClassDef(AliEMCALConfiguration, 1);
42};
43
ec5c3ac7 44std::ostream &operator<<(std::ostream &, const AliEMCALConfiguration &);
45
c4109efb 46#endif /* _ALIEMCALCONFIGURATION_H_ */