libebook::IMPResourceDirImpl Class Reference

Classes

struct  ResourceInfo
 

Public Member Functions

 IMPResourceDirImpl (WPXInputStream *input, unsigned files, unsigned version)
 
WPXInputStream * getDirStream () const
 
WPXInputStream * getResourceByName (const char *name) const
 
WPXInputStream * getResourceByType (const char *type) const
 

Private Types

typedef boost::unordered_map
< string, ResourceInfo
ResourceMap_t
 
typedef boost::unordered_map
< string,
ResourceMap_t::const_iterator > 
TypeMap_t
 

Private Member Functions

 IMPResourceDirImpl (const IMPResourceDirImpl &other)
 
IMPResourceDirImploperator= (const IMPResourceDirImpl &other)
 
ResourceMap_t::const_iterator findResourceByType (const char *type) const
 
WPXInputStream * createStream (const ResourceInfo &info) const
 

Private Attributes

WPXInputStream * m_stream
 
unsigned m_start
 
unsigned m_length
 
ResourceMap_t m_resourceMap
 
TypeMap_t m_typeMap
 

Member Typedef Documentation

typedef boost::unordered_map<string, ResourceInfo> libebook::IMPResourceDirImpl::ResourceMap_t
private
typedef boost::unordered_map<string, ResourceMap_t::const_iterator> libebook::IMPResourceDirImpl::TypeMap_t
private

Constructor & Destructor Documentation

libebook::IMPResourceDirImpl::IMPResourceDirImpl ( const IMPResourceDirImpl other)
private
libebook::IMPResourceDirImpl::IMPResourceDirImpl ( WPXInputStream *  input,
unsigned  files,
unsigned  version 
)

Member Function Documentation

WPXInputStream * libebook::IMPResourceDirImpl::createStream ( const ResourceInfo info) const
private
IMPResourceDirImpl::ResourceMap_t::const_iterator libebook::IMPResourceDirImpl::findResourceByType ( const char *  type) const
private

Referenced by getResourceByType().

WPXInputStream * libebook::IMPResourceDirImpl::getDirStream ( ) const
WPXInputStream * libebook::IMPResourceDirImpl::getResourceByName ( const char *  name) const
WPXInputStream * libebook::IMPResourceDirImpl::getResourceByType ( const char *  type) const
IMPResourceDirImpl& libebook::IMPResourceDirImpl::operator= ( const IMPResourceDirImpl other)
private

Member Data Documentation

unsigned libebook::IMPResourceDirImpl::m_length
private

Referenced by getDirStream(), and IMPResourceDirImpl().

ResourceMap_t libebook::IMPResourceDirImpl::m_resourceMap
mutableprivate
unsigned libebook::IMPResourceDirImpl::m_start
private

Referenced by getDirStream(), and IMPResourceDirImpl().

WPXInputStream* libebook::IMPResourceDirImpl::m_stream
private
TypeMap_t libebook::IMPResourceDirImpl::m_typeMap
mutableprivate

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

Generated for libe-book by doxygen 1.8.5