Basic class used to store a sub document. More...
#include <WPSSubDocument.h>
Public Member Functions | |
| WPSSubDocument (WPXInputStreamPtr &input, WPSParser *parser, int id=0) | |
| constructor | |
| virtual | ~WPSSubDocument () |
| destructor | |
| WPXInputStreamPtr & | getInput () |
| returns the input | |
| WPSParser * | parser () const |
| returns the parser | |
| int | id () const |
| get the identificator | |
| void | setId (int i) |
| set the identificator | |
| virtual bool | operator== (shared_ptr< WPSSubDocument > const &doc) const |
| an operator = | |
| bool | operator!= (shared_ptr< WPSSubDocument > const &doc) const |
| virtual void | parse (shared_ptr< WPSContentListener > &listener, libwps::SubDocumentType subDocumentType)=0 |
| virtual parse function | |
Protected Attributes | |
| WPXInputStreamPtr | m_input |
| WPSParser * | m_parser |
| int | m_id |
Private Member Functions | |
| WPSSubDocument (const WPSSubDocument &) | |
| WPSSubDocument & | operator= (const WPSSubDocument &) |
Basic class used to store a sub document.
| WPSSubDocument::WPSSubDocument | ( | WPXInputStreamPtr & | input, |
| WPSParser * | parser, | ||
| int | id = 0 |
||
| ) |
constructor
|
virtual |
destructor
|
private |
|
inline |
returns the input
|
inline |
get the identificator
|
inline |
|
private |
|
virtual |
an operator =
Reimplemented in WPS4ParserInternal::SubDocument, and WPS8ParserInternal::SubDocument.
Referenced by operator!=().
|
pure virtual |
virtual parse function
this function is called to parse the subdocument
Implemented in WPS4ParserInternal::SubDocument.
|
inline |
returns the parser
|
inline |
set the identificator
|
protected |
Referenced by id(), operator==(), WPS8ParserInternal::SubDocument::parse(), and setId().
|
protected |
Referenced by getInput(), operator==(), and WPS8ParserInternal::SubDocument::parse().
|
protected |
Referenced by operator==(), WPS8ParserInternal::SubDocument::parse(), WPS4ParserInternal::SubDocument::parse(), and parser().