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

#include <node.hxx>

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

Public Types

enum  Kind {
  KIND_PROPERTY,
  KIND_LOCALIZED_PROPERTY,
  KIND_LOCALIZED_VALUE,
  KIND_GROUP,
  KIND_SET,
  KIND_ROOT
}
 

Public Member Functions

virtual Kind kind () const =0
 
virtual rtl::Reference< Nodeclone (bool keepTemplateName) const =0
 
virtual NodeMapgetMembers ()
 
virtual OUString getTemplateName () const
 
virtual void setMandatory (int layer)
 
virtual int getMandatory () const
 
void setLayer (int layer)
 
int getLayer () const
 
void setFinalized (int layer)
 
int getFinalized () const
 
rtl::Reference< NodegetMember (OUString const &name)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Protected Member Functions

 Node (int layer)
 
 Node (const Node &other)
 
virtual ~Node () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Attributes

int layer_
 
int finalized_
 

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 Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 32 of file node.hxx.

Member Enumeration Documentation

Enumerator
KIND_PROPERTY 
KIND_LOCALIZED_PROPERTY 
KIND_LOCALIZED_VALUE 
KIND_GROUP 
KIND_SET 
KIND_ROOT 

Definition at line 34 of file node.hxx.

Constructor & Destructor Documentation

Node::Node ( int  layer)
explicitprotected

Definition at line 69 of file node.cxx.

Node::Node ( const Node other)
explicitprotected

Definition at line 71 of file node.cxx.

Node::~Node ( )
overrideprotectedvirtual

Definition at line 75 of file node.cxx.

Member Function Documentation

virtual rtl::Reference< Node > configmgr::Node::clone ( bool  keepTemplateName) const
pure virtual
int configmgr::Node::getFinalized ( ) const
inline

Definition at line 52 of file node.hxx.

References finalized_.

Referenced by configmgr::XcuParser::handleLocalizedGroupProp().

int configmgr::Node::getLayer ( ) const
inline

Definition at line 49 of file node.hxx.

References layer_.

Referenced by configmgr::XcuParser::handleLocalizedGroupProp().

int Node::getMandatory ( ) const
virtual

Reimplemented in configmgr::SetNode, and configmgr::GroupNode.

Definition at line 48 of file node.cxx.

References configmgr::Data::NO_LAYER.

rtl::Reference< Node > Node::getMember ( OUString const &  name)

Definition at line 63 of file node.cxx.

References configmgr::NodeMap::end(), configmgr::NodeMap::find(), getMembers(), i, and members.

NodeMap & Node::getMembers ( )
virtual

Reimplemented in configmgr::SetNode, configmgr::LocalizedPropertyNode, configmgr::GroupNode, and configmgr::RootNode.

Definition at line 34 of file node.cxx.

References assert().

Referenced by getMember().

OUString Node::getTemplateName ( ) const
virtual

Reimplemented in configmgr::SetNode, configmgr::GroupNode, and configmgr::LocalizedValueNode.

Definition at line 39 of file node.cxx.

virtual Kind configmgr::Node::kind ( ) const
pure virtual
void Node::setFinalized ( int  layer)

Definition at line 58 of file node.cxx.

References finalized_.

void Node::setLayer ( int  layer)
void Node::setMandatory ( int  layer)
virtual

Reimplemented in configmgr::SetNode, and configmgr::GroupNode.

Definition at line 43 of file node.cxx.

References assert(), configmgr::Data::NO_LAYER, and void().

Member Data Documentation

int configmgr::Node::finalized_
private

Definition at line 63 of file node.hxx.

Referenced by getFinalized(), and setFinalized().

int configmgr::Node::layer_
private

Definition at line 62 of file node.hxx.

Referenced by getLayer(), and setLayer().


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