retdec
intel_hex_image.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LOADER_RETDEC_LOADER_INTEL_HEX_INTEL_HEX_IMAGE_H
8 #define RETDEC_LOADER_RETDEC_LOADER_INTEL_HEX_INTEL_HEX_IMAGE_H
9 
10 #include <string>
11 
13 
14 namespace retdec {
15 namespace loader {
16 
17 class IntelHexImage : public Image
18 {
19 public:
20  IntelHexImage(const std::shared_ptr<retdec::fileformat::FileFormat>& fileFormat);
21 
22  virtual bool load() override;
23 
24 protected:
25  Segment* addSegment(const retdec::fileformat::Section* section, std::uint64_t address, std::uint64_t memSize);
26 };
27 
28 } // namespace loader
29 } // namespace retdec
30 
31 #endif
Definition: section.h:19
Definition: image.h:22
Definition: intel_hex_image.h:18
virtual bool load() override
Definition: intel_hex_image.cpp:28
IntelHexImage(const std::shared_ptr< retdec::fileformat::FileFormat > &fileFormat)
Definition: intel_hex_image.cpp:18
Segment * addSegment(const retdec::fileformat::Section *section, std::uint64_t address, std::uint64_t memSize)
Definition: intel_hex_image.cpp:49
Definition: segment.h:25
Declaration of loadable image class.
Generic loader.
Definition: archive_wrapper.h:19