12#ifndef SOSM_UTILITY_HPP
13#define SOSM_UTILITY_HPP
36 const std::vector<float>& aVector,
37 const std::string& aHeader);
39std::string
BaseName(
const std::string& aPath);
41std::string
DirName(
const std::string& aPath);
43void StripPathPrefix(
const std::string& aPrefixedPath, std::string& aPrefix, std::string& aPath);
45bool MakePath(
const std::string& aPath);
53bool FileIsCurrent(
const std::string& aTargetFile,
const std::string& aSourceFile);
Definition SOSM_Selector.hpp:24
A collection of utility functions.
Definition SOSM_Utility.hpp:25
SpectralPrintFormat
Definition SOSM_Utility.hpp:27
@ cSPF_WAVENUMBER
Definition SOSM_Utility.hpp:28
@ cSPF_WAVELENGTH
Definition SOSM_Utility.hpp:29
bool DirectoryExists(const std::string &aDirName)
Definition SOSM_Utility.cpp:288
double FileModificationTime(const std::string &aFile)
Definition SOSM_Utility.cpp:344
void SetSpectralPrintFormat(SpectralPrintFormat aSpectralPrintFormat)
Definition SOSM_Utility.cpp:33
bool CreateDirectory(const std::string &aDirName)
Definition SOSM_Utility.cpp:264
std::string BaseName(const std::string &aPath)
A C++ equivalent of the Unix 'basename' command, without the option to remove the suffix.
Definition SOSM_Utility.cpp:92
void PrintSpectralVector(ut::log::MessageStream &aStream, const SOSM_Selector &aSelector, const std::vector< float > &aVector, const std::string &aHeader)
Print a vector that represents the spectral product of something (target model, atmosphere,...
Definition SOSM_Utility.cpp:40
bool FileIsCurrent(const std::string &aTargetFile, const std::string &aSourceFile)
Definition SOSM_Utility.cpp:324
std::string DirName(const std::string &aPath)
Definition SOSM_Utility.cpp:130
bool MakePath(const std::string &aPath)
Like Unix 'mkdir -p'.
Definition SOSM_Utility.cpp:218
bool FileExists(const std::string &aFileName)
Definition SOSM_Utility.cpp:301
void StripPathPrefix(const std::string &aPrefixedPath, std::string &aPrefix, std::string &aPath)
Strip off Windows/DOS path prefix data.
Definition SOSM_Utility.cpp:172