sun::support::DisplayPathScope
class · Source (opens in a new tab)
class sun::support::DisplayPathScopeUses a fixed directory for human-readable paths until this scope ends.
An empty directory leaves the current display policy unchanged.
Public Functions
DisplayPathScope
DisplayPathScope(const DisplayPathScope &)=delete
public · function · Source (opens in a new tab)
sun::support::DisplayPathScope::DisplayPathScope(const DisplayPathScope &)=deleteKeeps scope restoration tied to its original lifetime.
DisplayPathScope(const std::filesystem::path &directory)
public · function · Source (opens in a new tab)
sun::support::DisplayPathScope::DisplayPathScope(const std::filesystem::path &directory)Saves the current policy and selects an absolute display directory.
operator=
public · function · Source (opens in a new tab)
DisplayPathScope & sun::support::DisplayPathScope::operator=(const DisplayPathScope &)=deletePrevents replacing a scope that owns an enclosing policy.
Related: DisplayPathScope
~DisplayPathScope
public · function · Source (opens in a new tab)
sun::support::DisplayPathScope::~DisplayPathScope()Restores the policy of the enclosing invocation.
Private Fields
previous_
private · variable · Source (opens in a new tab)
std::optional<std::filesystem::path> sun::support::DisplayPathScope::previous_No documentation comment.