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
WPSSubDocument::~WPSSubDocument | ( | ) | [virtual] |
destructor
WPSSubDocument::WPSSubDocument | ( | const WPSSubDocument & | ) | [private] |
WPXInputStreamPtr& WPSSubDocument::getInput | ( | ) | [inline] |
returns the input
int WPSSubDocument::id | ( | ) | const [inline] |
get the identificator
bool WPSSubDocument::operator!= | ( | shared_ptr< WPSSubDocument > const & | doc | ) | const [inline] |
WPSSubDocument& WPSSubDocument::operator= | ( | const WPSSubDocument & | ) | [private] |
bool WPSSubDocument::operator== | ( | shared_ptr< WPSSubDocument > const & | doc | ) | const [virtual] |
an operator =
Reimplemented in WPS4ParserInternal::SubDocument, and WPS8ParserInternal::SubDocument.
Referenced by operator!=().
virtual void WPSSubDocument::parse | ( | shared_ptr< WPSContentListener > & | listener, |
libwps::SubDocumentType | subDocumentType | ||
) | [pure virtual] |
virtual parse function
this function is called to parse the subdocument
Implemented in WPS4ParserInternal::SubDocument.
WPSParser* WPSSubDocument::parser | ( | ) | const [inline] |
returns the parser
void WPSSubDocument::setId | ( | int | i | ) | [inline] |
set the identificator
int WPSSubDocument::m_id [protected] |
Referenced by id(), operator==(), WPS8ParserInternal::SubDocument::parse(), and setId().
WPXInputStreamPtr WPSSubDocument::m_input [protected] |
Referenced by getInput(), operator==(), and WPS8ParserInternal::SubDocument::parse().
WPSParser* WPSSubDocument::m_parser [protected] |
Referenced by operator==(), WPS8ParserInternal::SubDocument::parse(), WPS4ParserInternal::SubDocument::parse(), and parser().