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
Referenced by load().
|
inline |
returns the string which was store inside the file.
Referenced by librevenge::DirTree::getSubStreamList().
|
inline |
returns true for a directory
Referenced by librevenge::IStream::createOleFromDirectory(), librevenge::DirTree::getSubStreamList(), and librevenge::IStorage::isSubStream().
void librevenge::DirEntry::load | ( | unsigned char * | buffer, |
unsigned | len ) |
reads a entry content in buffer
Referenced by librevenge::DirTree::load().
|
inline |
returns the simplified file name
Referenced by librevenge::DirTree::find_child(), and librevenge::DirTree::CompareEntryName::operator()().
void librevenge::DirEntry::save | ( | unsigned char * | buffer | ) | const |
saves a entry content in buffer */
Referenced by librevenge::DirTree::save().
|
inlinestatic |
returns space required to save a dir entry
Referenced by librevenge::DirTree::save(), and librevenge::DirTree::saveSize().
|
inline |
sets the file name
Referenced by librevenge::DirTree::index().
unsigned librevenge::DirEntry::m_child |
unsigned librevenge::DirEntry::m_colour |
the type
Referenced by DirEntry(), load(), save(), librevenge::DirTree::setInRBTForm(), and librevenge::DirTree::setInRedBlackTreeForm().
DirInfo librevenge::DirEntry::m_info |
first child
Referenced by librevenge::IStream::createOleFromDirectory(), DirEntry(), load(), save(), and librevenge::OStorage::setInformation().
unsigned librevenge::DirEntry::m_left |
previous sibling
Referenced by DirEntry(), librevenge::DirTree::get_siblings(), librevenge::DirTree::index(), load(), save(), and librevenge::DirTree::setInRBTForm().
bool librevenge::DirEntry::m_macRootEntry |
false if invalid (should be skipped)
Referenced by DirEntry(), load(), and save().
|
protected |
the file information
Referenced by DirEntry(), filename(), load(), name(), save(), and setName().
unsigned librevenge::DirEntry::m_right |
starting block
Referenced by DirEntry(), librevenge::DirTree::get_siblings(), load(), save(), and librevenge::DirTree::setInRBTForm().
unsigned long librevenge::DirEntry::m_size |
the red/black color: 0 means red
Referenced by librevenge::OStorage::addStream(), librevenge::IStream::createOleFromDirectory(), DirEntry(), load(), save(), and librevenge::OStorage::updateToSave().
unsigned long librevenge::DirEntry::m_start |
size (not valid if directory)
Referenced by librevenge::OStorage::addStream(), DirEntry(), load(), save(), and librevenge::OStorage::updateToSave().
unsigned librevenge::DirEntry::m_type |
true if this is a classic mac directory entry
Referenced by librevenge::OStorage::addDirectory(), DirEntry(), librevenge::DirTree::index(), is_dir(), load(), and save().
bool librevenge::DirEntry::m_valid |