synfig-core  1.0.3
Classes | Public Member Functions | Protected Attributes | List of all members
synfig::FileContainer Class Reference

#include <filecontainer.h>

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


class  ReadStream
class  WriteStream

Public Member Functions

 FileContainer ()
virtual ~FileContainer ()
virtual bool create (const std::string &container_filename)=0
virtual bool open (const std::string &container_filename)=0
virtual void close ()=0
virtual bool is_opened ()=0
virtual bool directory_scan (const std::string &dirname, std::list< std::string > &out_files)=0
virtual bool file_open_read_whole_container ()
virtual bool file_open_read (const std::string &filename)=0
virtual bool file_open_write (const std::string &filename)=0
virtual void file_close ()
virtual bool file_is_opened_for_read ()=0
virtual bool file_is_opened_for_write ()=0
virtual size_t file_read (void *buffer, size_t size)=0
virtual size_t file_write (const void *buffer, size_t size)=0
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 is_file (const std::string &filename)=0
virtual bool is_directory (const std::string &filename)=0
virtual bool directory_create (const std::string &dirname)=0
virtual bool file_remove (const std::string &filename)=0
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)

Protected Attributes

bool stream_opened_
bool stream_valid_

Additional Inherited Members

- Public Types inherited from synfig::FileSystem
typedef etl::handle< FileSystemHandle
typedef etl::handle< ReadStreamReadStreamHandle
typedef etl::handle< WriteStreamWriteStreamHandle
- Static Public Member Functions inherited from synfig::FileSystem
static bool copy (Handle from_file_system, const std::string &from_filename, Handle to_file_system, const std::string &to_filename)
static std::string fix_slashes (const std::string &filename)
static std::istream & safeGetline (std::istream &is, std::string &t)

Constructor & Destructor Documentation

FileContainer::FileContainer ( )
FileContainer::~FileContainer ( )

Member Function Documentation

virtual bool synfig::FileContainer::create ( const std::string container_filename)
pure virtual
virtual bool synfig::FileContainer::open ( const std::string container_filename)
pure virtual
virtual void synfig::FileContainer::close ( )
pure virtual
virtual bool synfig::FileContainer::is_opened ( )
pure virtual
virtual bool synfig::FileContainer::directory_scan ( const std::string dirname,
std::list< std::string > &  out_files 
pure virtual
bool FileContainer::file_open_read_whole_container ( )
virtual bool synfig::FileContainer::file_open_read ( const std::string filename)
pure virtual
virtual bool synfig::FileContainer::file_open_write ( const std::string filename)
pure virtual
void FileContainer::file_close ( )
virtual bool synfig::FileContainer::file_is_opened_for_read ( )
pure virtual
virtual bool synfig::FileContainer::file_is_opened_for_write ( )
pure virtual
virtual size_t synfig::FileContainer::file_read ( void *  buffer,
size_t  size 
pure virtual
virtual size_t synfig::FileContainer::file_write ( const void *  buffer,
size_t  size 
pure virtual
bool synfig::FileContainer::file_is_opened ( )
FileSystem::ReadStreamHandle FileContainer::get_read_stream_whole_container ( )
FileSystem::ReadStreamHandle FileContainer::get_read_stream ( const std::string filename)
FileSystem::WriteStreamHandle FileContainer::get_write_stream ( const std::string filename)

Member Data Documentation

bool synfig::FileContainer::stream_opened_
bool synfig::FileContainer::stream_valid_

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