retdec
resource_table.h
Go to the documentation of this file.
1 
7 #ifndef FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_RESOURCE_TABLE_RESOURCE_TABLE_H
8 #define FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_RESOURCE_TABLE_RESOURCE_TABLE_H
9 
10 #include <vector>
11 
14 
15 namespace retdec {
16 namespace fileinfo {
17 
25 {
26  private:
28  public:
31  std::size_t getNumberOfResources() const;
32  std::size_t getNumberOfLanguages() const;
33  std::size_t getNumberOfStrings() const;
34  std::string getResourceCrc32(std::size_t index) const;
35  std::string getResourceMd5(std::size_t index) const;
36  std::string getResourceSha256(std::size_t index) const;
37  std::string getResourceIconhashCrc32() const;
38  std::string getResourceIconhashMd5() const;
39  std::string getResourceIconhashSha256() const;
40  std::string getResourceIconPerceptualAvgHash() const;
41  std::string getResourceIconPerceptualDCTpHash() const;
42  const retdec::fileformat::Resource* getResource(std::size_t position) const;
43  std::string getResourceName(std::size_t index) const;
44  std::string getResourceType(std::size_t index) const;
45  std::string getResourceLanguage(std::size_t index) const;
46  std::string getLanguageLcid(std::size_t index) const;
47  std::string getLanguageCodePage(std::size_t index) const;
48  std::string getStringName(std::size_t index) const;
49  std::string getStringValue(std::size_t index) const;
50  std::string getResourceNameIdStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
51  std::string getResourceTypeIdStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
52  std::string getResourceLanguageIdStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
53  std::string getResourceSublanguageIdStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
54  std::string getResourceOffsetStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
55  std::string getResourceSizeStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
57 
60  void setTable(const retdec::fileformat::ResourceTable *resourceTable);
62 
65  bool hasRecords() const;
67 };
68 
69 } // namespace fileinfo
70 } // namespace retdec
71 
72 #endif
Definition: resource_table.h:24
Definition: resource.h:24
Definition: resource_table.h:25
std::string getResourceTypeIdStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: resource_table.cpp:221
std::string getStringName(std::size_t index) const
Definition: resource_table.cpp:179
std::string getResourceIconPerceptualDCTpHash() const
std::string getResourceOffsetStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: resource_table.cpp:278
const retdec::fileformat::ResourceTable * table
Definition: resource_table.h:27
std::string getResourceSizeStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: resource_table.cpp:290
std::size_t getNumberOfResources() const
Definition: resource_table.cpp:17
std::string getResourceType(std::size_t index) const
Definition: resource_table.cpp:135
std::string getResourceName(std::size_t index) const
Definition: resource_table.cpp:124
void setTable(const retdec::fileformat::ResourceTable *resourceTable)
Definition: resource_table.cpp:300
std::string getResourceIconhashSha256() const
Definition: resource_table.cpp:95
std::string getResourceCrc32(std::size_t index) const
Definition: resource_table.cpp:45
std::size_t getNumberOfLanguages() const
Definition: resource_table.cpp:26
std::string getResourceNameIdStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: resource_table.cpp:202
std::string getResourceIconhashCrc32() const
Definition: resource_table.cpp:77
bool hasRecords() const
Definition: resource_table.cpp:309
std::string getLanguageLcid(std::size_t index) const
Definition: resource_table.cpp:157
std::size_t getNumberOfStrings() const
Definition: resource_table.cpp:35
const retdec::fileformat::Resource * getResource(std::size_t position) const
Definition: resource_table.cpp:114
std::string getResourceLanguage(std::size_t index) const
Definition: resource_table.cpp:146
std::string getResourceMd5(std::size_t index) const
Definition: resource_table.cpp:56
std::string getResourceSha256(std::size_t index) const
Definition: resource_table.cpp:67
std::string getResourceIconPerceptualAvgHash() const
Definition: resource_table.cpp:104
std::string getResourceSublanguageIdStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: resource_table.cpp:259
std::string getResourceIconhashMd5() const
Definition: resource_table.cpp:86
std::string getLanguageCodePage(std::size_t index) const
Definition: resource_table.cpp:168
std::string getStringValue(std::size_t index) const
Definition: resource_table.cpp:190
std::string getResourceLanguageIdStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: resource_table.cpp:240
Class for resource table.
Definition: archive_wrapper.h:19
Class for one resource.