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 const &defaultTemplateName, OUString const &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
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 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::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

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

Definition at line 35 of file setnode.cxx.

Referenced by clone().

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

Definition at line 71 of file setnode.cxx.

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

configmgr::SetNode::~SetNode ( )
overrideprivatevirtual

Definition at line 82 of file setnode.cxx.

Member Function Documentation

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

Implements configmgr::Node.

Definition at line 42 of file setnode.cxx.

References SetNode().

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

Definition at line 52 of file setnode.hxx.

References additionalTemplateNames_.

Referenced by configmgr::XcsParser::handleSetItem().

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

Definition at line 50 of file setnode.hxx.

References defaultTemplateName_.

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

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

Reimplemented from configmgr::Node.

Definition at line 58 of file setnode.cxx.

References mandatory_.

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

Reimplemented from configmgr::Node.

Definition at line 46 of file setnode.cxx.

References members_.

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

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

Reimplemented from configmgr::Node.

Definition at line 50 of file setnode.cxx.

References templateName_.

bool configmgr::SetNode::isValidTemplate ( OUString const &  templateName) const
Node::Kind configmgr::SetNode::kind ( ) const
overrideprivatevirtual

Implements configmgr::Node.

Definition at line 84 of file setnode.cxx.

References configmgr::Node::KIND_SET.

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

Reimplemented from configmgr::Node.

Definition at line 54 of file setnode.cxx.

References mandatory_.

Member Data Documentation

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

Definition at line 64 of file setnode.hxx.

Referenced by getAdditionalTemplateNames(), and isValidTemplate().

OUString configmgr::SetNode::defaultTemplateName_
private

Definition at line 63 of file setnode.hxx.

Referenced by getDefaultTemplateName(), and isValidTemplate().

int configmgr::SetNode::mandatory_
private

Definition at line 68 of file setnode.hxx.

Referenced by getMandatory(), and setMandatory().

NodeMap configmgr::SetNode::members_
private

Definition at line 65 of file setnode.hxx.

Referenced by getMembers(), and SetNode().

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: