user_lvar_visitor_t Struct Reference

Saved user settings iterator for local variables. More...

List of all members.

Public Member Functions

virtual int handle_retrieved_info (const lvar_saved_info_t &lv)=0
 Visit user defined local variable information.
virtual int handle_retrieved_mapping (lvar_mapping_t &lm)=0
 Visit user defined local variable information.
virtual int get_info_qty_for_saving (void)=0
 Get number of lvars with user defined settings.
virtual bool get_info_for_saving (lvar_saved_info_t *lv)=0
 Get next user-defined lvar data This function is called while we save information to the idb.
virtual const lvar_mapping_tget_info_mapping_for_saving (void)=0
 Get lvar mapping info This function is called while we save information to the idb.

Public Attributes

int stkoff_delta
 Delta to add to IDA stack offset to calculate Hex-Rays stack offsets.
int flags
 Various flags. Possible values are from user_lvar_visitor_t property bits.

Detailed Description

Saved user settings iterator for local variables.

Examples:

hexrays_sample4.cpp.

Definition at line 733 of file hexrays.hpp.


Member Function Documentation

virtual bool user_lvar_visitor_t::get_info_for_saving ( lvar_saved_info_t lv  )  [pure virtual]

Get next user-defined lvar data This function is called while we save information to the idb.

Parameters:
lv information to save about variable
Returns:
true is success
Examples:
hexrays_sample4.cpp.
virtual const lvar_mapping_t* user_lvar_visitor_t::get_info_mapping_for_saving ( void   )  [pure virtual]

Get lvar mapping info This function is called while we save information to the idb.

Returns:
lvar mapping or NULL
Examples:
hexrays_sample4.cpp.
virtual int user_lvar_visitor_t::get_info_qty_for_saving ( void   )  [pure virtual]

Get number of lvars with user defined settings.

This function is called while we save information to the idb. It resets the enumeration.

Returns:
number of user-defined lvars
Examples:
hexrays_sample4.cpp.
virtual int user_lvar_visitor_t::handle_retrieved_info ( const lvar_saved_info_t lv  )  [pure virtual]

Visit user defined local variable information.

This function is called while we retrieve information from the idb.

Parameters:
lv saved information about variable
Examples:
hexrays_sample4.cpp.
virtual int user_lvar_visitor_t::handle_retrieved_mapping ( lvar_mapping_t lm  )  [pure virtual]

Visit user defined local variable information.

This function is called while we retrieve information from the idb.

Parameters:
lm saved information about variable mappings. may be modified.
Examples:
hexrays_sample4.cpp.

Member Data Documentation

Delta to add to IDA stack offset to calculate Hex-Rays stack offsets.

Should be set by the caller before calling save_user_lvar_settings();

Definition at line 737 of file hexrays.hpp.