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)
 
- 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 voidoperator new (std::size_t nSize)
 
static voidoperator 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 42 of file xcsparser.hxx.

Member Typedef Documentation

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

Definition at line 88 of file xcsparser.hxx.

Member Enumeration Documentation

Enumerator
STATE_START 
STATE_COMPONENT_SCHEMA 
STATE_TEMPLATES 
STATE_TEMPLATES_DONE 
STATE_COMPONENT 
STATE_COMPONENT_DONE 

Definition at line 74 of file xcsparser.hxx.

Constructor & Destructor Documentation

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

Definition at line 111 of file xcsparser.cxx.

configmgr::XcsParser::~XcsParser ( )
overrideprivatevirtual

Definition at line 115 of file xcsparser.cxx.

Member Function Documentation

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

Implements configmgr::Parser.

Definition at line 318 of file xcsparser.cxx.

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

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

Implements configmgr::Parser.

Definition at line 117 of file xcsparser.cxx.

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

void configmgr::XcsParser::handleComponentSchema ( xmlreader::XmlReader reader)
private
void configmgr::XcsParser::handleGroup ( xmlreader::XmlReader reader,
bool  isTemplate 
)
private
void configmgr::XcsParser::handleNodeRef ( xmlreader::XmlReader reader)
private
void configmgr::XcsParser::handleProp ( xmlreader::XmlReader reader)
private
void configmgr::XcsParser::handlePropValue ( xmlreader::XmlReader reader,
rtl::Reference< Node > const &  property 
)
private
void configmgr::XcsParser::handleSet ( xmlreader::XmlReader reader,
bool  isTemplate 
)
private
void configmgr::XcsParser::handleSetItem ( xmlreader::XmlReader reader,
SetNode set 
)
private
bool configmgr::XcsParser::startElement ( xmlreader::XmlReader reader,
int  nsId,
xmlreader::Span const &  name,
std::set< OUString > const *  existingDependencies 
)
overrideprivatevirtual

Member Data Documentation

OUString configmgr::XcsParser::componentName_
private
Data& configmgr::XcsParser::data_
private

Definition at line 91 of file xcsparser.hxx.

Referenced by endElement(), and handleNodeRef().

ElementStack configmgr::XcsParser::elements_
private
long configmgr::XcsParser::ignoring_
private

Definition at line 94 of file xcsparser.hxx.

Referenced by endElement(), and startElement().

State configmgr::XcsParser::state_
private

Definition at line 93 of file xcsparser.hxx.

Referenced by endElement(), and startElement().

ValueParser configmgr::XcsParser::valueParser_
private

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