From 5afba5f952385321480f53091363a5fba2e16f62 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 18 Mar 2015 14:59:14 +0100 Subject: [PATCH] Add new files missing from previous few commits --- src/Config.hxx.in | 6 ++++++ src/core/Comment.cxx | 20 ++++++++++++++++++++ src/core/events/NewFunctionEvent.hxx | 17 +++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 src/Config.hxx.in create mode 100644 src/core/Comment.cxx create mode 100644 src/core/events/NewFunctionEvent.hxx diff --git a/src/Config.hxx.in b/src/Config.hxx.in new file mode 100644 index 0000000..6ad3f49 --- /dev/null +++ b/src/Config.hxx.in @@ -0,0 +1,6 @@ +#ifndef INCLUDE__Config_hxx_ +#define INCLUDE__Config_hxx_ + +#cmakedefine CMAKE_INSTALL_FULL_LIBDIR "@CMAKE_INSTALL_FULL_LIBDIR@" + +#endif /* INCLUDE__Config_hxx_ */ diff --git a/src/core/Comment.cxx b/src/core/Comment.cxx new file mode 100644 index 0000000..0cb804c --- /dev/null +++ b/src/core/Comment.cxx @@ -0,0 +1,20 @@ +#include "Comment.hxx" +#include "Function.hxx" + +Comment::Comment(uint64_t address, InformationManager* manager) + : address(address) + , location(NULL) + , manager(manager) {} + +Comment::Comment(uint64_t address, Function* location, InformationManager* manager) + : address(address) + , location(location) + , manager(manager) {} + +void Comment::setText(const std::string& text) { + this->text = text; +} + +uint64_t Comment::getAddress() { + return address; +} diff --git a/src/core/events/NewFunctionEvent.hxx b/src/core/events/NewFunctionEvent.hxx new file mode 100644 index 0000000..f6d477c --- /dev/null +++ b/src/core/events/NewFunctionEvent.hxx @@ -0,0 +1,17 @@ +#ifndef INCLUDE__NewFunctionEvent_hxx_ +#define INCLUDE__NewFunctionEvent_hxx_ + +#include + +class Function; + +class NewFunctionEvent { +public: + NewFunctionEvent(uint64_t address, Function* function) + : address(address), function(function) {} + + uint64_t address; + Function* function; +}; + +#endif /* INCLUDE__NewFunctionEvent_hxx_ */ -- 2.39.2