LibreOffice Module configmgr (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
configmgr::XcdParser Class Reference

#include <xcdparser.hxx>

Inheritance diagram for configmgr::XcdParser:
[legend]
Collaboration diagram for configmgr::XcdParser:
[legend]

Public Member Functions

 XcdParser (int layer, std::set< OUString > const &processedDependencies, Data &data)
 
virtual xmlreader::XmlReader::Text getTextMode ()=0
 
virtual bool startElement (xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name, std::set< OUString > const *existingDependencies)=0
 
virtual void endElement (xmlreader::XmlReader const &reader)=0
 
virtual void characters (xmlreader::Span const &text)=0
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Types

enum  State {
  STATE_START ,
  STATE_DEPENDENCIES ,
  STATE_DEPENDENCY ,
  STATE_COMPONENTS
}
 

Private Member Functions

virtual ~XcdParser () override
 
virtual xmlreader::XmlReader::Text getTextMode () override
 
virtual bool startElement (xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name, std::set< OUString > const *existingDependencies) override
 
virtual void endElement (xmlreader::XmlReader const &reader) override
 
virtual void characters (xmlreader::Span const &text) override
 

Private Attributes

int layer_
 
std::set< OUString > const & processedDependencies_
 
Datadata_
 
State state_
 
OUString dependencyFile_
 
bool dependencyOptional_
 
rtl::Reference< ParsernestedParser_
 
long nesting_
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from configmgr::Parser
 Parser ()
 
virtual ~Parser () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 38 of file xcdparser.hxx.

Member Enumeration Documentation

◆ State

Enumerator
STATE_START 
STATE_DEPENDENCIES 
STATE_DEPENDENCY 
STATE_COMPONENTS 

Definition at line 57 of file xcdparser.hxx.

Constructor & Destructor Documentation

◆ XcdParser()

configmgr::XcdParser::XcdParser ( int  layer,
std::set< OUString > const &  processedDependencies,
Data data 
)

Definition at line 39 of file xcdparser.cxx.

◆ ~XcdParser()

configmgr::XcdParser::~XcdParser ( )
overrideprivatevirtual

Definition at line 45 of file xcdparser.cxx.

Member Function Documentation

◆ characters()

void configmgr::XcdParser::characters ( xmlreader::Span const &  text)
overrideprivatevirtual

Implements configmgr::Parser.

Definition at line 166 of file xcdparser.cxx.

References nestedParser_, and text().

◆ endElement()

void configmgr::XcdParser::endElement ( xmlreader::XmlReader const &  reader)
overrideprivatevirtual

◆ getTextMode()

xmlreader::XmlReader::Text configmgr::XcdParser::getTextMode ( )
overrideprivatevirtual

Implements configmgr::Parser.

Definition at line 47 of file xcdparser.cxx.

References nestedParser_.

◆ startElement()

bool configmgr::XcdParser::startElement ( xmlreader::XmlReader reader,
int  nsId,
xmlreader::Span const &  name,
std::set< OUString > const *  existingDependencies 
)
overrideprivatevirtual

Member Data Documentation

◆ data_

Data& configmgr::XcdParser::data_
private

Definition at line 62 of file xcdparser.hxx.

Referenced by startElement().

◆ dependencyFile_

OUString configmgr::XcdParser::dependencyFile_
private

Definition at line 64 of file xcdparser.hxx.

Referenced by startElement().

◆ dependencyOptional_

bool configmgr::XcdParser::dependencyOptional_
private

Definition at line 65 of file xcdparser.hxx.

Referenced by startElement().

◆ layer_

int configmgr::XcdParser::layer_
private

Definition at line 60 of file xcdparser.hxx.

Referenced by startElement().

◆ nestedParser_

rtl::Reference< Parser > configmgr::XcdParser::nestedParser_
private

Definition at line 66 of file xcdparser.hxx.

Referenced by characters(), endElement(), getTextMode(), and startElement().

◆ nesting_

long configmgr::XcdParser::nesting_
private

Definition at line 67 of file xcdparser.hxx.

Referenced by endElement(), and startElement().

◆ processedDependencies_

std::set< OUString > const& configmgr::XcdParser::processedDependencies_
private

Definition at line 61 of file xcdparser.hxx.

Referenced by startElement().

◆ state_

State configmgr::XcdParser::state_
private

Definition at line 63 of file xcdparser.hxx.

Referenced by endElement(), and startElement().


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