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

#include <setnode.hxx>

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

Public Member Functions

 SetNode (int layer, OUString defaultTemplateName, OUString templateName)
 
virtual rtl::Reference< Nodeclone (bool keepTemplateName) const override
 
virtual NodeMapgetMembers () override
 
virtual OUString getTemplateName () const override
 
virtual void setMandatory (int layer) override
 
virtual int getMandatory () const override
 
OUString const & getDefaultTemplateName () const
 
std::vector< OUString > & getAdditionalTemplateNames ()
 
bool isValidTemplate (OUString const &templateName) const
 
- Public Member Functions inherited from configmgr::Node
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 ()
 

Private Member Functions

 SetNode (SetNode const &other, bool keepTemplateName)
 
virtual ~SetNode () override
 
virtual Kind kind () const override
 

Private Attributes

OUString defaultTemplateName_
 
std::vector< OUString > additionalTemplateNames_
 
NodeMap members_
 
OUString templateName_
 
int mandatory_
 

Additional Inherited Members

- Public Types inherited from configmgr::Node
enum  Kind {
  KIND_PROPERTY ,
  KIND_LOCALIZED_PROPERTY ,
  KIND_LOCALIZED_VALUE ,
  KIND_GROUP ,
  KIND_SET ,
  KIND_ROOT
}
 
- 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::Node
 Node (int layer)
 
 Node (const Node &other)
 
virtual ~Node () 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 34 of file setnode.hxx.

Constructor & Destructor Documentation

◆ SetNode() [1/2]

configmgr::SetNode::SetNode ( int  layer,
OUString  defaultTemplateName,
OUString  templateName 
)

Definition at line 35 of file setnode.cxx.

Referenced by clone().

◆ SetNode() [2/2]

configmgr::SetNode::SetNode ( SetNode const &  other,
bool  keepTemplateName 
)
private

Definition at line 71 of file setnode.cxx.

References configmgr::NodeMap::cloneInto(), members_, and templateName_.

◆ ~SetNode()

configmgr::SetNode::~SetNode ( )
overrideprivatevirtual

Definition at line 82 of file setnode.cxx.

Member Function Documentation

◆ clone()

rtl::Reference< Node > configmgr::SetNode::clone ( bool  keepTemplateName) const
overridevirtual

Implements configmgr::Node.

Definition at line 42 of file setnode.cxx.

References SetNode().

◆ getAdditionalTemplateNames()

std::vector< OUString > & configmgr::SetNode::getAdditionalTemplateNames ( )
inline

Definition at line 52 of file setnode.hxx.

References additionalTemplateNames_.

◆ getDefaultTemplateName()

OUString const & configmgr::SetNode::getDefaultTemplateName ( ) const
inline

Definition at line 50 of file setnode.hxx.

References defaultTemplateName_.

◆ getMandatory()

int configmgr::SetNode::getMandatory ( ) const
overridevirtual

Reimplemented from configmgr::Node.

Definition at line 58 of file setnode.cxx.

References mandatory_.

◆ getMembers()

NodeMap & configmgr::SetNode::getMembers ( )
overridevirtual

Reimplemented from configmgr::Node.

Definition at line 46 of file setnode.cxx.

References members_.

◆ getTemplateName()

OUString configmgr::SetNode::getTemplateName ( ) const
overridevirtual

Reimplemented from configmgr::Node.

Definition at line 50 of file setnode.cxx.

References templateName_.

◆ isValidTemplate()

bool configmgr::SetNode::isValidTemplate ( OUString const &  templateName) const

◆ kind()

Node::Kind configmgr::SetNode::kind ( ) const
overrideprivatevirtual

Implements configmgr::Node.

Definition at line 84 of file setnode.cxx.

References configmgr::Node::KIND_SET.

◆ setMandatory()

void configmgr::SetNode::setMandatory ( int  layer)
overridevirtual

Reimplemented from configmgr::Node.

Definition at line 54 of file setnode.cxx.

References mandatory_.

Member Data Documentation

◆ additionalTemplateNames_

std::vector<OUString> configmgr::SetNode::additionalTemplateNames_
private

Definition at line 64 of file setnode.hxx.

Referenced by getAdditionalTemplateNames(), and isValidTemplate().

◆ defaultTemplateName_

OUString configmgr::SetNode::defaultTemplateName_
private

Definition at line 63 of file setnode.hxx.

Referenced by getDefaultTemplateName(), and isValidTemplate().

◆ mandatory_

int configmgr::SetNode::mandatory_
private

Definition at line 68 of file setnode.hxx.

Referenced by getMandatory(), and setMandatory().

◆ members_

NodeMap configmgr::SetNode::members_
private

Definition at line 65 of file setnode.hxx.

Referenced by getMembers(), and SetNode().

◆ templateName_

OUString configmgr::SetNode::templateName_
private

Definition at line 66 of file setnode.hxx.

Referenced by getTemplateName(), and SetNode().


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