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

The average time interval between points.

The name of the company that produced this file.

The day this file was written.

The name of the device that collected this file.

The standard deviation of the time interval between points.

The number of points in this file.

The location that this file was collected.

The maximum altitude in this file.

The maximum time interval between points in this file.

The maximum latitude.

The maximum longitude.

The minimum altitude.

The minimum latitude.

The minimum longitude.

The month this file was collected.

The name of this project.

Information about the time stamps in this file.

The units of the times in this file.

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.

The version of this file.

The year this file was collected.

Methods

impl Reader<BufReader<File>>
[src]

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]

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]

Formats the value using the given formatter.

impl<R: Read + Seek> IntoIterator for Reader<R>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<R: Debug + Seek + Read> Source for Reader<R>
[src]

Reads one point from the source.

impl FileSource for Reader<BufReader<File>>
[src]

Open a new file source from a file.