Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
CPPHTTPLIB_NAMESPACE::detail::FileStat Struct Reference

Public Member Functions

 FileStat (const std::string &path)
bool is_file () const
bool is_dir () const

Private Attributes

struct stat st_
int ret_ = -1

Constructor & Destructor Documentation

◆ FileStat()

CPPHTTPLIB_NAMESPACE::detail::FileStat::FileStat ( const std::string & path)
inline
284383 {
284384#if defined(_WIN32)
284385 auto wpath = u8string_to_wstring(path.c_str());
284386 ret_ = _wstat(wpath.c_str(), &st_);
284387#else
284388 ret_ = stat(path.c_str(), &st_);
284389#endif
284390}

Member Function Documentation

◆ is_file()

bool CPPHTTPLIB_NAMESPACE::detail::FileStat::is_file ( ) const
inline
284391 {
284392 return ret_ >= 0 && S_ISREG(st_.st_mode);
284393}

◆ is_dir()

bool CPPHTTPLIB_NAMESPACE::detail::FileStat::is_dir ( ) const
inline
284394 {
284395 return ret_ >= 0 && S_ISDIR(st_.st_mode);
284396}

The documentation for this struct was generated from the following file: