Ardour  9.0-pre0-582-g084a23a80d
PBD::Inflater Class Reference

#include <inflater.h>

Inheritance diagram for PBD::Inflater:
[legend]

Public Member Functions

 Inflater (std::string const &archive_path, std::string const &destdir)
 
 ~Inflater ()
 
int start ()
 
bool running () const
 
int status () const
 
- Public Member Functions inherited from PBD::FileArchive
 FileArchive (const std::string &url, Progress *p=NULL)
 
 ~FileArchive ()
 
int inflate (const std::string &destdir)
 
std::vector< std::string > contents ()
 
std::string next_file_name ()
 
int extract_current_file (const std::string &destpath)
 
int create (const std::string &srcdir, CompressionLevel compression_level=CompressGood)
 
int create (const std::map< std::string, std::string > &filemap, CompressionLevel compression_level=CompressGood)
 
- Public Member Functions inherited from PBD::Progress
 Progress ()
 
virtual ~Progress ()
 
void set_progress (float)
 
void ascend ()
 
void descend (float)
 
bool cancelled () const
 

Public Attributes

PBD::Signal< void(float)> Progress
 

Private Member Functions

void threaded_inflate ()
 
void set_overall_progress (float p)
 

Private Attributes

PBD::Threadthread
 
int _status
 
std::string archive_path
 
std::string destdir
 

Additional Inherited Members

- Public Types inherited from PBD::FileArchive
enum  CompressionLevel { CompressNone = -1 , CompressFast = 0 , CompressGood = 6 }
 
- Protected Member Functions inherited from PBD::Progress
void cancel ()
 

Detailed Description

Definition at line 33 of file inflater.h.

Constructor & Destructor Documentation

◆ Inflater()

PBD::Inflater::Inflater ( std::string const &  archive_path,
std::string const &  destdir 
)

◆ ~Inflater()

PBD::Inflater::~Inflater ( )

Member Function Documentation

◆ running()

bool PBD::Inflater::running ( ) const
inline

Definition at line 40 of file inflater.h.

◆ set_overall_progress()

void PBD::Inflater::set_overall_progress ( float  p)
privatevirtual

Report overall progress.

Parameters
pCurrent progress (from 0 to 1)

Implements PBD::Progress.

◆ start()

int PBD::Inflater::start ( )

◆ status()

int PBD::Inflater::status ( ) const
inline

Definition at line 41 of file inflater.h.

◆ threaded_inflate()

void PBD::Inflater::threaded_inflate ( )
private

Member Data Documentation

◆ _status

int PBD::Inflater::_status
private

Definition at line 47 of file inflater.h.

◆ archive_path

std::string PBD::Inflater::archive_path
private

Definition at line 48 of file inflater.h.

◆ destdir

std::string PBD::Inflater::destdir
private

Definition at line 49 of file inflater.h.

◆ Progress

PBD::Signal<void(float)> PBD::Inflater::Progress

Definition at line 43 of file inflater.h.

◆ thread

PBD::Thread* PBD::Inflater::thread
private

Definition at line 46 of file inflater.h.


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