Trait a2lfile::A2lObject[][src]

pub trait A2lObject<T> {
    fn get_layout(&self) -> &BlockInfo<T>;
fn get_layout_mut(&mut self) -> &mut BlockInfo<T>;
fn reset_location(&mut self);
fn merge_includes(&mut self);
fn get_line(&self) -> u32; }
Expand description

The trait A2lObject is implemented for all a2l objects as well as all objects generated by the a2ml_specification! macro. It gives access to layout and location data which is tracked for each object in an a2l file.

Required methods

get a reference to the BlockInfo that describes the layout of the a2l object

get a mutable reference to the BlockInfo that describes the layout of the a2l object

reset the location information on the a2l object. It will be treated like a new object when writing a file

reset the reference to an include file on this objct and its children. This causes the object to be written into the output file instead of referenced through /include “filename”

get the source line number from which the current a2l object was loaded. Returns 0 if the object was newly created and not loaded from a file

Implementors