LLXmlTreeNode Class Reference

#include <llxmltree.h>

Collaboration diagram for LLXmlTreeNode:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~LLXmlTreeNode ()
const std::string & getName ()
BOOL hasName (const std::string &name)
BOOL hasAttribute (const std::string &name)
BOOL getFastAttributeBOOL (LLStdStringHandle cannonical_name, BOOL &value)
BOOL getFastAttributeU8 (LLStdStringHandle cannonical_name, U8 &value)
BOOL getFastAttributeS8 (LLStdStringHandle cannonical_name, S8 &value)
BOOL getFastAttributeU16 (LLStdStringHandle cannonical_name, U16 &value)
BOOL getFastAttributeS16 (LLStdStringHandle cannonical_name, S16 &value)
BOOL getFastAttributeU32 (LLStdStringHandle cannonical_name, U32 &value)
BOOL getFastAttributeS32 (LLStdStringHandle cannonical_name, S32 &value)
BOOL getFastAttributeF32 (LLStdStringHandle cannonical_name, F32 &value)
BOOL getFastAttributeF64 (LLStdStringHandle cannonical_name, F64 &value)
BOOL getFastAttributeColor (LLStdStringHandle cannonical_name, LLColor4 &value)
BOOL getFastAttributeColor4 (LLStdStringHandle cannonical_name, LLColor4 &value)
BOOL getFastAttributeColor4U (LLStdStringHandle cannonical_name, LLColor4U &value)
BOOL getFastAttributeVector3 (LLStdStringHandle cannonical_name, LLVector3 &value)
BOOL getFastAttributeVector3d (LLStdStringHandle cannonical_name, LLVector3d &value)
BOOL getFastAttributeQuat (LLStdStringHandle cannonical_name, LLQuaternion &value)
BOOL getFastAttributeUUID (LLStdStringHandle cannonical_name, LLUUID &value)
BOOL getFastAttributeString (LLStdStringHandle cannonical_name, LLString &value)
virtual BOOL getAttributeBOOL (const std::string &name, BOOL &value)
virtual BOOL getAttributeU8 (const std::string &name, U8 &value)
virtual BOOL getAttributeS8 (const std::string &name, S8 &value)
virtual BOOL getAttributeU16 (const std::string &name, U16 &value)
virtual BOOL getAttributeS16 (const std::string &name, S16 &value)
virtual BOOL getAttributeU32 (const std::string &name, U32 &value)
virtual BOOL getAttributeS32 (const std::string &name, S32 &value)
virtual BOOL getAttributeF32 (const std::string &name, F32 &value)
virtual BOOL getAttributeF64 (const std::string &name, F64 &value)
virtual BOOL getAttributeColor (const std::string &name, LLColor4 &value)
virtual BOOL getAttributeColor4 (const std::string &name, LLColor4 &value)
virtual BOOL getAttributeColor4U (const std::string &name, LLColor4U &value)
virtual BOOL getAttributeVector3 (const std::string &name, LLVector3 &value)
virtual BOOL getAttributeVector3d (const std::string &name, LLVector3d &value)
virtual BOOL getAttributeQuat (const std::string &name, LLQuaternion &value)
virtual BOOL getAttributeUUID (const std::string &name, LLUUID &value)
virtual BOOL getAttributeString (const std::string &name, LLString &value)
const LLStringgetContents ()
LLString getTextContents ()
LLXmlTreeNodegetParent ()
LLXmlTreeNodegetFirstChild ()
LLXmlTreeNodegetNextChild ()
S32 getChildCount ()
LLXmlTreeNodegetChildByName (const std::string &name)
LLXmlTreeNodegetNextNamedChild ()

Protected Types

typedef std::map
< LLStdStringHandle, const
LLString * > 
attribute_map_t

Protected Member Functions

 LLXmlTreeNode (const std::string &name, LLXmlTreeNode *parent, LLXmlTree *tree)
const LLStringgetAttribute (LLStdStringHandle name)

Protected Attributes

attribute_map_t mAttributes

Private Types

typedef std::list< class
LLXmlTreeNode * > 
child_list_t
typedef std::multimap
< LLStdStringHandle,
LLXmlTreeNode * > 
child_map_t

Private Member Functions

void addAttribute (const std::string &name, const std::string &value)
void appendContents (const std::string &str)
void addChild (LLXmlTreeNode *child)
void dump (const LLString &prefix)

