00001
00002
00003
00004
00005
00006 #ifndef SYSTEM_MAP_C
00007 #define SYSTEM_MAP_C
00008
00009 #include <map>
00010 #include <string>
00011 #include <fstream>
00012
00016 class SystemMap
00017 {
00018 private:
00019 typedef map<string, unsigned int> blamap;
00020 typedef blamap::value_type bla_val;
00021
00022 blamap add_map;
00023
00024 public:
00028 SystemMap (string file);
00029
00033 SystemMap ();
00034
00038 ~SystemMap ();
00039
00044 bool contains (string);
00045
00052 void add (string name, unsigned int address);
00053
00059 unsigned int operator[] (string name);
00060 };
00061 #endif