1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef SYMBOL_INFO_H 6 #define SYMBOL_INFO_H 7 8 #include <String.h> 9 10 #include "Types.h" 11 12 13 class SymbolInfo { 14 public: 15 SymbolInfo(); 16 SymbolInfo(target_addr_t address, 17 target_size_t size, uint32 type, 18 const BString& name); 19 ~SymbolInfo(); 20 21 void SetTo(target_addr_t address, target_size_t size, 22 uint32 type, const BString& name); 23 24 target_addr_t Address() const { return fAddress; } 25 target_size_t Size() const { return fSize; } 26 uint32 Type() const { return fType; } 27 const char* Name() const { return fName.String(); } 28 29 private: 30 target_addr_t fAddress; 31 target_size_t fSize; 32 uint32 fType; 33 BString fName; 34 }; 35 36 37 #endif // SYMBOL_INFO_H 38