1 #ifndef INCLUDE__Comment_hxx
2 #define INCLUDE__Comment_hxx
7 class InformationManager;
9 class QXmlStreamWriter;
10 class QXmlStreamReader;
14 bool isLocal() const {return location == NULL;}
16 void setText(const std::string& text);
17 std::string getText() const {return text;}
18 uint64_t getAddress();
19 Function* getLocation();
21 void serialize(QXmlStreamWriter& stream);
22 static Comment* deserialize(QXmlStreamReader& stream, InformationManager* manager, Function* function = NULL);
25 Comment(uint64_t address, InformationManager* manager);
26 Comment(uint64_t address, Function* location, InformationManager* manager);
30 InformationManager* manager;
33 friend class InformationManager;
36 #endif /* INCLUDE__Comment_hxx */