pub struct MdfReader { /* private fields */ }Expand description
Safe wrapper around mdflib’s MdfReader
Implementations§
Source§impl MdfReader
impl MdfReader
Sourcepub fn new<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self>
Create a new MDF reader for the specified file
Sourcepub fn is_finalized(&self) -> bool
pub fn is_finalized(&self) -> bool
Check if the reader is finialized
Sourcepub fn get_file(&self) -> Option<MdfFileRef>
pub fn get_file(&self) -> Option<MdfFileRef>
Gets the file object.
Sourcepub fn read_header(&mut self) -> Result<()>
pub fn read_header(&mut self) -> Result<()>
Read the file header
Sourcepub fn read_measurement_info(&mut self) -> Result<()>
pub fn read_measurement_info(&mut self) -> Result<()>
Read measurement information
Sourcepub fn get_header(&self) -> Option<MdfHeaderRef>
pub fn get_header(&self) -> Option<MdfHeaderRef>
Gets the header from the file.
Sourcepub fn read_everything_but_data(&mut self) -> Result<()>
pub fn read_everything_but_data(&mut self) -> Result<()>
Read everything except data
Sourcepub fn get_data_group_count(&self) -> usize
pub fn get_data_group_count(&self) -> usize
Gets the number of data groups in the file.
Sourcepub fn get_data_group(&self, index: usize) -> Option<DataGroupRef>
pub fn get_data_group(&self, index: usize) -> Option<DataGroupRef>
Gets a data group by its index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MdfReader
impl RefUnwindSafe for MdfReader
impl !Sync for MdfReader
impl Unpin for MdfReader
impl UnsafeUnpin for MdfReader
impl UnwindSafe for MdfReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more