X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FComment.hxx;h=ca3e89cb6ab017ff327738f18ebc4e800e9f1392;hp=e151f5a09b0f796de028883d6b3231610bfafbdb;hb=9fd091260777a95432902173a35e15a475f6f9f9;hpb=0daf9a157f3d41690cf4a0287db1adecc4ad0b71 diff --git a/src/core/Comment.hxx b/src/core/Comment.hxx index e151f5a..ca3e89c 100644 --- a/src/core/Comment.hxx +++ b/src/core/Comment.hxx @@ -4,18 +4,26 @@ #include class Function; +class InformationManager; class Comment { public: bool isLocal() const {return location == NULL;} + void setText(const std::string& text); + std::string getText() const {return text;} + uint64_t getAddress(); + Function* getLocation(); private: - Comment(uint64_t address); - Comment(uint64_t address, Function* location); + Comment(uint64_t address, InformationManager* manager); + Comment(uint64_t address, Function* location, InformationManager* manager); uint64_t address; Function* location; + InformationManager* manager; std::string text; + + friend class InformationManager; }; #endif /* INCLUDE__Comment_hxx */