Namespaces | Functions
cache.cpp File Reference
#include <cstdlib>
#include <sstream>
#include <string>
#include <curl/curl.h>
#include <cras_cpp_common/expected.hpp>
#include <cras_cpp_common/string_utils.hpp>
#include <gnss_info/cache.h>
Include dependency graph for cache.cpp:

Go to the source code of this file.

Namespaces

 gnss_info
 

Functions

cras::expected< std::stringstream, std::string > gnss_info::download (const std::string &url, const std::function< void(CURL *)> &curlOptions={})
 Download the given URL to a stringstream. More...
 
std::string gnss_info::getCacheDir ()
 Return path to a directory where cache files should be stored. Also make sure the directory exists. More...
 
bool gnss_info::isCacheFileValid (const std::string &file)
 Return whether the given cache file can be used. More...
 
bool gnss_info::isCacheFileValid (const std::string &file, const ros::WallDuration &validity)
 Return whether the given cache file can be used. More...
 


gnss_info
Author(s): Martin Pecka
autogenerated on Fri Nov 24 2023 03:50:35