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

#include <xcsparser.hxx>

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

Classes

struct  Element
 

Public Member Functions

 XcsParser (int layer, 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_COMPONENT_SCHEMA ,
  STATE_TEMPLATES ,
  STATE_TEMPLATES_DONE ,
  STATE_COMPONENT ,
  STATE_COMPONENT_DONE
}
 
typedef std::stack< ElementElementStack
 

Private Member Functions

virtual ~XcsParser () 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
 
void handleComponentSchema (xmlreader::XmlReader &reader)
 
void handleNodeRef (xmlreader::XmlReader &reader)
 
void handleProp (xmlreader::XmlReader &reader)
 
void handlePropValue (xmlreader::XmlReader &reader, rtl::Reference< Node > const &property)
 
void handleGroup (xmlreader::XmlReader &reader, bool isTemplate)
 
void handleSet (xmlreader::XmlReader &reader, bool isTemplate)
 
void handleSetItem (xmlreader::XmlReader &reader, SetNode *set)
 

Private Attributes

ValueParser valueParser_
 
Datadata_
 
OUString componentName_
 
State state_
 
long ignoring_
 
ElementStack elements_
 

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 43 of file xcsparser.hxx.

Member Typedef Documentation

◆ ElementStack

typedef std::stack< Element > configmgr::XcsParser::ElementStack
private

Definition at line 89 of file xcsparser.hxx.

Member Enumeration Documentation

◆ State

Enumerator
STATE_START 
STATE_COMPONENT_SCHEMA 
STATE_TEMPLATES 
STATE_TEMPLATES_DONE 
STATE_COMPONENT 
STATE_COMPONENT_DONE 

Definition at line 75 of file xcsparser.hxx.

Constructor & Destructor Documentation

◆ XcsParser()

configmgr::XcsParser::XcsParser ( int  layer,
Data data 
)

Definition at line 111 of file xcsparser.cxx.

◆ ~XcsParser()

configmgr::XcsParser::~XcsParser ( )
overrideprivatevirtual

Definition at line 115 of file xcsparser.cxx.

Member Function Documentation

◆ characters()

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

Implements configmgr::Parser.

Definition at line 318 of file xcsparser.cxx.

References configmgr::ValueParser::characters(), text(), and valueParser_.

◆ endElement()

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

◆ getTextMode()

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

Implements configmgr::Parser.

Definition at line 117 of file xcsparser.cxx.

References configmgr::ValueParser::getTextMode(), and valueParser_.

◆ handleComponentSchema()

void configmgr::XcsParser::handleComponentSchema ( xmlreader::XmlReader reader)
private

◆ handleGroup()

void configmgr::XcsParser::handleGroup ( xmlreader::XmlReader reader,
bool  isTemplate 
)
private

◆ handleNodeRef()

void configmgr::XcsParser::handleNodeRef ( xmlreader::XmlReader reader)
private

◆ handleProp()

void configmgr::XcsParser::handleProp ( xmlreader::XmlReader reader)
private

◆ handlePropValue()

void configmgr::XcsParser::handlePropValue ( xmlreader::XmlReader reader,
rtl::Reference< Node > const &  property 
)
private

◆ handleSet()

void configmgr::XcsParser::handleSet ( xmlreader::XmlReader reader,
bool  isTemplate 
)
private

◆ handleSetItem()

void configmgr::XcsParser::handleSetItem ( xmlreader::XmlReader reader,
SetNode set 
)
private

◆ startElement()

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

Member Data Documentation

◆ componentName_

OUString configmgr::XcsParser::componentName_
private

◆ data_

Data& configmgr::XcsParser::data_
private

Definition at line 92 of file xcsparser.hxx.

Referenced by endElement(), and handleNodeRef().

◆ elements_

ElementStack configmgr::XcsParser::elements_
private

◆ ignoring_

long configmgr::XcsParser::ignoring_
private

Definition at line 95 of file xcsparser.hxx.

Referenced by endElement(), and startElement().

◆ state_

State configmgr::XcsParser::state_
private

Definition at line 94 of file xcsparser.hxx.

Referenced by endElement(), and startElement().

◆ valueParser_

ValueParser configmgr::XcsParser::valueParser_
private

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