00001 // 00002 // UCSD p-System cross compiler 00003 // Copyright (C) 2006 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 2 of the License, or (at 00008 // you option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, 00018 // USA 00019 // 00020 00021 #ifndef LIB_DISLABEL_H 00022 #define LIB_DISLABEL_H 00023 00024 #include <lib/symtab/template.h> 00025 00034 class dislabel 00035 { 00036 public: 00040 virtual ~dislabel(); 00041 00045 dislabel(const rcstring &prefix); 00046 00047 void add(unsigned addr); 00048 00049 rcstring get_name(unsigned addr) const; 00050 00051 private: 00052 rcstring prefix; 00053 symtab<rcstring> name_from_address; 00054 00058 dislabel(); 00059 00063 dislabel(const dislabel &); 00064 00068 dislabel &operator=(const dislabel &); 00069 }; 00070 00071 #endif // LIB_DISLABEL_H
1.5.1