libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::RemotePath Class Reference

#include <types.hpp>

Public Member Functions

 RemotePath ()=default
 
 RemotePath (std::string p)
 
 RemotePath (const char *p)
 
const std::string & str () const noexcept
 
bool empty () const noexcept
 
RemotePath operator/ (std::string_view child) const
 

Friends

bool operator== (const RemotePath &a, const RemotePath &b) noexcept
 
bool operator!= (const RemotePath &a, const RemotePath &b) noexcept
 

Detailed Description

A remote (POSIX, '/'-separated) path. Deliberately distinct from std::filesystem::path, which would mangle separators on Windows. See docs/design/02 ADR-7.

Constructor & Destructor Documentation

◆ RemotePath() [1/3]

sshpp::RemotePath::RemotePath ( )
default

◆ RemotePath() [2/3]

sshpp::RemotePath::RemotePath ( std::string  p)
inline

◆ RemotePath() [3/3]

sshpp::RemotePath::RemotePath ( const char *  p)
inline

Member Function Documentation

◆ str()

const std::string & sshpp::RemotePath::str ( ) const
inlinenoexcept

◆ empty()

bool sshpp::RemotePath::empty ( ) const
inlinenoexcept

◆ operator/()

RemotePath sshpp::RemotePath::operator/ ( std::string_view  child) const
inline

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const RemotePath a,
const RemotePath b 
)
friend

◆ operator!=

bool operator!= ( const RemotePath a,
const RemotePath b 
)
friend

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