1 #ifndef IDA_DOMAIN_SEGMENT_HPP
2 #define IDA_DOMAIN_SEGMENT_HPP
32 ea_t m_current_ea = 0;
63 segment_t *
get_at(
const ea_t ea)
const;
68 std::string
get_name(
const segment_t *segment)
const;
74 bool set_name(segment_t *segment,
const std::string &name)
const;
Provides access and control over the loaded IDA database.
Definition: database.hpp:25
Iterator for segments in the IDA database.
Definition: segment.hpp:27
segment_t * get_next()
Retrieves the next segment in the database.
Iterator(const Database &database)
Constructs a segments iterator for the given database.
Definition: segment.hpp:40
segment_t * get_first()
Retrieves the first segment in the database.
Provides access to segment-related operations in the IDA database.
Definition: segment.hpp:17
Segments(const Database &database)
Constructs a segments handler for the given database.
Definition: segment.hpp:56
segment_t * get_at(const ea_t ea) const
Retrieves the segment that contains the given address.
bool set_name(segment_t *segment, const std::string &name) const
Renames a segment.
std::string get_name(const segment_t *segment) const
Retrieves the name of the given segment.
Iterator get_all() const
Retrieves an iterator over all segments in the database.
Definition: segment.hpp:78
#define IDA_API
Definition: common_defines.hpp:11
#define ABI_VERSION_NS
Definition: version.hpp:17