Private Attributes

LLString mName
LLString mContents
child_list_t mChildList
child_list_t::iterator mChildListIter
child_map_t mChildMap
child_map_t::iterator mChildMapIter
child_map_t::iterator mChildMapEndIter
LLXmlTreeNodemParent
LLXmlTreemTree

Friends

class LLXmlTree
class LLXmlTreeParser


Detailed Description

Definition at line 89 of file llxmltree.h.


Member Typedef Documentation

typedef std::map<LLStdStringHandle, const LLString*> LLXmlTreeNode::attribute_map_t [protected]

Definition at line 178 of file llxmltree.h.

typedef std::list<class LLXmlTreeNode *> LLXmlTreeNode::child_list_t [private]

Definition at line 185 of file llxmltree.h.

typedef std::multimap<LLStdStringHandle, LLXmlTreeNode *> LLXmlTreeNode::child_map_t [private]

Definition at line 189 of file llxmltree.h.


Constructor & Destructor Documentation

LLXmlTreeNode::LLXmlTreeNode ( const std::string &  name,
LLXmlTreeNode parent,
LLXmlTree tree 
) [protected]

Definition at line 107 of file llxmltree.cpp.

LLXmlTreeNode::~LLXmlTreeNode (  )  [virtual]

Definition at line 114 of file llxmltree.cpp.

References mAttributes, and mChildList.


Member Function Documentation

const std::string& LLXmlTreeNode::getName ( void   )  [inline]

Definition at line 101 of file llxmltree.h.

References mName.

Referenced by LLUIImageList::initFromFile(), LLControlGroup::loadFromFileLegacy(), and LLVOAvatarBoneInfo::parseXml().

Here is the caller graph for this function:

BOOL LLXmlTreeNode::hasName ( const std::string &  name  )  [inline]

BOOL LLXmlTreeNode::hasAttribute ( const std::string &  name  ) 

Definition at line 141 of file llxmltree.cpp.

References LLStdStringTable::addString(), mAttributes, and LLXmlTree::sAttributeKeys.

Referenced by LLUIImageList::initFromFile(), and LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeBOOL ( LLStdStringHandle  cannonical_name,
BOOL value 
)

BOOL LLXmlTreeNode::getFastAttributeU8 ( LLStdStringHandle  cannonical_name,
U8 value 
)

Definition at line 211 of file llxmltree.cpp.

References LLStringBase< char >::convertToU8(), and getAttribute().

Referenced by getAttributeU8().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeS8 ( LLStdStringHandle  cannonical_name,
S8 value 
)

Definition at line 217 of file llxmltree.cpp.

References LLStringBase< char >::convertToS8(), and getAttribute().

Referenced by getAttributeS8().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeU16 ( LLStdStringHandle  cannonical_name,
U16 value 
)

Definition at line 229 of file llxmltree.cpp.

References LLStringBase< char >::convertToU16(), and getAttribute().

Referenced by getAttributeU16().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeS16 ( LLStdStringHandle  cannonical_name,
S16 value 
)

Definition at line 223 of file llxmltree.cpp.

References LLStringBase< char >::convertToS16(), and getAttribute().

Referenced by getAttributeS16().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeU32 ( LLStdStringHandle  cannonical_name,
U32 value 
)

Definition at line 235 of file llxmltree.cpp.

References LLStringBase< char >::convertToU32(), and getAttribute().

Referenced by getAttributeU32(), and LLVisualParamInfo::parseXml().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeS32 ( LLStdStringHandle  cannonical_name,
S32 value 
)

BOOL LLXmlTreeNode::getFastAttributeF32 ( LLStdStringHandle  cannonical_name,
F32 value 
)

Definition at line 247 of file llxmltree.cpp.

References LLStringBase< char >::convertToF32(), and getAttribute().

Referenced by getAttributeF32(), LLGenePool::loadNodeArchetype(), LLViewerVisualParamInfo::parseXml(), LLTexLayerParamAlphaInfo::parseXml(), and LLVisualParamInfo::parseXml().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeF64 ( LLStdStringHandle  cannonical_name,
F64 value 
)

Definition at line 253 of file llxmltree.cpp.

References LLStringBase< char >::convertToF64(), and getAttribute().

