--- /dev/null
+#include "Function.hxx"
+#include "core/events/RenameFunctionEvent.hxx"
+#include "InformationManager.hxx"
+
+#include <iostream>
+
+Function::Function(const std::string& name, uint64_t start_address,
+ InformationManager* manager)
+ : start_address(start_address)
+ , manager(manager) {
+ setName(name);
+}
+
+
+void Function::setName(const std::string& new_name) {
+ name = new_name;
+ RenameFunctionEvent event(new_name, start_address);
+ manager->dispatch(&event);
+}
+