mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-04-26 12:24:31 +00:00
- Applied all recommended XCode (8) settings. - Removed boost and replaced that code by standard functions. - Implemented name mangling via abi::__cxa_demangle instead of running an external process to use c++filt. - Enabled C++11. Min deployment target is now OSX 10.7. - Some code clean up (e.g. formatting, std namespace).
34 lines
641 B
C++
34 lines
641 B
C++
#ifndef SYMBOLTABLEENTRY_H
|
|
#define SYMBOLTABLEENTRY_H
|
|
|
|
#include "macho_global.h"
|
|
#include <mach-o/nlist.h>
|
|
class MachOFile;
|
|
|
|
class EXPORT SymbolTableEntry
|
|
{
|
|
public:
|
|
SymbolTableEntry(MachOFile& file, char* stringTable);
|
|
virtual ~SymbolTableEntry();
|
|
std::string 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;
|
|
};
|
|
|
|
#endif // SYMBOLTABLEENTRY_H
|