galmon/sp3.hh

26 lines
364 B
C++
Raw Normal View History

2019-09-24 13:20:48 -06:00
#pragma once
#include <string>
#include <time.h>
#include <stdio.h>
struct SP3Entry
{
int gnss;
int sv;
time_t t;
2020-07-03 13:26:22 -06:00
double x, y, z; // meters
double clockBias; // nanoseconds
2019-09-24 13:20:48 -06:00
};
class SP3Reader
{
public:
SP3Reader(std::string_view fname);
bool get(SP3Entry& sp3);
~SP3Reader();
private:
std::string fname;
FILE* d_fp{0};
time_t d_time{0};
};