synfig-core  1.0.3
Classes | Public Member Functions | Static Public Member Functions | List of all members
synfig::FileContainerTemporary Class Reference

#include <filecontainertemporary.h>

Inheritance diagram for synfig::FileContainerTemporary:
synfig::FileContainer synfig::FileSystem

Classes

struct  FileInfo

Public Member Functions

 FileContainerTemporary ()
virtual ~FileContainerTemporary ()
virtual bool create (const std::string &container_filename)
virtual bool open (const std::string &container_filename)
bool open_from_history (const std::string &container_filename, FileContainerZip::file_size_t truncate_storage_size=0)
virtual void close ()
virtual bool is_opened ()
virtual bool is_file (const std::string &filename)
virtual bool is_directory (const std::string &filename)
virtual bool directory_create (const std::string &dirname)
virtual bool directory_scan (const std::string &dirname, std::list< std::string > &out_files)
virtual bool file_remove (const std::string &filename)
virtual bool file_open_read (const std::string &filename)
virtual bool file_open_write (const std::string &filename)
virtual void file_close ()
virtual bool file_is_opened_for_read ()
virtual bool file_is_opened_for_write ()
virtual size_t file_read (void *buffer, size_t size)
virtual size_t file_write (const void *buffer, size_t size)
const std::stringget_container_filename () const
const std::stringget_temporary_filename_base () const
bool save_temporary () const
bool open_temporary (const std::string &filename_base)
bool save_changes (const std::string &filename=std::string(), bool as_copy=false)
void discard_changes ()
- Public Member Functions inherited from synfig::FileContainer
 FileContainer ()
virtual ~FileContainer ()
virtual bool file_open_read_whole_container ()
bool file_is_opened ()
ReadStreamHandle get_read_stream_whole_container ()
virtual ReadStreamHandle get_read_stream (const std::string &filename)
virtual WriteStreamHandle get_write_stream (const std::string &filename)
- Public Member Functions inherited from synfig::FileSystem
 FileSystem ()
virtual ~FileSystem ()
virtual bool file_rename (const std::string &from_filename, const std::string &to_filename)
bool is_exists (const std::string filename)
Identifier get_identifier (const std::string &filename)

Static Public Member Functions

static std::string get_temporary_directory ()
static std::string generate_temporary_filename_base ()
static std::string generate_temporary_filename ()

Additional Inherited Members

- Public Types inherited from synfig::FileSystem
typedef etl::handle< FileSystemHandle
typedef etl::handle< ReadStreamReadStreamHandle
typedef etl::handle< WriteStreamWriteStreamHandle
- Protected Attributes inherited from synfig::FileContainer
bool stream_opened_
bool stream_valid_

Constructor & Destructor Documentation

FileContainerTemporary::FileContainerTemporary ( )
FileContainerTemporary::~FileContainerTemporary ( )
virtual

References close().

Member Function Documentation

bool FileContainerTemporary::create ( const std::string container_filename)
virtual
bool FileContainerTemporary::open ( const std::string container_filename)
virtual
bool FileContainerTemporary::open_from_history ( const std::string container_filename,
FileContainerZip::file_size_t  truncate_storage_size = 0 
)
void FileContainerTemporary::close ( )
virtual
bool FileContainerTemporary::is_opened ( )
virtual
bool FileContainerTemporary::is_file ( const std::string filename)
virtual
bool FileContainerTemporary::is_directory ( const std::string filename)
virtual
bool FileContainerTemporary::directory_create ( const std::string dirname)
virtual
bool FileContainerTemporary::directory_scan ( const std::string dirname,
std::list< std::string > &  out_files 
)
virtual
bool FileContainerTemporary::file_remove ( const std::string filename)
virtual
bool FileContainerTemporary::file_open_read ( const std::string filename)
virtual
bool FileContainerTemporary::file_open_write ( const std::string filename)
virtual
void FileContainerTemporary::file_close ( )
virtual

Reimplemented from synfig::FileContainer.

Referenced by close(), and discard_changes().

bool FileContainerTemporary::file_is_opened_for_read ( )
virtual

Implements synfig::FileContainer.

References is_opened().

Referenced by file_read().

bool FileContainerTemporary::file_is_opened_for_write ( )
virtual

Implements synfig::FileContainer.

References is_opened().

Referenced by file_write().

size_t FileContainerTemporary::file_read ( void *  buffer,
size_t  size 
)
virtual
size_t FileContainerTemporary::file_write ( const void *  buffer,
size_t  size 
)
virtual
std::string FileContainerTemporary::get_temporary_directory ( )
static
std::string FileContainerTemporary::generate_temporary_filename_base ( )
static
std::string FileContainerTemporary::generate_temporary_filename ( )
static
const std::string& synfig::FileContainerTemporary::get_container_filename ( ) const
inline
const std::string& synfig::FileContainerTemporary::get_temporary_filename_base ( ) const
inline

Referenced by discard_changes(), and save_temporary().

bool FileContainerTemporary::save_temporary ( ) const
bool FileContainerTemporary::open_temporary ( const std::string filename_base)
bool FileContainerTemporary::save_changes ( const std::string filename = std::string(),
bool  as_copy = false 
)
void FileContainerTemporary::discard_changes ( )

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