LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ELF_CORE_PRPSINFO_H
17#define LIEF_ELF_CORE_PRPSINFO_H
50 return filename.c_str();
59 uint32_t type, description_t description) :
60 Note(std::move(name), TYPE::CORE_PRPSINFO, type, std::move(description),
""),
61 arch_(arch), class_(cls)
64 std::unique_ptr<Note>
clone()
const override {
65 return std::unique_ptr<Note>(
new CorePrPsInfo(*
this));
67 result<info_t>
info()
const;
70 void info(
const info_t& info);
72 void dump(std::ostream& os)
const override;
74 void accept(Visitor& visitor)
const override;
77 return note->
type() == Note::TYPE::CORE_PRPSINFO;
83 std::ostream&
operator<<(std::ostream& os,
const CorePrPsInfo& note) {
88 ARCH arch_ = ARCH::NONE;
89 Header::CLASS class_ = Header::CLASS::NONE;
Class representing the NT_PRPSINFO core note. This kind of note represents general information about ...
Definition CorePrPsInfo.hpp:31
static bool classof(const Note *note)
Definition CorePrPsInfo.hpp:76
void info(const info_t &info)
~CorePrPsInfo() override=default
void dump(std::ostream &os) const override
friend std::ostream & operator<<(std::ostream &os, const CorePrPsInfo ¬e)
Definition CorePrPsInfo.hpp:83
CorePrPsInfo(ARCH arch, Header::CLASS cls, std::string name, uint32_t type, description_t description)
Definition CorePrPsInfo.hpp:58
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CorePrPsInfo.hpp:64
void accept(Visitor &visitor) const override
result< info_t > info() const
Return a elf_prpsinfo-like structure or an error if it can't be parsed.
Class which represents an ELF note. This class can be instantiated using the static Note::create func...
Definition Note.hpp:39
TYPE type() const
Return the type of the note. This type does not match the NT_ type value. For accessing the original ...
Definition Note.hpp:195
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
ARCH
Definition ELF/enums.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:36
std::string filename_stripped() const
Initial part of the arguments.
Definition CorePrPsInfo.hpp:49
std::string args_stripped() const
Return the args without the ending \x00
Definition CorePrPsInfo.hpp:54
#define LIEF_API
Definition visibility.h:41