uatools 1.0.0-pre2
 
Loading...
Searching...
No Matches
fileUtils.hpp
Go to the documentation of this file.
1
13
14#ifndef ESO_UATOOLS_PROTOCOL_BASE_FILEUTILS_HPP
15#define ESO_UATOOLS_PROTOCOL_BASE_FILEUTILS_HPP
16
17#include <string>
18
20
31 std::string FindFile(const std::string& filename);
32
34 bool FileExists(const std::string& path);
35
41 std::string Trim(const std::string& s, const std::string& chars = " \t");
42
43} // namespace eso::uatools::protocol::base
44
45#endif // ESO_UATOOLS_PROTOCOL_BASE_FILEUTILS_HPP
Definition icomm_adapter_generic_v2.hpp:49
bool FileExists(const std::string &path)
Wrapper around std::filesystem::exists().
Definition fileUtils.cpp:14
std::string Trim(const std::string &s, const std::string &chars)
Strip leading and trailing occurrences of any character in chars from s.
Definition fileUtils.cpp:65
std::string FindFile(const std::string &filename)
Search the CFGPATH environment variable for the given file.
Definition fileUtils.cpp:22