libebook::IMPResourceDirImpl Class Reference

List of all members.

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 ( 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


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