/* * Author: Pawel Jablonski * E-mail: pj@xirx.net * WWW: xirx.net * GIT: git.xirx.net * * License: You can use this code however you like * but leave information about the original author. * Code is free for non-commercial and commercial use. */ #ifndef DATA_H #define DATA_H #include #include #include #include "codesection.h" #include "ramitem.h" #include "flashitem.h" //! This class contains all parsed sections of code, RAM and Flash for one source file class Data { public: static const int MEMORY_SIZE = 65536; //!< Maximum size of memory Data(const QString &fileName); const QString &getFileName() const; bool addCodeSection(const QSharedPointer &codeSection); bool addRamItem(const QSharedPointer &ramItem); bool addFlashItem(const QSharedPointer &flashItem); QList> &getCodeSectionList(); QList> &getRamItemList(); QList> &getFlashItemList(); private: QString fileName; //!< Name of the source file QList> codeSectionList; //!< List of code sections QList> ramItemList; //!< List of RAM items QList> flashItemList; //!< List of Flash items }; #endif