LibreOffice Module shell (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CBaseReader Class Referenceabstract

#include <basereader.hxx>

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

Public Member Functions

virtual ~CBaseReader () override
 
- Public Member Functions inherited from i_xml_parser_event_handler
virtual ~i_xml_parser_event_handler ()
 
virtual void start_element (const string_t &raw_name, const string_t &local_name, const xml_tag_attribute_container_t &attributes)=0
 
virtual void end_element (const string_t &raw_name, const string_t &local_name)=0
 
virtual void characters (const string_t &character)=0
 
virtual void ignore_whitespace (const string_t &whitespaces)=0
 
virtual void comment (const string_t &comment)=0
 

Protected Member Functions

 CBaseReader (const Filepath_t &DocumentName)
 constructor of CBaseReader. More...
 
 CBaseReader (StreamInterface *stream)
 
virtual void start_document ()
 
virtual void end_document ()
 
virtual void start_element (const string_t &raw_name, const string_t &local_name, const xml_tag_attribute_container_t &attributes) override=0
 
virtual void end_element (const string_t &raw_name, const string_t &local_name) override=0
 
virtual void characters (const string_t &character) override=0
 
virtual void ignore_whitespace (const string_t &) override
 
virtual void processing_instruction (const std::wstring &, const std::wstring &)
 
virtual void comment (const string_t &) override
 
void Initialize (const std::string &)
 Read interested tag content into respective structure then start parsing process. More...
 

Private Attributes

ZipFile m_ZipFile
 
ZipFile::ZipContentBuffer_t m_ZipContent
 

Detailed Description

Definition at line 33 of file basereader.hxx.

Constructor & Destructor Documentation

◆ ~CBaseReader()

CBaseReader::~CBaseReader ( )
overridevirtual

Definition at line 41 of file basereader.cxx.

◆ CBaseReader() [1/2]

CBaseReader::CBaseReader ( const Filepath_t DocumentName)
protected

constructor of CBaseReader.

Definition at line 29 of file basereader.cxx.

◆ CBaseReader() [2/2]

CBaseReader::CBaseReader ( StreamInterface stream)
protected

Definition at line 35 of file basereader.cxx.

Member Function Documentation

◆ characters()

virtual void CBaseReader::characters ( const string_t character)
overrideprotectedpure virtual

Implements i_xml_parser_event_handler.

Implemented in CContentReader, and CMetaInfoReader.

◆ comment()

virtual void CBaseReader::comment ( const string_t )
inlineoverrideprotectedvirtual

Implements i_xml_parser_event_handler.

Definition at line 62 of file basereader.hxx.

◆ end_document()

void CBaseReader::end_document ( )
protectedvirtual

Definition at line 51 of file basereader.cxx.

◆ end_element()

virtual void CBaseReader::end_element ( const string_t raw_name,
const string_t local_name 
)
overrideprotectedpure virtual

Implements i_xml_parser_event_handler.

Implemented in CContentReader, and CMetaInfoReader.

◆ ignore_whitespace()

virtual void CBaseReader::ignore_whitespace ( const string_t )
inlineoverrideprotectedvirtual

Implements i_xml_parser_event_handler.

Definition at line 57 of file basereader.hxx.

◆ Initialize()

void CBaseReader::Initialize ( const std::string &  ContentName)
protected

Read interested tag content into respective structure then start parsing process.

Parameters
ContentNamethe xml file name in the zipped document which we interest.

Definition at line 59 of file basereader.cxx.

References m_ZipContent, m_ZipFile, and parser.

Referenced by CContentReader::CContentReader(), and CMetaInfoReader::CMetaInfoReader().

◆ processing_instruction()

virtual void CBaseReader::processing_instruction ( const std::wstring &  ,
const std::wstring &   
)
inlineprotectedvirtual

Definition at line 59 of file basereader.hxx.

◆ start_document()

void CBaseReader::start_document ( )
protectedvirtual

Definition at line 46 of file basereader.cxx.

◆ start_element()

virtual void CBaseReader::start_element ( const string_t raw_name,
const string_t local_name,
const xml_tag_attribute_container_t attributes 
)
overrideprotectedpure virtual

Implements i_xml_parser_event_handler.

Implemented in CContentReader, and CMetaInfoReader.

Member Data Documentation

◆ m_ZipContent

ZipFile::ZipContentBuffer_t CBaseReader::m_ZipContent
private

Definition at line 68 of file basereader.hxx.

Referenced by Initialize().

◆ m_ZipFile

ZipFile CBaseReader::m_ZipFile
private

Definition at line 67 of file basereader.hxx.

Referenced by Initialize().


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