mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-05-02 06:59:32 +00:00
37 lines
764 B
C++
37 lines
764 B
C++
#ifndef SYMBOLTABLEENTRY_H
|
|
#define SYMBOLTABLEENTRY_H
|
|
|
|
#include "/usr/include/mach-o/nlist.h"
|
|
#include "machofile.h"
|
|
#include <QtCore/QDebug>
|
|
|
|
class SymbolTableEntry
|
|
{
|
|
public:
|
|
SymbolTableEntry(MachOFile& file, char* stringTable);
|
|
virtual ~SymbolTableEntry();
|
|
QString getName(bool shouldDemangle) const;
|
|
|
|
enum Type {
|
|
TypeExported = 0,
|
|
TypeImported,
|
|
TypeLocal,
|
|
TypeDebug,
|
|
TypePrivateExtern,
|
|
NumTypes
|
|
};
|
|
|
|
Type getType() const;
|
|
virtual unsigned int getInternalType() const = 0;
|
|
virtual const char* getInternalName() const = 0;
|
|
|
|
protected:
|
|
MachOFile& file;
|
|
char* stringTable;
|
|
};
|
|
|
|
|
|
QDebug &operator<<(QDebug &dbg, const SymbolTableEntry &symbolTable);
|
|
|
|
#endif // SYMBOLTABLEENTRY_H
|