44 lines
626 B
C++
44 lines
626 B
C++
#pragma once
|
|
|
|
#include <ehs/Str.h>
|
|
#include <ehs/Types.h>
|
|
|
|
enum class SymbolType
|
|
{
|
|
UNKNOWN,
|
|
VARIABLE,
|
|
FUNCTION,
|
|
CLASS,
|
|
MEMBER,
|
|
METHOD
|
|
};
|
|
|
|
class Symbol
|
|
{
|
|
private:
|
|
SymbolType type;
|
|
ehs::UInt_64 id;
|
|
ehs::Str_8 name;
|
|
ehs::UInt_64 address;
|
|
|
|
public:
|
|
Symbol();
|
|
|
|
Symbol(const SymbolType &type, ehs::Str_8 name, const ehs::UInt_64 &address);
|
|
|
|
Symbol(Symbol &&other) noexcept;
|
|
|
|
Symbol(const Symbol &other);
|
|
|
|
Symbol &operator=(Symbol &&other) noexcept;
|
|
|
|
Symbol &operator=(const Symbol &other);
|
|
|
|
SymbolType GetType() const;
|
|
|
|
ehs::Str_8 GetName() const;
|
|
|
|
ehs::UInt_64 GetId() const;
|
|
|
|
ehs::UInt_64 GetAddress() const;
|
|
}; |