X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FFunction.hxx;h=75b38c2cd34877fe0349b80eae21b5dc57976fbb;hp=b57dca2706edd31df2b31798c18d5ebedf301017;hb=9f53c415cf1554e2d9cc040d3d646ec22fe281f6;hpb=440c4598343d9e46d8963f7753c122b121826334 diff --git a/src/core/Function.hxx b/src/core/Function.hxx index b57dca2..75b38c2 100644 --- a/src/core/Function.hxx +++ b/src/core/Function.hxx @@ -5,11 +5,10 @@ #include "BasicBlock.hxx" class InformationManager; +class QXmlStreamWriter; class Function { public: - Function(const std::string& name, uint64_t start_address, InformationManager* manager); - uint64_t getStartAddress() const { return start_address; } @@ -29,11 +28,19 @@ public: const std::map& blocks() { return _blocks; } + + void serialize(QXmlStreamWriter& stream); + static Function* deserialize(QXmlStreamReader& stream, InformationManager* manager); + private: + Function(uint64_t start_address, InformationManager* manager); + std::string name; uint64_t start_address; InformationManager * manager; std::map _blocks; + + friend class InformationManager; }; #endif