Referenced by getAttributeF64().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeColor ( LLStdStringHandle  cannonical_name,
LLColor4 value 
)

Definition at line 259 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLColor4::parseColor().

Referenced by getAttributeColor().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeColor4 ( LLStdStringHandle  cannonical_name,
LLColor4 value 
)

Definition at line 265 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLColor4::parseColor4().

Referenced by getAttributeColor4().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeColor4U ( LLStdStringHandle  cannonical_name,
LLColor4U value 
)

Definition at line 271 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLColor4U::parseColor4U().

Referenced by getAttributeColor4U(), and LLTexLayerInfo::parseXml().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeVector3 ( LLStdStringHandle  cannonical_name,
LLVector3 value 
)

Definition at line 277 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLVector3::parseVector3().

Referenced by getAttributeVector3(), LLVOAvatarBoneInfo::parseXml(), and LLVOAvatarInfo::parseXmlSkeletonNode().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeVector3d ( LLStdStringHandle  cannonical_name,
LLVector3d value 
)

Definition at line 283 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLVector3d::parseVector3d().

Referenced by getAttributeVector3d().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeQuat ( LLStdStringHandle  cannonical_name,
LLQuaternion value 
)

Definition at line 289 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLQuaternion::parseQuat().

Referenced by getAttributeQuat().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeUUID ( LLStdStringHandle  cannonical_name,
LLUUID value 
)

Definition at line 295 of file llxmltree.cpp.

References FALSE, getAttribute(), and LLUUID::parseUUID().

Referenced by getAttributeUUID(), and LLGenePool::loadNodeArchetype().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getFastAttributeString ( LLStdStringHandle  cannonical_name,
LLString value 
)

BOOL LLXmlTreeNode::getAttributeBOOL ( const std::string &  name,
BOOL value 
) [virtual]

Definition at line 316 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeBOOL(), and LLXmlTree::sAttributeKeys.

Referenced by LLUIImageList::initFromFile(), and LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeU8 ( const std::string &  name,
U8 value 
) [virtual]

