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 (const 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 ( const OUString &  name,
const Reference< XAttributeList > &  attr 
)

Definition at line 46 of file LocaleNode.cxx.

References aName.

Referenced by createNode().

LocaleNode::~LocaleNode ( )
virtual

Definition at line 88 of file LocaleNode.cxx.

Member Function Documentation

void LocaleNode::addChild ( LocaleNode node)

Definition at line 62 of file LocaleNode.cxx.

References children, and parent.

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

Definition at line 92 of file LocaleNode.cxx.

References LocaleNode().

const LocaleNode * LocaleNode::findNode ( const char *  name) const
void LocaleNode::generateCode ( const OFileWriter of) const
virtual
const Attr& LocaleNode::getAttr ( ) const
inline
LocaleNode* LocaleNode::getChildAt ( sal_Int32  idx) const
inline
int LocaleNode::getError ( ) const

Definition at line 54 of file LocaleNode.cxx.

References children, err, i, and nError.

const OUString& LocaleNode::getName ( ) const
inline
sal_Int32 LocaleNode::getNumberOfChildren ( ) const
inline
const LocaleNode * LocaleNode::getRoot ( ) const

Definition at line 67 of file LocaleNode.cxx.

References parent.

Referenced by LCFormatNode::generateCode().

const OUString& LocaleNode::getValue ( ) const
inline
void LocaleNode::incError ( const char *  pStr) const
void LocaleNode::incError ( std::u16string_view  rStr) const

Definition at line 207 of file LocaleNode.cxx.

References incError(), and OSTR.

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().

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().

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

Definition at line 89 of file LocaleNode.hxx.

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

Member Data Documentation

Attr LocaleNode::aAttribs
private

Definition at line 80 of file LocaleNode.hxx.

Referenced by getAttr().

OUString LocaleNode::aName
private

Definition at line 78 of file LocaleNode.hxx.

Referenced by findNode(), and getName().

OUString LocaleNode::aValue
private

Definition at line 79 of file LocaleNode.hxx.

Referenced by getValue().

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

Definition at line 82 of file LocaleNode.hxx.

Referenced by addChild(), findNode(), generateCode(), and getError().

int LocaleNode::nError
mutableprotected
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: