CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17  private:
18  EntryMgr(){};
19 
20  public:
21  static EntryMgr* getInstance();
22  ALIbool readEntryFromReportOut( const std::vector<ALIstring>& wl );
23 
25  return dimOutLengthVal; }
27  return dimOutLengthSig; }
29  return dimOutAngleVal; }
31  return dimOutAngleSig; }
32 
33  EntryData* findEntryByShortName( const ALIstring& optoName, const ALIstring& entryName = "" );
34  EntryData* findEntryByLongName( const ALIstring& optoName, const ALIstring& entryName = "" );
35  EntryData* findEntryByName( const ALIstring& optoName, const ALIstring& entryName = "" ){
36  return findEntryByLongName( optoName, entryName );
37  }
38 
40 
42  return theEntryData.size();
43  }
44  std::vector<EntryData*> getEntryData() const {
45  return theEntryData; }
46 
47  void clearEntryData() { theEntryData.clear(); }
48 
49 private:
50  EntryData* findEntry( const std::vector<ALIstring>& wl );
51 
52  private:
54 
56  std::vector<EntryData*> theEntryData;
57 };
58 
59 #endif
void clearEntryData()
Definition: EntryMgr.h:47
long double ALIdouble
Definition: CocoaGlobals.h:11
static EntryMgr * theInstance
Definition: EntryMgr.h:53
EntryData * findEntry(const std::vector< ALIstring > &wl)
Definition: EntryMgr.cc:113
ALIdouble dimOutAngleVal
Definition: EntryMgr.h:55
std::vector< EntryData * > getEntryData() const
Definition: EntryMgr.h:44
ALIdouble getDimOutAngleVal() const
Definition: EntryMgr.h:28
ALIdouble dimOutLengthSig
Definition: EntryMgr.h:55
int ALIint
Definition: CocoaGlobals.h:15
EntryData * findEntryByShortName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.cc:60
ALIdouble getDimOutLengthSig() const
Definition: EntryMgr.h:26
ALIdouble getDimOutLengthVal() const
Definition: EntryMgr.h:24
bool ALIbool
Definition: CocoaGlobals.h:19
ALIstring extractShortName(const ALIstring &name)
Definition: EntryMgr.cc:126
ALIdouble dimOutLengthVal
Definition: EntryMgr.h:55
ALIdouble getDimOutAngleSig() const
Definition: EntryMgr.h:30
EntryMgr()
Definition: EntryMgr.h:18
ALIint numberOfEntries()
Definition: EntryMgr.h:41
static EntryMgr * getInstance()
Definition: EntryMgr.cc:17
ALIdouble dimOutAngleSig
Definition: EntryMgr.h:55
std::string ALIstring
Definition: CocoaGlobals.h:9
std::vector< EntryData * > theEntryData
Definition: EntryMgr.h:56
ALIbool readEntryFromReportOut(const std::vector< ALIstring > &wl)
Definition: EntryMgr.cc:33
EntryData * findEntryByName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.h:35
EntryData * findEntryByLongName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.cc:83