Definition at line 322 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeU8(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeS8 ( const std::string &  name,
S8 value 
) [virtual]

Definition at line 328 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeS8(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeU16 ( const std::string &  name,
U16 value 
) [virtual]

Definition at line 340 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeU16(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeS16 ( const std::string &  name,
S16 value 
) [virtual]

Definition at line 334 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeS16(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeU32 ( const std::string &  name,
U32 value 
) [virtual]

Definition at line 346 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeU32(), and LLXmlTree::sAttributeKeys.

Referenced by LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeS32 ( const std::string &  name,
S32 value 
) [virtual]

Definition at line 352 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeS32(), and LLXmlTree::sAttributeKeys.

Referenced by LLUIImageList::initFromFile(), and LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeF32 ( const std::string &  name,
F32 value 
) [virtual]

Definition at line 358 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeF32(), and LLXmlTree::sAttributeKeys.

Referenced by LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeF64 ( const std::string &  name,
F64 value 
) [virtual]

Definition at line 364 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeF64(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeColor ( const std::string &  name,
LLColor4 value 
) [virtual]

Definition at line 370 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeColor(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeColor4 ( const std::string &  name,
LLColor4 value 
) [virtual]

Definition at line 376 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeColor4(), and LLXmlTree::sAttributeKeys.

Referenced by LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeColor4U ( const std::string &  name,
LLColor4U value 
) [virtual]

Definition at line 382 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeColor4U(), and LLXmlTree::sAttributeKeys.

Referenced by LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeVector3 ( const std::string &  name,
LLVector3 value 
) [virtual]

Definition at line 388 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeVector3(), and LLXmlTree::sAttributeKeys.

Referenced by LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeVector3d ( const std::string &  name,
LLVector3d value 
) [virtual]

Definition at line 394 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeVector3d(), and LLXmlTree::sAttributeKeys.

Referenced by LLControlGroup::loadFromFileLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXmlTreeNode::getAttributeQuat ( const std::string &  name,
LLQuaternion value 
) [virtual]

Definition at line 400 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeQuat(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeUUID ( const std::string &  name,
LLUUID value 
) [virtual]

Definition at line 406 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeUUID(), and LLXmlTree::sAttributeKeys.

Here is the call graph for this function:

BOOL LLXmlTreeNode::getAttributeString ( const std::string &  name,
LLString value 
) [virtual]

Definition at line 412 of file llxmltree.cpp.

References LLStdStringTable::addString(), getFastAttributeString(), and LLXmlTree::sAttributeKeys.

Referenced by LLUIImageList::initFromFile(), LLControlGroup::loadFromFileLegacy(), and loadGender().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString& LLXmlTreeNode::getContents (  )  [inline]

Definition at line 150 of file llxmltree.h.

References mContents.

Referenced by getTextContents(), and LLAppViewer::initConfiguration().

Here is the caller graph for this function:

LLString LLXmlTreeNode::getTextContents (  ) 

Definition at line 440 of file llxmltree.cpp.

References getChildByName(), getContents(), getNextNamedChild(), mContents, n, p, and S32.

Here is the call graph for this function:

LLXmlTreeNode* LLXmlTreeNode::getParent (  )  [inline]

Definition at line 156 of file llxmltree.h.

References mParent.

Referenced by LLXmlTreeParser::endElement().

Here is the caller graph for this function:

LLXmlTreeNode * LLXmlTreeNode::getFirstChild (  ) 

LLXmlTreeNode * LLXmlTreeNode::getNextChild (  ) 

S32 LLXmlTreeNode::getChildCount (  )  [inline]

Definition at line 159 of file llxmltree.h.

References mChildList, and S32.

LLXmlTreeNode * LLXmlTreeNode::getChildByName ( const std::string &  name  ) 

LLXmlTreeNode * LLXmlTreeNode::getNextNamedChild (  ) 

const LLString* LLXmlTreeNode::getAttribute ( LLStdStringHandle  name  )  [inline, protected]

void LLXmlTreeNode::addAttribute ( const std::string &  name,
const std::string &  value 
) [private]

Definition at line 148 of file llxmltree.cpp.

References LLStdStringTable::addString(), mAttributes, and LLXmlTree::sAttributeKeys.

Referenced by LLXmlTreeParser::startElement().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLXmlTreeNode::appendContents ( const std::string &  str  )  [private]

Definition at line 184 of file llxmltree.cpp.

References mContents.

Referenced by LLXmlTreeParser::characterData().

Here is the caller graph for this function:

void LLXmlTreeNode::addChild ( LLXmlTreeNode child  )  [private]

Definition at line 189 of file llxmltree.cpp.

References LLStdStringTable::insert(), llassert, mChildList, mChildMap, mName, LLXmlTree::mNodeNames, mParent, and mTree.

Referenced by LLXmlTreeParser::startElement().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLXmlTreeNode::dump ( const LLString prefix  )  [private]

Definition at line 124 of file llxmltree.cpp.

References llcont, llendl, llinfos, mAttributes, mContents, and mName.

Referenced by LLXmlTree::dumpNode().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLXmlTree [friend]

Definition at line 91 of file llxmltree.h.

friend class LLXmlTreeParser [friend]

Definition at line 92 of file llxmltree.h.


Member Data Documentation

Definition at line 179 of file llxmltree.h.

Referenced by addAttribute(), dump(), getAttribute(), hasAttribute(), and ~LLXmlTreeNode().

Definition at line 182 of file llxmltree.h.

Referenced by addChild(), dump(), getName(), and hasName().

Definition at line 186 of file llxmltree.h.

Referenced by addChild(), getChildCount(), getFirstChild(), getNextChild(), and ~LLXmlTreeNode().

child_list_t::iterator LLXmlTreeNode::mChildListIter [private]

Definition at line 187 of file llxmltree.h.

Referenced by getFirstChild(), and getNextChild().

Definition at line 190 of file llxmltree.h.

Referenced by addChild(), and getChildByName().

child_map_t::iterator LLXmlTreeNode::mChildMapIter [private]

Definition at line 191 of file llxmltree.h.

Referenced by getChildByName(), and getNextNamedChild().

child_map_t::iterator LLXmlTreeNode::mChildMapEndIter [private]

Definition at line 192 of file llxmltree.h.

Referenced by getChildByName(), and getNextNamedChild().

Definition at line 194 of file llxmltree.h.

Referenced by addChild(), and getParent().

Definition at line 195 of file llxmltree.h.

Referenced by addChild(), and getChildByName().


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

Generated on Fri May 16 09:41:45 2008 for SecondLife by  doxygen 1.5.5