Everett
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
everett::object_writer< P, Ops >::operation Struct Reference

Public Member Functions

 operation (std::filesystem::path const &root, object_id const &id, object_attempt_id const &attempt, file_kind kind, Ops &ops)
 
 operation (operation const &)=delete
 
operation & operator= (operation const &)=delete
 
 ~operation ()
 
void fail (char const *what, int error=errno) const
 
void open ()
 
void write_all (std::span< std::byte const > bytes)
 
void write_header (std::span< std::byte const > bytes)
 
void write_at (std::span< std::byte const > bytes, std::uint64_t offset, char const *operation)
 
void finish ()
 

Public Attributes

std::filesystem::path const & root
 
object_id const & id
 
object_attempt_id const & attempt
 
Ops & ops
 
object_write_paths paths
 
std::string first
 
std::string second
 
std::string final_name
 
std::string private_name
 
std::array< int, 4 > fds {-1, -1, -1, -1}
 
object_write_stage stage = object_write_stage::starting
 

Constructor & Destructor Documentation

◆ operation() [1/2]

template<class P , class Ops = posix_object_ops>
everett::object_writer< P, Ops >::operation::operation ( std::filesystem::path const &  root,
object_id const &  id,
object_attempt_id const &  attempt,
file_kind  kind,
Ops &  ops 
)
inline

◆ operation() [2/2]

template<class P , class Ops = posix_object_ops>
everett::object_writer< P, Ops >::operation::operation ( operation const &  )
delete

◆ ~operation()

template<class P , class Ops = posix_object_ops>
everett::object_writer< P, Ops >::operation::~operation ( )
inline

Member Function Documentation

◆ fail()

template<class P , class Ops = posix_object_ops>
void everett::object_writer< P, Ops >::operation::fail ( char const *  what,
int  error = errno 
) const
inline

◆ finish()

template<class P , class Ops = posix_object_ops>
void everett::object_writer< P, Ops >::operation::finish ( )
inline

◆ open()

template<class P , class Ops = posix_object_ops>
void everett::object_writer< P, Ops >::operation::open ( )
inline

◆ operator=()

template<class P , class Ops = posix_object_ops>
operation & everett::object_writer< P, Ops >::operation::operator= ( operation const &  )
delete

◆ write_all()

template<class P , class Ops = posix_object_ops>
void everett::object_writer< P, Ops >::operation::write_all ( std::span< std::byte const >  bytes)
inline

◆ write_at()

template<class P , class Ops = posix_object_ops>
void everett::object_writer< P, Ops >::operation::write_at ( std::span< std::byte const >  bytes,
std::uint64_t  offset,
char const *  operation 
)
inline

◆ write_header()

template<class P , class Ops = posix_object_ops>
void everett::object_writer< P, Ops >::operation::write_header ( std::span< std::byte const >  bytes)
inline

Member Data Documentation

◆ attempt

template<class P , class Ops = posix_object_ops>
object_attempt_id const& everett::object_writer< P, Ops >::operation::attempt

◆ fds

template<class P , class Ops = posix_object_ops>
std::array<int, 4> everett::object_writer< P, Ops >::operation::fds {-1, -1, -1, -1}

◆ final_name

template<class P , class Ops = posix_object_ops>
std::string everett::object_writer< P, Ops >::operation::final_name

◆ first

template<class P , class Ops = posix_object_ops>
std::string everett::object_writer< P, Ops >::operation::first

◆ id

template<class P , class Ops = posix_object_ops>
object_id const& everett::object_writer< P, Ops >::operation::id

◆ ops

template<class P , class Ops = posix_object_ops>
Ops& everett::object_writer< P, Ops >::operation::ops

◆ paths

template<class P , class Ops = posix_object_ops>
object_write_paths everett::object_writer< P, Ops >::operation::paths

◆ private_name

template<class P , class Ops = posix_object_ops>
std::string everett::object_writer< P, Ops >::operation::private_name

◆ root

template<class P , class Ops = posix_object_ops>
std::filesystem::path const& everett::object_writer< P, Ops >::operation::root

◆ second

template<class P , class Ops = posix_object_ops>
std::string everett::object_writer< P, Ops >::operation::second

◆ stage

template<class P , class Ops = posix_object_ops>
object_write_stage everett::object_writer< P, Ops >::operation::stage = object_write_stage::starting

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