LibreOffice Module shell (master) 1
Public Member Functions | List of all members
CDummyTag Class Reference

Implements the ITag interface but does nothing (Null object pattern), may be used for tags we are not interested in to avoid if-else branches. More...

#include <dummytag.hxx>

Inheritance diagram for CDummyTag:
[legend]
Collaboration diagram for CDummyTag:
[legend]

Public Member Functions

virtual void startTag () override
 
virtual void endTag () override
 
virtual void addCharacters (const std::wstring &) override
 
virtual void addAttributes (const XmlTagAttributes_t &) override
 
virtual std::wstring getTagContent () override
 
virtual ::std::wstring getTagAttribute (::std::wstring const &) override
 
- Public Member Functions inherited from ITag
virtual ~ITag ()
 
virtual void startTag ()=0
 
virtual void endTag ()=0
 
virtual void addCharacters (const std::wstring &characters)=0
 
virtual void addAttributes (const XmlTagAttributes_t &attributes)=0
 
virtual ::std::wstring getTagContent ()=0
 
virtual ::std::wstring getTagAttribute (::std::wstring const &attrname)=0
 

Detailed Description

Implements the ITag interface but does nothing (Null object pattern), may be used for tags we are not interested in to avoid if-else branches.

Definition at line 33 of file dummytag.hxx.

Member Function Documentation

◆ addAttributes()

virtual void CDummyTag::addAttributes ( const XmlTagAttributes_t )
inlineoverridevirtual

Implements ITag.

Definition at line 42 of file dummytag.hxx.

◆ addCharacters()

virtual void CDummyTag::addCharacters ( const std::wstring &  )
inlineoverridevirtual

Implements ITag.

Definition at line 40 of file dummytag.hxx.

◆ endTag()

virtual void CDummyTag::endTag ( )
inlineoverridevirtual

Implements ITag.

Definition at line 38 of file dummytag.hxx.

◆ getTagAttribute()

virtual ::std::wstring CDummyTag::getTagAttribute ( ::std::wstring const &  )
inlineoverridevirtual

Implements ITag.

Definition at line 49 of file dummytag.hxx.

References EMPTY_STRING.

◆ getTagContent()

virtual std::wstring CDummyTag::getTagContent ( )
inlineoverridevirtual

Implements ITag.

Definition at line 44 of file dummytag.hxx.

References EMPTY_STRING.

◆ startTag()

virtual void CDummyTag::startTag ( )
inlineoverridevirtual

Implements ITag.

Definition at line 36 of file dummytag.hxx.


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