]> git.siccegge.de Git - frida/frida.git/blob - src/core/Comment.hxx
Bump Cmake compat version
[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 Function* getLocation();
16 private:
17 Comment(uint64_t address, InformationManager* manager);
18 Comment(uint64_t address, Function* location, InformationManager* manager);
19
20 uint64_t address;
21 Function* location;
22 InformationManager* manager;
23 std::string text;
24
25 friend class InformationManager;
26 };
27
28 #endif /* INCLUDE__Comment_hxx */