StarItemPoolInternal::SfxMultiRecord Struct Reference

Internal: a structure use to read SfxMultiRecord zone of a StarItemPool. More...

List of all members.

Public Member Functions

 SfxMultiRecord ()
 constructor
bool isOpened () const
 returns true if the record is opened
uint16_t getNumRecords () const
 returns the number of record
int getHeaderTag () const
 returns the header tag or -1
bool open (StarZone &zone)
 try to open a zone
void close (std::string const &wh)
 try to close a zone
bool getNewContent (std::string const &wh, int &id)
 try to go to the new content positon
long getLastContentPosition () const
 returns the last content position

Protected Attributes

StarZonem_zone
 the main zone
char m_zoneType
 the zone type
bool m_zoneOpened
 true if a SfxRecord has been opened
uint8_t m_headerType
 the record type
uint8_t m_headerVersion
 the header version
uint16_t m_headerTag
 the header tag
uint16_t m_actualRecord
 the actual record
uint16_t m_numRecord
 the number of record
uint32_t m_contentSize
 the record/content/pos size
long m_startPos
 the start of data position
long m_endPos
 the end of data position
std::vector< uint32_t > m_offsetList
 the list of (offset + type)
std::string m_extra
 extra data

Private Member Functions

 SfxMultiRecord (SfxMultiRecord const &orig)
SfxMultiRecordoperator= (SfxMultiRecord const &orig)

Friends

std::ostream & operator<< (std::ostream &o, SfxMultiRecord const &r)
 basic operator<< ; print header data

Detailed Description

Internal: a structure use to read SfxMultiRecord zone of a StarItemPool.


Constructor & Destructor Documentation


Member Function Documentation

void StarItemPoolInternal::SfxMultiRecord::close ( std::string const &  wh) [inline]

try to close a zone

Referenced by StarItemPool::readStyles(), and StarItemPool::readV2().

returns the header tag or -1

Referenced by StarItemPool::readV2().

returns the last content position

Referenced by getNewContent(), and StarItemPool::readStyles().

bool StarItemPoolInternal::SfxMultiRecord::getNewContent ( std::string const &  wh,
int &  id 
) [inline]

try to go to the new content positon

Referenced by StarItemPool::readStyles().

returns the number of record

returns true if the record is opened

Referenced by StarItemPool::readV2().

try to open a zone

Referenced by StarItemPool::readStyles(), and StarItemPool::readV2().

SfxMultiRecord& StarItemPoolInternal::SfxMultiRecord::operator= ( SfxMultiRecord const &  orig) [private]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
SfxMultiRecord const &  r 
) [friend]

basic operator<< ; print header data


Member Data Documentation

the actual record

Referenced by getLastContentPosition(), getNewContent(), and open().

the record/content/pos size

Referenced by getLastContentPosition(), and open().

the end of data position

Referenced by close(), getLastContentPosition(), getNewContent(), and open().

extra data

Referenced by open().

the header tag

Referenced by getHeaderTag(), and open().

the header version

Referenced by open().

the number of record

Referenced by getLastContentPosition(), getNumRecords(), and open().

std::vector<uint32_t> StarItemPoolInternal::SfxMultiRecord::m_offsetList [protected]

the list of (offset + type)

Referenced by getLastContentPosition(), and open().

the start of data position

Referenced by getLastContentPosition(), and open().

the main zone

Referenced by close(), getNewContent(), and open().

true if a SfxRecord has been opened

Referenced by close(), getHeaderTag(), getNumRecords(), isOpened(), and open().

the zone type

Referenced by close(), and open().


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