retdec
strings.h
Go to the documentation of this file.
1 
7 #ifndef FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_STRINGS_H
8 #define FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_STRINGS_H
9 
10 #include <vector>
11 
13 
14 namespace retdec {
15 namespace fileinfo {
16 
20 class Strings
21 {
22  private:
23  const std::vector<retdec::fileformat::String>* strings = nullptr;
24  public:
27  std::size_t getNumberOfStrings() const;
28  std::string getStringFileOffsetStr(std::size_t index, std::ios_base &(* format)(std::ios_base &)) const;
29  std::string getStringTypeStr(std::size_t index) const;
30  std::string getStringSectionName(std::size_t index) const;
31  std::string getStringContent(std::size_t index) const;
33 
36  void setStrings(const std::vector<retdec::fileformat::String> *detectedStrings);
38 
41  bool hasRecords() const;
43 };
44 
45 } // namespace fileinfo
46 } // namespace retdec
47 
48 #endif
Definition: strings.h:21
std::size_t getNumberOfStrings() const
Definition: strings.cpp:15
std::string getStringFileOffsetStr(std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
Definition: strings.cpp:20
const std::vector< retdec::fileformat::String > * strings
Definition: strings.h:23
std::string getStringSectionName(std::size_t index) const
Definition: strings.cpp:36
std::string getStringTypeStr(std::size_t index) const
Definition: strings.cpp:28
void setStrings(const std::vector< retdec::fileformat::String > *detectedStrings)
Definition: strings.cpp:52
std::string getStringContent(std::size_t index) const
Definition: strings.cpp:44
bool hasRecords() const
Definition: strings.cpp:57
Class for string in the file.
Definition: archive_wrapper.h:19