Go to the documentation of this file.
16#ifndef LIEF_ELF_NOTE_DETAILS_PROPERTIES_GENERIC_H
17#define LIEF_ELF_NOTE_DETAILS_PROPERTIES_GENERIC_H
28 uint32_t
type()
const {
35 static bool classof(
const NoteGnuProperty::Property* prop) {
39 static std::unique_ptr<Generic>
create(uint32_t raw_type) {
40 return std::unique_ptr<Generic>(
new Generic(raw_type));
46 Generic(uint32_t raw_type) :
47 NoteGnuProperty::Property(NoteGnuProperty::Property::
TYPE::
GENERIC),
50 uint32_t raw_type_ = 0;
This class represents a property which doesn't have a concrete LIEF implementation.
Definition Generic.hpp:26
static bool classof(const NoteGnuProperty::Property *prop)
Definition Generic.hpp:35
~Generic() override=default
uint32_t type() const
The original raw type as an integer. This value might depends on the architecture and/or the file typ...
Definition Generic.hpp:31
static std::unique_ptr< Generic > create(uint32_t raw_type)
Definition Generic.hpp:39
This class wraps the different properties that can be used in a NT_GNU_PROPERTY_TYPE_0 note.
Definition NoteGnuProperty.hpp:35
TYPE
LIEF's mirror types of the original GNU_PROPERTY_ values.
Definition NoteGnuProperty.hpp:39
@ GENERIC
Property that dont' have special implementation.
Definition NoteGnuProperty.hpp:41
TYPE type() const
Return the LIEF's mirror type of the note.
Definition NoteGnuProperty.hpp:52
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:36