sun::support::DisplayPathScope

sun::support::DisplayPathScope

class · Source (opens in a new tab)

class sun::support::DisplayPathScope

Uses 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 &)=delete

Keeps 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 &)=delete

Prevents 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.