#include "Comment.hxx"
#include "Function.hxx"
+#include "InformationManager.hxx"
+#include "events/ChangeCommentEvent.hxx"
Comment::Comment(uint64_t address, InformationManager* manager)
: address(address)
, manager(manager) {}
void Comment::setText(const std::string& text) {
+ ChangeCommentEvent event(address, location, this);
this->text = text;
+ manager->dispatch(&event);
}
uint64_t Comment::getAddress() {
return address;
}
+
+Function* Comment::getLocation() {
+ return location;
+}