Public Member Functions | Private Member Functions | Private Attributes

ODi_StartTag Class Reference

This class contains the data of a start element tag. More...

#include <ODi_StartTag.h>

List of all members.

Public Member Functions

 ODi_StartTag (UT_uint32 attributeGrowStep=10)
 ~ODi_StartTag ()
void set (const gchar *pName, const gchar **ppAtts)
const char * getName () const
UT_uint32 getAttributeCount () const
const char * getAttributeValue (const char *rName) const

Private Member Functions

void _growAttributes ()

Private Attributes

UT_UTF8Stringbuf m_name
UT_uint32 m_attributeSize
UT_uint32 m_attributeMemSize
UT_uint32 m_attributeGrowStep

Detailed Description

This class contains the data of a start element tag.

It's intended to be reused, so, its data is buffered. Reusing this class is a good idea beacuse during the parsing of an OpenDocument text stream there will be LOTS of creation and destruction of start tags. Making "new" and "delete" operations for these events would be a significant performance burden.

Constructor & Destructor Documentation

ODi_StartTag::ODi_StartTag ( UT_uint32  attributeGrowStep = 10  ) 


ODi_StartTag::~ODi_StartTag (  ) 


References DELETEPV, and m_pAttributes.

Member Function Documentation

void ODi_StartTag::_growAttributes (  )  [private]
UT_uint32 ODi_StartTag::getAttributeCount (  )  const [inline]

References m_attributeSize.

const char * ODi_StartTag::getAttributeValue ( const char *  rName  )  const
const char* ODi_StartTag::getName (  )  const [inline]
void ODi_StartTag::set ( const gchar *  pName,
const gchar **  ppAtts 

Member Data Documentation

Referenced by _growAttributes().

Referenced by _growAttributes(), and set().

Referenced by getName(), and set().

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