00001 00002 00003 00004 //----------------------------------------------------------------------------- 00005 // Initial version: 31/08/2005 00006 // CVS: $Revision: 6367 $, $Date: 2009-11-17 17:09:25 +0000 (Tue, 17 Nov 2009) $, $Author: EckhardSutorius $ 00007 //----------------------------------------------------------------------------- 00008 #ifndef PROGRAMMETABLE_H 00009 #define PROGRAMMETABLE_H 00010 00011 #include <map> 00012 #include <string> 00013 //----------------------------------------------------------------------------- 00017 class ProgrammeTable 00018 { 00019 public: 00021 ProgrammeTable(); 00022 00027 //int getProgrammeId(const std::string& aProgName); 00028 std::string getProgrammeId(const std::string& aProgName); 00029 private: 00030 // Abbreviations for storage container type 00031 typedef std::map<std::string, std::string> TTMap; 00032 //typedef std::map<std::string, int> TTMap; 00033 typedef TTMap::const_iterator TTItr; 00034 00036 static TTMap msTransTable; 00038 static unsigned msNumInstances; 00039 00045 TTItr findSubProgramme(const std::string& aProgGroup, 00046 const std::string& aProgName); 00047 00049 void loadData(); 00050 }; 00051 //----------------------------------------------------------------------------- 00052 #endif