]> git.siccegge.de Git - frida/frida.git/blob - src/core/Comment.hxx
Restructure InformationManager
[frida/frida.git] / src / core / Comment.hxx
1 #ifndef INCLUDE__Comment_hxx
2 #define INCLUDE__Comment_hxx
3
4 #include <string>
5
6 class Function;
7 class InformationManager;
8
9 class Comment {
10 public:
11 bool isLocal() const {return location == NULL;}
12
13 void setText(const std::string& text);
14 uint64_t getAddress();
15 private:
16 Comment(uint64_t address, InformationManager* manager);
17 Comment(uint64_t address, Function* location, InformationManager* manager);
18
19 uint64_t address;
20 Function* location;
21 InformationManager* manager;
22 std::string text;
23
24 friend class InformationManager;
25 };
26
27 #endif /* INCLUDE__Comment_hxx */