CbmRoot
Loading...
Searching...
No Matches
CbmModuleList.h
Go to the documentation of this file.
1/* Copyright (C) 2013-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer], Florian Uhlig */
4
11#ifndef CBMMODULELIST_H
12#define CBMMODULELIST_H 1
13
14
15#include "CbmDefs.h" // for ECbmModuleId
16
17#include <TString.h> // for TString
18
19#include <cstdint>
20#include <map> // for map
21
32
33public:
36
37
39 virtual ~CbmModuleList() {};
40
41
46 static TString GetModuleName(ECbmModuleId moduleId);
47
48
53 static TString GetModuleNameCaps(ECbmModuleId moduleId);
54
55
60 static ECbmModuleId GetModuleId(const char* moduleName);
61
62
63private:
65 static std::map<ECbmModuleId, TString> fModules;
66
68 static std::map<ECbmModuleId, TString> DefineModules();
69};
70
71#endif /* CBMMODULELIST_H */
ECbmModuleId
Definition CbmDefs.h:39
Manages module Ids and names.
static TString GetModuleName(ECbmModuleId moduleId)
static ECbmModuleId GetModuleId(const char *moduleName)
static std::map< ECbmModuleId, TString > fModules
static TString GetModuleNameCaps(ECbmModuleId moduleId)
virtual ~CbmModuleList()
static std::map< ECbmModuleId, TString > DefineModules()