/workspaces/astro/sol3-sdk/cpp/sol3/core/message_log_path_utils.h File Reference

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/core/message_log_path_utils.h File Reference
Space-ng SDK
message_log_path_utils.h File Reference
#include "sol3/core/message_port.h"
#include "sol3/cpp/filesystem.h"
#include <chrono>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 sol3
 
 sol3::core
 
 sol3::core::impl
 

Functions

bool sol3::core::impl::isUpperAlphaNumeric (std::string const &str) noexcept
 String contains only: A-Z 0-9. More...
 
bool sol3::core::impl::isValidHostId (std::string const &host_id) noexcept
 Checks if host is upper alpha numeric 4 characters long. More...
 
bool sol3::core::impl::isValidRunUuid (std::string const &run_id) noexcept
 Checks if run id is upper alpha numeric and 8 characters long. More...
 
cpp::fs::path sol3::core::logFilenamePathStem (std::chrono::system_clock::time_point start_time, core::MessagePort port, std::string const &recv_host_id, std::string const &run_uuid, uint16_t duration_s)
 
cpp::fs::path sol3::core::createUniqueLogPath (cpp::fs::path const &log_dir, std::chrono::system_clock::time_point start_time, core::MessagePort port, std::string const &host_id, std::string const &run_id, uint16_t duration_s)
 Create a unique log file path in log_dir for the given start_time and port. More...
 
bool sol3::core::matchesLogFilename (cpp::fs::path const &path, uint32_t port_encoded, std::string const &host_id, std::string const &run_id)
 Return true if the path matches the expected log filename pattern. More...
 
std::vector< cpp::fs::path > sol3::core::enumerateLogFiles (cpp::fs::path const &log_dir, uint32_t port_encoded, std::string const &host_id, std::string const &run_id)
 Collect log files in log_dir that match the configured identifiers. More...
 

Variables

constexpr char const * sol3::core::kLogExtension = ".sol3"
 Filesystem extension (with dot) for log files. More...