Provides access to user-defined comments in the IDA database.
More...
#include <comment.hpp>
|
| Comments (const Database &database) |
| Constructs a comment manager for the given database. More...
|
|
std::pair< bool, std::string > | get (const ea_t ea) const |
| Retrieves the comment at the specified address. More...
|
|
bool | set (const ea_t ea, const std::string &comment) const |
| Sets a comment at the specified address. More...
|
|
Iterator | get_all (bool include_repeatable) const |
| Creates an iterator for all comments in the database. More...
|
|
Provides access to user-defined comments in the IDA database.
◆ Comments()
Comments::Comments |
( |
const Database & |
database | ) |
|
|
inline |
Constructs a comment manager for the given database.
- Parameters
-
database | Reference to the active IDA database. |
◆ get()
std::pair<bool, std::string> Comments::get |
( |
const ea_t |
ea | ) |
const |
Retrieves the comment at the specified address.
- Parameters
-
- Returns
- A pair (success, comment string). If no comment exists, success is false.
◆ get_all()
Iterator Comments::get_all |
( |
bool |
include_repeatable | ) |
const |
|
inline |
Creates an iterator for all comments in the database.
- Parameters
-
include_repeatable | Whether to include repeatable comments during iteration. |
- Returns
- A CommentsIterator instance.
◆ set()
bool Comments::set |
( |
const ea_t |
ea, |
|
|
const std::string & |
comment |
|
) |
| const |
Sets a comment at the specified address.
- Parameters
-
ea | The effective address. |
comment | The comment text to assign. |
- Returns
- True if the comment was successfully set, false otherwise.
The documentation for this class was generated from the following file:
- /home/runner/work/ida-api-domain/ida-api-domain/include/entities/comment.hpp