karazeh
A cross-platform software updating library.
kzh::update_operation Class Reference

#include <update.hpp>

+ Inheritance diagram for kzh::update_operation:
+ Collaboration diagram for kzh::update_operation:

Public Member Functions

 update_operation (config_t const &, release_manifest const &)
 
virtual ~update_operation ()
 
virtual void commit ()
 
virtual STAGE_RC deploy ()
 
virtual void rollback ()
 
virtual STAGE_RC stage ()
 
virtual string_t tostring ()
 
- Public Member Functions inherited from kzh::operation
 operation (config_t const &config, release_manifest const &rm)
 
virtual ~operation ()
 

Public Attributes

string_t basis
 
string_t basis_checksum
 
uint64_t basis_length
 
string_t delta
 
string_t delta_checksum
 
uint64_t delta_length
 
string_t patched_checksum
 
uint64_t patched_length
 

Additional Inherited Members

- Protected Member Functions inherited from kzh::logger
void rename_context (string_t const &)
 
 logger (string_t context)
 
virtual ~logger ()
 
logstream alert () const
 
logstream crit () const
 
logstream debug () const
 
logstream error () const
 
logstream info () const
 
logstream notice () const
 
logstream plain () const
 
void set_uuid_prefix (string_t const &)
 
string_t const & uuid_prefix () const
 
logstream warn () const
 
- Static Protected Member Functions inherited from kzh::logger
static void deindent ()
 
static void enable_timestamps (bool on_or_off)
 
static void indent ()
 
static void mute ()
 
static void set_app_name (string_t const &app_name)
 
static void set_stream (std::ostream *)
 
static void set_threshold (char level)
 
static void unmute ()
 
- Protected Attributes inherited from kzh::operation
config_t const & config_
 
release_manifest const & rm_
 

Constructor & Destructor Documentation

kzh::update_operation::update_operation ( config_t const &  config,
release_manifest const &  rm 
)
kzh::update_operation::~update_operation ( )
virtual

Member Function Documentation

void kzh::update_operation::commit ( )
virtual

Removes the delta patch file and the cached source.

Reimplemented from kzh::operation.

References kzh::operation::config_, kzh::file_manager::exists(), kzh::KARAZEH_EXPORT::file_manager, and kzh::file_manager::remove_file().

void kzh::update_operation::rollback ( )
virtual
string_t kzh::update_operation::tostring ( )
virtual

Used internally for exceptions and logging

Reimplemented from kzh::operation.

References basis, and delta.

Member Data Documentation

string_t kzh::update_operation::basis

Referenced by stage(), and tostring().

string_t kzh::update_operation::basis_checksum

Path to the file to patch

Referenced by stage().

uint64_t kzh::update_operation::basis_length

Referenced by stage().

string_t kzh::update_operation::delta

Referenced by stage(), and tostring().

string_t kzh::update_operation::delta_checksum

URI of the delta patch file

Referenced by stage().

uint64_t kzh::update_operation::delta_length

Referenced by stage().

string_t kzh::update_operation::patched_checksum

Referenced by deploy().

uint64_t kzh::update_operation::patched_length

Referenced by deploy().


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