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

Detailed Description

Definition at line 32 of file node.hxx.

Member Enumeration Documentation

◆ Kind

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() [1/2]

Node::Node ( int  layer)
explicitprotected

Definition at line 69 of file node.cxx.

◆ Node() [2/2]

Node::Node ( const Node other)
explicitprotected

Definition at line 71 of file node.cxx.

◆ ~Node()

Node::~Node ( )
overrideprotectedvirtual

Definition at line 75 of file node.cxx.

Member Function Documentation

◆ clone()

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

◆ getFinalized()

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

Definition at line 52 of file node.hxx.

References finalized_.

◆ getLayer()

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

Definition at line 49 of file node.hxx.

References layer_.

◆ getMandatory()

int Node::getMandatory ( ) const
virtual

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

Definition at line 48 of file node.cxx.

References configmgr::Data::NO_LAYER.

◆ getMember()

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

Definition at line 63 of file node.cxx.

References getMembers(), i, members, and name.

◆ getMembers()

NodeMap & Node::getMembers ( )
virtual

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

Definition at line 34 of file node.cxx.

Referenced by getMember().

◆ getTemplateName()

OUString Node::getTemplateName ( ) const
virtual

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

Definition at line 39 of file node.cxx.

◆ kind()

virtual Kind configmgr::Node::kind ( ) const
pure virtual

◆ setFinalized()

void Node::setFinalized ( int  layer)

Definition at line 58 of file node.cxx.

References finalized_.

◆ setLayer()

void Node::setLayer ( int  layer)

◆ setMandatory()

void Node::setMandatory ( int  layer)
virtual

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

Definition at line 43 of file node.cxx.

References configmgr::Data::NO_LAYER.

Member Data Documentation

◆ finalized_

int configmgr::Node::finalized_
private

Definition at line 63 of file node.hxx.

Referenced by getFinalized(), and setFinalized().

◆ layer_

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: