CMS 3D CMS Logo

EntryMgr.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: EntryMgr.h
3 //CAT: Model
4 //
5 // Manages the parameters of the input file (variables that are given a value to be reused in the file)
6 //
7 // History: v1.0 11/11/01 Pedro Arce
8 #ifndef EntryMgr_h
9 #define EntryMgr_h
10 
12 #include <vector>
13 class EntryData;
14 
15 class EntryMgr {
16 private:
17  EntryMgr() {}
18 
19 public:
20  static EntryMgr* getInstance();
21  ALIbool readEntryFromReportOut(const std::vector<ALIstring>& wl);
22 
27 
28  EntryData* findEntryByShortName(const ALIstring& optoName, const ALIstring& entryName = "");
29  EntryData* findEntryByLongName(const ALIstring& optoName, const ALIstring& entryName = "");
30  EntryData* findEntryByName(const ALIstring& optoName, const ALIstring& entryName = "") {
31  return findEntryByLongName(optoName, entryName);
32  }
33 
35 
36  ALIint numberOfEntries() { return theEntryData.size(); }
37  std::vector<EntryData*> getEntryData() const { return theEntryData; }
38 
39  void clearEntryData() { theEntryData.clear(); }
40 
41 private:
42  EntryData* findEntry(const std::vector<ALIstring>& wl);
43 
44 private:
46 
48  std::vector<EntryData*> theEntryData;
49 };
50 
51 #endif
void clearEntryData()
Definition: EntryMgr.h:39
long double ALIdouble
Definition: CocoaGlobals.h:11
static EntryMgr * theInstance
Definition: EntryMgr.h:45
EntryData * findEntry(const std::vector< ALIstring > &wl)
Definition: EntryMgr.cc:115
ALIdouble getDimOutAngleSig() const
Definition: EntryMgr.h:26
ALIdouble dimOutAngleVal
Definition: EntryMgr.h:47
ALIdouble dimOutLengthSig
Definition: EntryMgr.h:47
int ALIint
Definition: CocoaGlobals.h:15
EntryData * findEntryByShortName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.cc:58
ALIdouble getDimOutAngleVal() const
Definition: EntryMgr.h:25
bool ALIbool
Definition: CocoaGlobals.h:19
ALIstring extractShortName(const ALIstring &name)
Definition: EntryMgr.cc:125
ALIdouble dimOutLengthVal
Definition: EntryMgr.h:47
std::vector< EntryData * > getEntryData() const
Definition: EntryMgr.h:37
ALIdouble getDimOutLengthVal() const
Definition: EntryMgr.h:23
EntryMgr()
Definition: EntryMgr.h:17
ALIint numberOfEntries()
Definition: EntryMgr.h:36
static EntryMgr * getInstance()
Definition: EntryMgr.cc:16
ALIdouble dimOutAngleSig
Definition: EntryMgr.h:47
std::string ALIstring
Definition: CocoaGlobals.h:9
std::vector< EntryData * > theEntryData
Definition: EntryMgr.h:48
ALIbool readEntryFromReportOut(const std::vector< ALIstring > &wl)
Definition: EntryMgr.cc:29
EntryData * findEntryByName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.h:30
EntryData * findEntryByLongName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.cc:82
ALIdouble getDimOutLengthSig() const
Definition: EntryMgr.h:24