uatools 1.0.0
 
Loading...
Searching...
No Matches
fileUtils.hpp File Reference

Small VLTSW-safe file utilities used by uatools/protocol. More...

#include <string>

Go to the source code of this file.

Namespaces

namespace  eso
 
namespace  eso::uatools
 
namespace  eso::uatools::protocol
 
namespace  eso::uatools::protocol::base
 

Functions

std::string eso::uatools::protocol::base::FindFile (const std::string &filename)
 Search the CFGPATH environment variable for the given file.
 
bool eso::uatools::protocol::base::FileExists (const std::string &path)
 Wrapper around std::filesystem::exists().
 
std::string eso::uatools::protocol::base::Trim (const std::string &s, const std::string &chars=" \t")
 Strip leading and trailing occurrences of any character in chars from s.
 

Detailed Description

Small VLTSW-safe file utilities used by uatools/protocol.

These helpers replace the previous direct dependency on rad::Helper (FindFile, FileExists) and on ifw::core::utils::string::Trim. They use only the standard library so the protocol code can build on both ELT and VLTSW with no third-party dependency.