HanMacWrdKZone Struct Reference

Small class used to store the decoded zone of HanMacWrdKParser. More...

#include <HanMacWrdKParser.hxx>

List of all members.

Public Member Functions

 HanMacWrdKZone (MWAWInputStreamPtr input, libmwaw::DebugFile &asciiFile)
 constructor given an input and an asciiFile
 HanMacWrdKZone (shared_ptr< libmwaw::DebugFile > asciiFile)
 constructor given an asciiFile (used for compressed zone)
 ~HanMacWrdKZone ()
 destructor
long begin () const
 returns the first position in the input
long end () const
 returns the last position in the input
long length () const
 returns the zone size
bool valid () const
 returns true if the zone data exists
long fileBeginPos () const
 returns the file begin position
long fileEndPos () const
 returns the file begin position
void setFileBeginPos (long begPos)
 sets the begin file pos
void setFileLength (long len)
 sets the file length
void setFilePositions (long begPos, long endPos)
 sets the begin/end file pos
librevenge::RVNGBinaryData & getBinaryData ()
 returns a pointer to the binary data
std::string name () const
 returns the zone name
libmwaw::DebugFileascii () const
 returns the debug file

Static Public Member Functions

static std::string name (int type)
 returns the zone name

Public Attributes

int m_type
 the type : 1(text), ....
long m_id
 the zone id
long m_subId
 the zone subId
MWAWInputStreamPtr m_input
 the main input
std::string m_extra
 some extra data
bool m_parsed
 true if the zone is sended

Protected Attributes

long m_filePos
 the begin of the entry
long m_endFilePos
 the end of the entry
librevenge::RVNGBinaryData m_data
 the storage (if needed)
libmwaw::DebugFilem_asciiFile
 the debug file
shared_ptr< libmwaw::DebugFilem_asciiFilePtr
 the file pointer

Private Member Functions

 HanMacWrdKZone (HanMacWrdKZone const &orig)
HanMacWrdKZoneoperator= (HanMacWrdKZone const &orig)

Friends

std::ostream & operator<< (std::ostream &o, HanMacWrdKZone const &zone)
 operator <<

Detailed Description

Small class used to store the decoded zone of HanMacWrdKParser.


Constructor & Destructor Documentation

constructor given an input and an asciiFile

HanMacWrdKZone::HanMacWrdKZone ( shared_ptr< libmwaw::DebugFile asciiFile)

constructor given an asciiFile (used for compressed zone)

HanMacWrdKZone::HanMacWrdKZone ( HanMacWrdKZone const &  orig) [private]

Member Function Documentation

long HanMacWrdKZone::fileBeginPos ( ) const [inline]
long HanMacWrdKZone::fileEndPos ( ) const [inline]

returns the file begin position

librevenge::RVNGBinaryData& HanMacWrdKZone::getBinaryData ( ) [inline]

returns a pointer to the binary data

std::string HanMacWrdKZone::name ( ) const [inline]
std::string HanMacWrdKZone::name ( int  type) [static]

returns the zone name

HanMacWrdKZone& HanMacWrdKZone::operator= ( HanMacWrdKZone const &  orig) [private]
void HanMacWrdKZone::setFileBeginPos ( long  begPos) [inline]

sets the begin file pos

void HanMacWrdKZone::setFileLength ( long  len) [inline]

sets the file length

void HanMacWrdKZone::setFilePositions ( long  begPos,
long  endPos 
) [inline]

sets the begin/end file pos

bool HanMacWrdKZone::valid ( ) const [inline]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
HanMacWrdKZone const &  zone 
) [friend]

operator <<


Member Data Documentation

the debug file

Referenced by ascii().

the file pointer

Referenced by begin(), end(), length(), and ~HanMacWrdKZone().

librevenge::RVNGBinaryData HanMacWrdKZone::m_data [protected]

the storage (if needed)

Referenced by end(), getBinaryData(), and length().

long HanMacWrdKZone::m_endFilePos [protected]

the end of the entry

Referenced by end(), fileEndPos(), length(), setFileBeginPos(), setFileLength(), and setFilePositions().

some extra data

Referenced by operator<<().

long HanMacWrdKZone::m_filePos [protected]

the begin of the entry

Referenced by begin(), fileBeginPos(), length(), setFileBeginPos(), setFileLength(), and setFilePositions().

the zone subId

Referenced by operator<<().

the type : 1(text), ....

Referenced by name().


The documentation for this struct was generated from the following files: