Public Types | |
enum | { End = 0xffffffff } |
Public Member Functions | |
DirEntry () | |
constructor | |
bool | is_dir () const |
returns true for a directory | |
std::string | name () const |
returns the simplified file name | |
std::string const & | filename () const |
returns the string which was store inside the file. | |
void | setName (std::string const &nm) |
sets the file name | |
void | load (unsigned char *buffer, unsigned len) |
reads a entry content in buffer | |
void | save (unsigned char *buffer) const |
saves a entry content in buffer */ |
Static Public Member Functions | |
static unsigned | saveSize () |
returns space required to save a dir entry |
Public Attributes | |
bool | m_valid |
bool | m_macRootEntry |
false if invalid (should be skipped) | |
unsigned | m_type |
true if this is a classic mac directory entry | |
unsigned | m_colour |
the type | |
unsigned long | m_size |
the red/black color: 0 means red | |
unsigned long | m_start |
size (not valid if directory) | |
unsigned | m_right |
starting block | |
unsigned | m_left |
previous sibling | |
unsigned | m_child |
next sibling | |
DirInfo | m_info |
first child |
Protected Attributes | |
std::string | m_name |
the file information |
|
inline |
constructor
|
inline |
returns the string which was store inside the file.
Referenced by libwpd::DirTree::getSubStreamList().
|
inline |
returns true for a directory
Referenced by libwpd::IStream::createOleFromDirectory(), libwpd::DirTree::getSubStreamList(), libwpd::IStorage::isSubStream(), and libwpd::IStream::IStream().
void libwpd::DirEntry::load | ( | unsigned char * | buffer, |
unsigned | len | ||
) |
reads a entry content in buffer
Referenced by libwpd::DirTree::load().
|
inline |
returns the simplified file name
Referenced by libwpd::DirTree::find_child(), and libwpd::DirTree::CompareEntryName::operator()().
void libwpd::DirEntry::save | ( | unsigned char * | buffer | ) | const |
saves a entry content in buffer */
Referenced by libwpd::DirTree::save().
|
inlinestatic |
returns space required to save a dir entry
|
inline |
sets the file name
Referenced by libwpd::DirTree::index().
unsigned libwpd::DirEntry::m_child |
next sibling
Referenced by libwpd::IStream::createOleFromDirectory(), libwpd::DirTree::find_child(), libwpd::DirTree::getSubStreamList(), and libwpd::DirTree::setInRedBlackTreeForm().
unsigned libwpd::DirEntry::m_colour |
the type
Referenced by libwpd::DirTree::setInRBTForm(), and libwpd::DirTree::setInRedBlackTreeForm().
DirInfo libwpd::DirEntry::m_info |
first child
Referenced by libwpd::IStream::createOleFromDirectory(), and libwpd::OStorage::setInformation().
unsigned libwpd::DirEntry::m_left |
previous sibling
Referenced by libwpd::DirTree::get_siblings(), libwpd::DirTree::index(), and libwpd::DirTree::setInRBTForm().
bool libwpd::DirEntry::m_macRootEntry |
false if invalid (should be skipped)
|
protected |
the file information
Referenced by filename(), name(), and setName().
unsigned libwpd::DirEntry::m_right |
starting block
Referenced by libwpd::DirTree::get_siblings(), and libwpd::DirTree::setInRBTForm().
unsigned long libwpd::DirEntry::m_size |
the red/black color: 0 means red
Referenced by libwpd::OStorage::addStream(), libwpd::IStream::createOleFromDirectory(), libwpd::IStream::IStream(), and libwpd::OStorage::updateToSave().
unsigned long libwpd::DirEntry::m_start |
size (not valid if directory)
Referenced by libwpd::OStorage::addStream(), libwpd::IStream::IStream(), and libwpd::OStorage::updateToSave().
unsigned libwpd::DirEntry::m_type |
true if this is a classic mac directory entry
Referenced by libwpd::OStorage::addDirectory(), libwpd::DirTree::index(), and is_dir().
bool libwpd::DirEntry::m_valid |