libwpd::DirEntry Class Reference

List of all members.

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

Member Enumeration Documentation

anonymous enum
Enumerator:
End 

Constructor & Destructor Documentation

constructor


Member Function Documentation

std::string const& libwpd::DirEntry::filename ( ) const [inline]

returns the string which was store inside the file.

Note:
: either name() or a index (unknown) followed by name()

Referenced by libwpd::DirTree::getSubStreamList().

void libwpd::DirEntry::load ( unsigned char *  buffer,
unsigned  len 
)

reads a entry content in buffer

Referenced by libwpd::DirTree::load().

std::string libwpd::DirEntry::name ( ) const [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().

static unsigned libwpd::DirEntry::saveSize ( ) [inline, static]

returns space required to save a dir entry

void libwpd::DirEntry::setName ( std::string const &  nm) [inline]

sets the file name

Referenced by libwpd::DirTree::index().


Member Data Documentation

false if invalid (should be skipped)

std::string libwpd::DirEntry::m_name [protected]

the file information

Referenced by filename(), name(), and setName().

true if this is a classic mac directory entry

Referenced by libwpd::OStorage::addDirectory(), libwpd::DirTree::index(), and is_dir().


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