Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::TextSaveTicket Class Reference

Owning save acknowledgement qualification; retains target metadata, never document bytes. A ticket alone does not perform I/O or grant write authority. The application saves the bytes observed at its revision and acknowledges only successful writes. More...

#include <text_document.hpp>

Public Member Functions

 TextSaveTicket ()=default
 Empty invalid ticket.
std::string_view target () const noexcept
std::uint64_t revision () const noexcept

Friends

class FiniteTextDocument

Detailed Description

Owning save acknowledgement qualification; retains target metadata, never document bytes. A ticket alone does not perform I/O or grant write authority. The application saves the bytes observed at its revision and acknowledges only successful writes.

Member Function Documentation

◆ revision()

std::uint64_t portals::TextSaveTicket::revision ( ) const
noexcept
Returns
Exact document revision to save, or zero for an empty ticket.

◆ target()

std::string_view portals::TextSaveTicket::target ( ) const
noexcept
Returns
Physical destination borrowed while this ticket or a copy survives.

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