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

#include <filesystem.h>

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

Classes

class  Identifier
class  ReadStream
class  Stream
class  WriteStream

Public Types

typedef etl::handle< FileSystemHandle
typedef etl::handle< ReadStreamReadStreamHandle
typedef etl::handle< WriteStreamWriteStreamHandle

Public Member Functions

 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)
virtual ReadStreamHandle get_read_stream (const std::string &filename)=0
virtual WriteStreamHandle get_write_stream (const std::string &filename)=0
bool is_exists (const std::string filename)
Identifier get_identifier (const std::string &filename)

Static Public Member Functions

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)
 !

Member Typedef Documentation

typedef etl::handle< FileSystem > synfig::FileSystem::Handle

Constructor & Destructor Documentation

FileSystem::FileSystem ( )
FileSystem::~FileSystem ( )
virtual

Member Function Documentation

virtual bool synfig::FileSystem::is_file ( const std::string filename)
pure virtual
virtual bool synfig::FileSystem::is_directory ( const std::string filename)
pure virtual
virtual bool synfig::FileSystem::directory_create ( const std::string dirname)
pure virtual
virtual bool synfig::FileSystem::file_remove ( const std::string filename)
pure virtual
bool FileSystem::file_rename ( const std::string from_filename,
const std::string to_filename 
)
virtual
virtual ReadStreamHandle synfig::FileSystem::get_read_stream ( const std::string filename)
pure virtual
virtual WriteStreamHandle synfig::FileSystem::get_write_stream ( const std::string filename)
pure virtual
bool synfig::FileSystem::is_exists ( const std::string  filename)
inline

References is_directory(), and is_file().

Identifier synfig::FileSystem::get_identifier ( const std::string filename)
inline
bool FileSystem::copy ( Handle  from_file_system,
const std::string from_filename,
Handle  to_file_system,
const std::string to_filename 
)
static
std::string FileSystem::fix_slashes ( const std::string filename)
static
std::istream & FileSystem::safeGetline ( std::istream &  is,
std::string t 
)
static

!

Read a stream line by line even '
' ended

Referenced by synfig::CairoListImporter::CairoListImporter(), and synfig::ListImporter::ListImporter().


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