LibreOffice Module i18npool (master) 1
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | List of all members
LocaleNode Class Reference

#include <LocaleNode.hxx>

Inheritance diagram for LocaleNode:
[legend]
Collaboration diagram for LocaleNode:
[legend]

Public Member Functions

 LocaleNode (OUString name, const Reference< XAttributeList > &attr)
 
void setValue (std::u16string_view oValue)
 
const OUString & getName () const
 
const OUString & getValue () const
 
const AttrgetAttr () const
 
sal_Int32 getNumberOfChildren () const
 
LocaleNodegetChildAt (sal_Int32 idx) const
 
const LocaleNodefindNode (const char *name) const
 
virtual ~LocaleNode ()
 
void addChild (LocaleNode *node)
 
const LocaleNodegetRoot () const
 
int getError () const
 
virtual void generateCode (const OFileWriter &of) const
 
OUString writeParameterCheckLen (const OFileWriter &of, const char *pParameterName, const LocaleNode *pNode, sal_Int32 nMinLen, sal_Int32 nMaxLen) const
 
OUString writeParameterCheckLen (const OFileWriter &of, const char *pNodeName, const char *pParameterName, sal_Int32 nMinLen, sal_Int32 nMaxLen) const
 
void incError (const char *pStr) const
 
void incError (std::u16string_view rStr) const
 
void incErrorInt (const char *pStr, int nVal) const
 
void incErrorStr (const char *pStr, std::u16string_view rVal) const
 
void incErrorStrStr (const char *pStr, std::u16string_view rVal1, std::u16string_view rVal2) const
 

Static Public Member Functions

static LocaleNodecreateNode (const OUString &name, const Reference< XAttributeList > &attr)
 

Protected Attributes

int nError
 

Private Attributes

OUString aName
 
OUString aValue
 
Attr aAttribs
 
LocaleNodeparent
 
std::vector< std::unique_ptr< LocaleNode > > children
 

Detailed Description

Definition at line 76 of file LocaleNode.hxx.

Constructor & Destructor Documentation

◆ LocaleNode()

LocaleNode::LocaleNode ( OUString  name,
const Reference< XAttributeList > &  attr 
)

Definition at line 46 of file LocaleNode.cxx.

References aName, and name.

Referenced by createNode().

◆ ~LocaleNode()

LocaleNode::~LocaleNode ( )
virtual

Definition at line 88 of file LocaleNode.cxx.

Member Function Documentation

◆ addChild()

void LocaleNode::addChild ( LocaleNode node)

Definition at line 62 of file LocaleNode.cxx.

References children, and parent.

◆ createNode()

LocaleNode * LocaleNode::createNode ( const OUString &  name,
const Reference< XAttributeList > &  attr 
)
static

Definition at line 92 of file LocaleNode.cxx.

References LocaleNode(), and name.

◆ findNode()

const LocaleNode * LocaleNode::findNode ( const char *  name) const

◆ generateCode()

void LocaleNode::generateCode ( const OFileWriter of) const
virtual

◆ getAttr()

const Attr & LocaleNode::getAttr ( ) const
inline

◆ getChildAt()

LocaleNode * LocaleNode::getChildAt ( sal_Int32  idx) const
inline

◆ getError()

int LocaleNode::getError ( ) const

Definition at line 54 of file LocaleNode.cxx.

References children, err, getError(), i, and nError.

Referenced by getError().

◆ getName()

const OUString & LocaleNode::getName ( ) const
inline

◆ getNumberOfChildren()

sal_Int32 LocaleNode::getNumberOfChildren ( ) const
inline

◆ getRoot()

const LocaleNode * LocaleNode::getRoot ( ) const

Definition at line 67 of file LocaleNode.cxx.

References parent.

Referenced by LCFormatNode::generateCode().

◆ getValue()

const OUString & LocaleNode::getValue ( ) const
inline

◆ incError() [1/2]

void LocaleNode::incError ( const char *  pStr) const

◆ incError() [2/2]

void LocaleNode::incError ( std::u16string_view  rStr) const

Definition at line 207 of file LocaleNode.cxx.

References incError(), and OSTR.

◆ incErrorInt()

void LocaleNode::incErrorInt ( const char *  pStr,
int  nVal 
) const

Definition at line 212 of file LocaleNode.cxx.

References nError.

Referenced by LCFormatNode::generateCode(), and LCCalendarNode::generateCode().

◆ incErrorStr()

void LocaleNode::incErrorStr ( const char *  pStr,
std::u16string_view  rVal 
) const

Definition at line 218 of file LocaleNode.cxx.

References nError, and OSTR.

Referenced by LCInfoNode::generateCode(), LCFormatNode::generateCode(), and LCCalendarNode::generateCode().

◆ incErrorStrStr()

void LocaleNode::incErrorStrStr ( const char *  pStr,
std::u16string_view  rVal1,
std::u16string_view  rVal2 
) const

◆ setValue()

void LocaleNode::setValue ( std::u16string_view  oValue)
inline

Definition at line 89 of file LocaleNode.hxx.

References aValue.

◆ writeParameterCheckLen() [1/2]

OUString LocaleNode::writeParameterCheckLen ( const OFileWriter of,
const char *  pNodeName,
const char *  pParameterName,
sal_Int32  nMinLen,
sal_Int32  nMaxLen 
) const

◆ writeParameterCheckLen() [2/2]

OUString LocaleNode::writeParameterCheckLen ( const OFileWriter of,
const char *  pParameterName,
const LocaleNode pNode,
sal_Int32  nMinLen,
sal_Int32  nMaxLen 
) const

Member Data Documentation

◆ aAttribs

Attr LocaleNode::aAttribs
private

Definition at line 80 of file LocaleNode.hxx.

Referenced by getAttr().

◆ aName

OUString LocaleNode::aName
private

Definition at line 78 of file LocaleNode.hxx.

Referenced by findNode(), and getName().

◆ aValue

OUString LocaleNode::aValue
private

Definition at line 79 of file LocaleNode.hxx.

Referenced by getValue(), and setValue().

◆ children

std::vector<std::unique_ptr<LocaleNode> > LocaleNode::children
private

◆ nError

int LocaleNode::nError
mutableprotected

◆ parent

LocaleNode* LocaleNode::parent
private

Definition at line 81 of file LocaleNode.hxx.

Referenced by addChild(), and getRoot().


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