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

#include <filesystem.h>

Inheritance diagram for synfig::FileSystem::ReadStream:
synfig::FileSystem::Stream synfig::FileContainer::ReadStream synfig::FileContainerZip::WholeZipReadStream synfig::FileSystemNative::ReadStream synfig::ZReadStream

Public Member Functions

size_t read_block (void *buffer, size_t size)
bool read_whole_block (void *buffer, size_t size)
template<typename T >
bool read_variable (T &v)
- Public Member Functions inherited from synfig::FileSystem::Stream
virtual ~Stream ()
Handle file_system () const

Protected Member Functions

 ReadStream (Handle file_system)
virtual int underflow ()
virtual size_t internal_read (void *buffer, size_t size)=0
- Protected Member Functions inherited from synfig::FileSystem::Stream
 Stream (Handle file_system)

Protected Attributes

char buffer_
- Protected Attributes inherited from synfig::FileSystem::Stream
Handle file_system_

Constructor & Destructor Documentation

FileSystem::ReadStream::ReadStream ( Handle  file_system)
protected

Reimplemented in synfig::FileContainer::ReadStream.

References buffer_.

Member Function Documentation

int FileSystem::ReadStream::underflow ( )
protectedvirtual
virtual size_t synfig::FileSystem::ReadStream::internal_read ( void *  buffer,
size_t  size 
)
protectedpure virtual
size_t synfig::FileSystem::ReadStream::read_block ( void *  buffer,
size_t  size 
)
inline

Referenced by read_whole_block().

bool synfig::FileSystem::ReadStream::read_whole_block ( void *  buffer,
size_t  size 
)
inline

References read_block().

Referenced by read_variable().

template<typename T >
bool synfig::FileSystem::ReadStream::read_variable ( T &  v)
inline

References read_whole_block().

Member Data Documentation

char synfig::FileSystem::ReadStream::buffer_
protected

Referenced by ReadStream().


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