galmon/storage.hh

15 lines
553 B
C++
Raw Permalink Normal View History

2019-08-11 02:43:29 -06:00
#pragma once
#include <time.h>
#include <string>
#include <vector>
2019-08-12 07:54:16 -06:00
#include "navmon.pb.h"
2019-08-11 02:43:29 -06:00
std::vector<std::string> getPathComponents(std::string_view root, time_t s, uint64_t sourceid);
std::string getPath(std::string_view root, time_t s, uint64_t sourceid, bool create=false);
2020-01-12 15:17:36 -07:00
/*
2019-08-12 07:54:16 -06:00
bool getNMM(int fd, NavMonMessage& nmm, uint32_t& offset);
bool getNMM(FILE* fp, NavMonMessage& nmm, uint32_t& offset);
2020-01-12 15:17:36 -07:00
*/
bool getRawNMM(int fd, timespec& t, std::string& raw, uint32_t& offset);
bool getRawNMM(FILE* fp, timespec& t, std::string& raw, uint32_t& offset);