Struct pos::pof::Reader
[−]
[src]
pub struct Reader<R: Read + Seek> { pub avgint: f64, pub company: [u8; 32], pub day: u16, pub device: [u8; 32], pub devint: f64, pub entries: i64, pub location: [u8; 16], pub maxalt: f64, pub maxint: f64, pub maxlat: f64, pub maxlon: f64, pub minalt: f64, pub minlat: f64, pub minlon: f64, pub month: u16, pub project: [u8; 32], pub timeinfo: TimeInfo, pub timeunit: TimeUnit, pub timezone: [u8; 16], pub version: Version, pub year: u16, // some fields omitted }
A pos file reader.
Fields
avgint: f64
The average time interval between points.
company: [u8; 32]
The name of the company that produced this file.
day: u16
The day this file was written.
device: [u8; 32]
The name of the device that collected this file.
devint: f64
The standard deviation of the time interval between points.
entries: i64
The number of points in this file.
location: [u8; 16]
The location that this file was collected.
maxalt: f64
The maximum altitude in this file.
maxint: f64
The maximum time interval between points in this file.
maxlat: f64
The maximum latitude.
maxlon: f64
The maximum longitude.
minalt: f64
The minimum altitude.
minlat: f64
The minimum latitude.
minlon: f64
The minimum longitude.
month: u16
The month this file was collected.
project: [u8; 32]
The name of this project.
timeinfo: TimeInfo
Information about the time stamps in this file.
timeunit: TimeUnit
The units of the times in this file.
timezone: [u8; 16]
This file's time zone.
I have no idea if this is a real timezone->string code, or if it is just an arbitrary string.
version: Version
The version of this file.
year: u16
The year this file was collected.
Methods
impl Reader<BufReader<File>>
[src]
fn from_path<P: AsRef<Path>>(path: P) -> Result<Reader<BufReader<File>>>
Creates a new reader for the given path.
Examples
use pos::pof::Reader; let reader = Reader::from_path("data/sbet_mission_1.pof").unwrap();
impl<R: Read + Seek> Reader<R>
[src]
fn read_point(&mut self) -> Result<Option<Point>>
Reads a point from the file.
Examples
use pos::pof::Reader; let mut reader = Reader::from_path("data/sbet_mission_1.pof").unwrap(); let point = reader.read_point().unwrap();
Trait Implementations
impl<R: Debug + Read + Seek> Debug for Reader<R>
[src]
impl<R: Read + Seek> IntoIterator for Reader<R>
[src]
type Item = Point
The type of the elements being iterated over.
type IntoIter = ReaderIterator<R>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more