#include <llxmlnode.h>
Public Types | |
enum | ValueType { TYPE_CONTAINER, TYPE_UNKNOWN, TYPE_BOOLEAN, TYPE_INTEGER, TYPE_FLOAT, TYPE_STRING, TYPE_UUID, TYPE_NODEREF } |
enum | Encoding { ENCODING_DEFAULT = 0, ENCODING_DECIMAL, ENCODING_HEX } |
Public Member Functions | |
LLXMLNode () | |
LLXMLNode (const LLString &name, BOOL is_attribute) | |
LLXMLNode (LLStringTableEntry *name, BOOL is_attribute) | |
BOOL | isNull () |
BOOL | deleteChild (LLXMLNode *child) |
void | addChild (LLXMLNodePtr new_parent) |
void | setParent (LLXMLNodePtr new_parent) |
void | writeToFile (LLFILE *fOut, LLString indent=LLString()) |
void | writeToOstream (std::ostream &output_stream, const LLString &indent=LLString()) |
void | findName (const LLString &name, LLXMLNodeList &results) |
void | findName (LLStringTableEntry *name, LLXMLNodeList &results) |
void | findID (const LLString &id, LLXMLNodeList &results) |
virtual LLXMLNodePtr | createChild (const LLString &name, BOOL is_attribute) |
virtual LLXMLNodePtr | createChild (LLStringTableEntry *name, BOOL is_attribute) |
U32 | getBoolValue (U32 expected_length, BOOL *array) |
U32 | getByteValue (U32 expected_length, U8 *array, Encoding encoding=ENCODING_DEFAULT) |
U32 | getIntValue (U32 expected_length, S32 *array, Encoding encoding=ENCODING_DEFAULT) |
U32 | getUnsignedValue (U32 expected_length, U32 *array, Encoding encoding=ENCODING_DEFAULT) |
U32 | getLongValue (U32 expected_length, U64 *array, Encoding encoding=ENCODING_DEFAULT) |
U32 | getFloatValue (U32 expected_length, F32 *array, Encoding encoding=ENCODING_DEFAULT) |
U32 | getDoubleValue (U32 expected_length, F64 *array, Encoding encoding=ENCODING_DEFAULT) |
U32 | getStringValue (U32 expected_length, LLString *array) |
U32 | getUUIDValue (U32 expected_length, LLUUID *array) |
U32 | getNodeRefValue (U32 expected_length, LLXMLNode **array) |
BOOL | hasAttribute (const LLString &name) |
BOOL | getAttributeBOOL (const LLString &name, BOOL &value) |
BOOL | getAttributeU8 (const LLString &name, U8 &value) |
BOOL | getAttributeS8 (const LLString &name, S8 &value) |
BOOL | getAttributeU16 (const LLString &name, U16 &value) |
BOOL | getAttributeS16 (const LLString &name, S16 &value) |
BOOL | getAttributeU32 (const LLString &name, U32 &value) |
BOOL | getAttributeS32 (const LLString &name, S32 &value) |
BOOL | getAttributeF32 (const LLString &name, F32 &value) |
BOOL | getAttributeF64 (const LLString &name, F64 &value) |
BOOL | getAttributeColor (const LLString &name, LLColor4 &value) |
BOOL | getAttributeColor4 (const LLString &name, LLColor4 &value) |
BOOL | getAttributeColor4U (const LLString &name, LLColor4U &value) |
BOOL | getAttributeVector3 (const LLString &name, LLVector3 &value) |
BOOL | getAttributeVector3d (const LLString &name, LLVector3d &value) |
BOOL | getAttributeQuat (const LLString &name, LLQuaternion &value) |
BOOL | getAttributeUUID (const LLString &name, LLUUID &value) |
BOOL | getAttributeString (const LLString &name, LLString &value) |
const ValueType & | getType () const |
U32 | getLength () const |
U32 | getPrecision () const |
const LLString & | getValue () const |
LLString | getTextContents () const |
const LLStringTableEntry * | getName () const |
BOOL | hasName (const char *name) const |
BOOL | hasName (LLString name) const |
const LLString & | getID () const |
U32 | getChildCount () const |
bool | getChild (const LLString &name, LLXMLNodePtr &node, BOOL use_default_if_missing=TRUE) |
bool | getChild (const LLStringTableEntry *name, LLXMLNodePtr &node, BOOL use_default_if_missing=TRUE) |
void | getChildren (const LLString &name, LLXMLNodeList &children, BOOL use_default_if_missing=TRUE) const |
void | getChildren (const LLStringTableEntry *name, LLXMLNodeList &children, BOOL use_default_if_missing=TRUE) const |
bool | getAttribute (const LLString &name, LLXMLNodePtr &node, BOOL use_default_if_missing=TRUE) |
bool | getAttribute (const LLStringTableEntry *name, LLXMLNodePtr &node, BOOL use_default_if_missing=TRUE) |
LLXMLNodePtr | getFirstChild () |
LLXMLNodePtr | getNextSibling () |
LLXMLNodePtr | getRoot () |
bool | setAttributeString (const LLString &attr, const LLString &value) |
void | setBoolValue (const BOOL value) |
void | setByteValue (const U8 value, Encoding encoding=ENCODING_DEFAULT) |
void | setIntValue (const S32 value, Encoding encoding=ENCODING_DEFAULT) |
void | setUnsignedValue (const U32 value, Encoding encoding=ENCODING_DEFAULT) |
void | setLongValue (const U64 value, Encoding encoding=ENCODING_DEFAULT) |
void | setFloatValue (const F32 value, Encoding encoding=ENCODING_DEFAULT, U32 precision=0) |
void | setDoubleValue (const F64 value, Encoding encoding=ENCODING_DEFAULT, U32 precision=0) |
void | setStringValue (const LLString value) |
void | setUUIDValue (const LLUUID value) |
void | setNodeRefValue (const LLXMLNode *value) |
void | setBoolValue (U32 length, const BOOL *array) |
void | setByteValue (U32 length, const U8 *array, Encoding encoding=ENCODING_DEFAULT) |
void | setIntValue (U32 length, const S32 *array, Encoding encoding=ENCODING_DEFAULT) |
void | setUnsignedValue (U32 length, const U32 *array, Encoding encoding=ENCODING_DEFAULT) |
void | setLongValue (U32 length, const U64 *array, Encoding encoding=ENCODING_DEFAULT) |
void | setFloatValue (U32 length, const F32 *array, Encoding encoding=ENCODING_DEFAULT, U32 precision=0) |
void | setDoubleValue (U32 length, const F64 *array, Encoding encoding=ENCODING_DEFAULT, U32 precision=0) |
void | setStringValue (U32 length, const LLString *array) |
void | setUUIDValue (U32 length, const LLUUID *array) |
void | setNodeRefValue (U32 length, const LLXMLNode **array) |
void | setValue (const LLString &value) |
void | setName (const LLString &name) |
void | setName (LLStringTableEntry *name) |
void | setDefault (LLXMLNode *default_node) |
void | findDefault (LLXMLNode *defaults_list) |
void | updateDefault () |
void | scrubToTree (LLXMLNode *tree) |
BOOL | deleteChildren (const LLString &name) |
BOOL | deleteChildren (LLStringTableEntry *name) |
void | setAttributes (ValueType type, U32 precision, Encoding encoding, U32 length) |
void | appendValue (const LLString &value) |
void | createUnitTest (S32 max_num_children) |
BOOL | performUnitTest (LLString &error_buffer) |
Static Public Member Functions | |
static bool | parseFile (LLString filename, LLXMLNodePtr &node, LLXMLNode *defaults_tree) |
static bool | parseBuffer (U8 *buffer, U32 length, LLXMLNodePtr &node, LLXMLNode *defaults) |
static bool | parseStream (std::istream &str, LLXMLNodePtr &node, LLXMLNode *defaults) |
static bool | updateNode (LLXMLNodePtr &node, LLXMLNodePtr &update_node) |
static void | writeHeaderToFile (LLFILE *fOut) |
static LLString | escapeXML (const LLString &xml) |
Public Attributes | |
LLString | mID |
XML_Parser * | mParser |
BOOL | mIsAttribute |
U32 | mVersionMajor |
U32 | mVersionMinor |
U32 | mLength |
U32 | mPrecision |
ValueType | mType |
Encoding | mEncoding |
LLXMLNode * | mParent |
LLXMLChildren * | mChildren |
LLXMLAttribList | mAttributes |
LLXMLNodePtr | mPrev |
LLXMLNodePtr | mNext |
Static Public Attributes | |
static BOOL | sStripEscapedStrings = TRUE |
static BOOL | sStripWhitespaceValues = FALSE |
Protected Member Functions | |
~LLXMLNode () | |
BOOL | removeChild (LLXMLNode *child) |
BOOL | isFullyDefault () |
Static Protected Member Functions | |
static const char * | skipWhitespace (const char *str) |
static const char * | skipNonWhitespace (const char *str) |
static const char * | parseInteger (const char *str, U64 *dest, BOOL *is_negative, U32 precision, Encoding encoding) |
static const char * | parseFloat (const char *str, F64 *dest, U32 precision, Encoding encoding) |
Protected Attributes | |
LLStringTableEntry * | mName |
LLString | mValue |
LLXMLNodePtr | mDefault |
Definition at line 82 of file llxmlnode.h.
enum LLXMLNode::ValueType |
TYPE_CONTAINER | |
TYPE_UNKNOWN | |
TYPE_BOOLEAN | |
TYPE_INTEGER | |
TYPE_FLOAT | |
TYPE_STRING | |
TYPE_UUID | |
TYPE_NODEREF |
Definition at line 85 of file llxmlnode.h.
enum LLXMLNode::Encoding |
Definition at line 97 of file llxmlnode.h.
LLXMLNode::~LLXMLNode | ( | ) | [protected] |
Definition at line 108 of file llxmlnode.cpp.
References LLXMLChildren::head, llassert, LLXMLChildren::map, mAttributes, mChildren, mDefault, mParent, NULL, and LLXMLChildren::tail.
LLXMLNode::LLXMLNode | ( | ) |
Definition at line 56 of file llxmlnode.cpp.
Referenced by createChild(), getAttribute(), getChild(), parseBuffer(), parseFile(), parseStream(), and StartXMLNode().
Definition at line 73 of file llxmlnode.cpp.
References LLStringTable::addStringEntry(), gStringTable, and mName.
LLXMLNode::LLXMLNode | ( | LLStringTableEntry * | name, | |
BOOL | is_attribute | |||
) |
Definition at line 90 of file llxmlnode.cpp.
BOOL LLXMLNode::isNull | ( | ) |
Definition at line 253 of file llxmlnode.cpp.
References FALSE, removeChild(), and TRUE.
Referenced by deleteChildren().
void LLXMLNode::addChild | ( | LLXMLNodePtr | new_parent | ) |
Definition at line 201 of file llxmlnode.cpp.
References LLXMLChildren::head, LLXMLChildren::map, mAttributes, mChildren, NULL, and LLXMLChildren::tail.
Referenced by createChild(), setName(), and StartXMLNode().
void LLXMLNode::setParent | ( | LLXMLNodePtr | new_parent | ) |
Definition at line 262 of file llxmlnode.cpp.
References mParent, LLPointer< Type >::notNull(), and NULL.
Referenced by LLInventoryItem::exportFileXML().
bool LLXMLNode::parseFile | ( | LLString | filename, | |
LLXMLNodePtr & | node, | |||
LLXMLNode * | defaults_tree | |||
) | [static] |
Definition at line 569 of file llxmlnode.cpp.
References LLFile::fopen(), LLXMLNode(), NULL, and parseBuffer().
Referenced by LLUICtrlFactory::getLayeredXMLNode(), idle_startup(), and LLUICtrlFactory::setupPaths().
bool LLXMLNode::parseBuffer | ( | U8 * | buffer, | |
U32 | length, | |||
LLXMLNodePtr & | node, | |||
LLXMLNode * | defaults | |||
) | [static] |
Definition at line 596 of file llxmlnode.cpp.
References EndXMLNode(), FALSE, llendl, llwarns, LLXMLNode(), NULL, setDefault(), StartXMLNode(), TRUE, updateDefault(), and XMLData().
Referenced by parseFile().
bool LLXMLNode::parseStream | ( | std::istream & | str, | |
LLXMLNodePtr & | node, | |||
LLXMLNode * | defaults | |||
) | [static] |
Definition at line 645 of file llxmlnode.cpp.
References BUFSIZE, EndXMLNode(), FALSE, llendl, llwarns, LLXMLNode(), NULL, setDefault(), StartXMLNode(), updateDefault(), and XMLData().
bool LLXMLNode::updateNode | ( | LLXMLNodePtr & | node, | |
LLXMLNodePtr & | update_node | |||
) | [static] |
Definition at line 499 of file llxmlnode.cpp.
References FALSE, llendl, llwarns, LLPointer< Type >::notNull(), and TRUE.
Referenced by LLUICtrlFactory::getLayeredXMLNode().
void LLXMLNode::writeHeaderToFile | ( | LLFILE * | fOut | ) | [static] |
Definition at line 744 of file llxmlnode.cpp.
Definition at line 749 of file llxmlnode.cpp.
References isFullyDefault(), llendl, llwarns, and writeToOstream().
void LLXMLNode::writeToOstream | ( | std::ostream & | output_stream, | |
const LLString & | indent = LLString() | |||
) |
Definition at line 766 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_HEX, escapeXML(), FALSE, getFirstChild(), getTextContents(), isFullyDefault(), LLPointer< Type >::isNull(), llformat(), mAttributes, MAX_COLUMN_WIDTH, mChildren, mDefault, mEncoding, mID, mLength, mName, mPrecision, LLStringTableEntry::mString, mType, mValue, mVersionMajor, mVersionMinor, S32, TYPE_BOOLEAN, TYPE_FLOAT, TYPE_INTEGER, TYPE_NODEREF, TYPE_STRING, and TYPE_UUID.
Referenced by writeToFile().
void LLXMLNode::findName | ( | const LLString & | name, | |
LLXMLNodeList & | results | |||
) |
Definition at line 916 of file llxmlnode.cpp.
References LLStringTable::checkStringEntry(), gStringTable, LLXMLChildren::map, mChildren, mName, and LLStringTableEntry::mString.
Referenced by deleteChildren().
void LLXMLNode::findName | ( | LLStringTableEntry * | name, | |
LLXMLNodeList & | results | |||
) |
Definition at line 936 of file llxmlnode.cpp.
References LLXMLChildren::map, mChildren, mName, and LLStringTableEntry::mString.
void LLXMLNode::findID | ( | const LLString & | id, | |
LLXMLNodeList & | results | |||
) |
Definition at line 955 of file llxmlnode.cpp.
References LLXMLChildren::map, mChildren, mID, mName, and LLStringTableEntry::mString.
LLXMLNodePtr LLXMLNode::createChild | ( | const LLString & | name, | |
BOOL | is_attribute | |||
) | [virtual] |
Definition at line 239 of file llxmlnode.cpp.
References LLStringTable::addStringEntry(), and gStringTable.
Referenced by createUnitTest(), LLSaleInfo::exportFileXML(), LLPermissions::exportFileXML(), LLInventoryItem::exportFileXML(), LLVolumeXml::exportPathParams(), and LLVolumeXml::exportProfileParams().
LLXMLNodePtr LLXMLNode::createChild | ( | LLStringTableEntry * | name, | |
BOOL | is_attribute | |||
) | [virtual] |
Definition at line 245 of file llxmlnode.cpp.
References addChild(), LLXMLNode(), and mID.
Definition at line 1529 of file llxmlnode.cpp.
References FALSE, getStringValue(), i, llassert, lldebugs, llendl, mName, LLStringTableEntry::mString, mType, LLStringBase< char >::toLower(), TRUE, TYPE_BOOLEAN, TYPE_STRING, and TYPE_UNKNOWN.
Referenced by performUnitTest().
U32 LLXMLNode::getByteValue | ( | U32 | expected_length, | |
U8 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 1570 of file llxmlnode.cpp.
References ENCODING_DEFAULT, i, llassert, lldebugs, llendl, llwarns, mEncoding, mLength, mName, LLStringTableEntry::mString, mType, mValue, NULL, parseInteger(), TYPE_INTEGER, and TYPE_UNKNOWN.
U32 LLXMLNode::getIntValue | ( | U32 | expected_length, | |
S32 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 1623 of file llxmlnode.cpp.
References ENCODING_DEFAULT, i, llassert, lldebugs, llendl, llwarns, mEncoding, mLength, mName, LLStringTableEntry::mString, mType, mValue, NULL, parseInteger(), S32, TYPE_INTEGER, and TYPE_UNKNOWN.
U32 LLXMLNode::getUnsignedValue | ( | U32 | expected_length, | |
U32 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 1676 of file llxmlnode.cpp.
References ENCODING_DEFAULT, i, llassert, lldebugs, llendl, llwarns, mEncoding, mLength, mName, LLStringTableEntry::mString, mType, mValue, NULL, parseInteger(), TYPE_INTEGER, and TYPE_UNKNOWN.
Referenced by performUnitTest().
U32 LLXMLNode::getLongValue | ( | U32 | expected_length, | |
U64 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 1731 of file llxmlnode.cpp.
References ENCODING_DEFAULT, i, llassert, lldebugs, llendl, llwarns, mEncoding, mLength, mName, LLStringTableEntry::mString, mType, mValue, NULL, parseInteger(), TYPE_INTEGER, and TYPE_UNKNOWN.
Referenced by performUnitTest().
U32 LLXMLNode::getFloatValue | ( | U32 | expected_length, | |
F32 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 1785 of file llxmlnode.cpp.
References ENCODING_DEFAULT, i, llassert, lldebugs, llendl, llwarns, mEncoding, mLength, mName, LLStringTableEntry::mString, mType, mValue, NULL, parseFloat(), TYPE_FLOAT, and TYPE_UNKNOWN.
Referenced by performUnitTest().
U32 LLXMLNode::getDoubleValue | ( | U32 | expected_length, | |
F64 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 1830 of file llxmlnode.cpp.
References ENCODING_DEFAULT, i, llassert, lldebugs, llendl, llwarns, mEncoding, mLength, mName, LLStringTableEntry::mString, mType, mValue, NULL, parseFloat(), TYPE_FLOAT, and TYPE_UNKNOWN.
Referenced by performUnitTest().
Definition at line 1875 of file llxmlnode.cpp.
References llassert, lldebugs, llendl, llwarns, mLength, mName, LLStringTableEntry::mString, mValue, and n.
Referenced by getBoolValue(), and getNodeRefValue().
Definition at line 1924 of file llxmlnode.cpp.
References i, llassert, lldebugs, llendl, mName, LLStringTableEntry::mString, mType, mValue, LLUUID::parseUUID(), skipWhitespace(), TYPE_UNKNOWN, TYPE_UUID, and UUID_STR_LENGTH.
Referenced by performUnitTest().
Definition at line 1968 of file llxmlnode.cpp.
References getRoot(), getStringValue(), llassert, llendl, llwarns, mType, TYPE_NODEREF, and TYPE_UNKNOWN.
Referenced by performUnitTest().
Definition at line 1107 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1113 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1119 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1125 of file llxmlnode.cpp.
References getAttribute(), and S32.
Definition at line 1137 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1149 of file llxmlnode.cpp.
References getAttribute(), and S32.
Definition at line 1161 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1167 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1173 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1179 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1185 of file llxmlnode.cpp.
References getAttribute(), and LLColor4::mV.
Definition at line 1191 of file llxmlnode.cpp.
References getAttribute(), and LLColor4::mV.
Definition at line 1197 of file llxmlnode.cpp.
References getAttribute(), and LLColor4U::mV.
Definition at line 1203 of file llxmlnode.cpp.
References getAttribute(), and LLVector3::mV.
BOOL LLXMLNode::getAttributeVector3d | ( | const LLString & | name, | |
LLVector3d & | value | |||
) |
Definition at line 1209 of file llxmlnode.cpp.
References getAttribute(), and LLVector3d::mdV.
BOOL LLXMLNode::getAttributeQuat | ( | const LLString & | name, | |
LLQuaternion & | value | |||
) |
Definition at line 1215 of file llxmlnode.cpp.
References getAttribute(), and LLQuaternion::mQ.
Definition at line 1221 of file llxmlnode.cpp.
References getAttribute().
Definition at line 1227 of file llxmlnode.cpp.
References getAttribute().
const ValueType& LLXMLNode::getType | ( | ) | const [inline] |
U32 LLXMLNode::getLength | ( | ) | const [inline] |
U32 LLXMLNode::getPrecision | ( | ) | const [inline] |
const LLString& LLXMLNode::getValue | ( | ) | const [inline] |
Definition at line 185 of file llxmlnode.h.
References mValue.
Referenced by EndXMLNode(), and XMLData().
LLString LLXMLNode::getTextContents | ( | ) | const |
Definition at line 3024 of file llxmlnode.cpp.
References mValue, n, S32, and utf8str_removeCRLF().
Referenced by writeToOstream().
const LLStringTableEntry* LLXMLNode::getName | ( | void | ) | const [inline] |
Definition at line 187 of file llxmlnode.h.
References mName.
Referenced by LLSaleInfo::importXML(), LLPermissions::importXML(), and LLInventoryItem::importXML().
BOOL LLXMLNode::hasName | ( | const char * | name | ) | const [inline] |
Definition at line 188 of file llxmlnode.h.
References LLStringTable::checkStringEntry(), gStringTable, and mName.
Definition at line 189 of file llxmlnode.h.
References LLStringTable::checkStringEntry(), gStringTable, and mName.
const LLString& LLXMLNode::getID | ( | ) | const [inline] |
U32 LLXMLNode::getChildCount | ( | ) | const |
bool LLXMLNode::getChild | ( | const LLString & | name, | |
LLXMLNodePtr & | node, | |||
BOOL | use_default_if_missing = TRUE | |||
) |
Definition at line 1018 of file llxmlnode.cpp.
References LLStringTable::checkStringEntry(), and gStringTable.
Referenced by LLSaleInfo::importXML(), LLPermissions::importXML(), and LLInventoryItem::importXML().
bool LLXMLNode::getChild | ( | const LLStringTableEntry * | name, | |
LLXMLNodePtr & | node, | |||
BOOL | use_default_if_missing = TRUE | |||
) |
Definition at line 1023 of file llxmlnode.cpp.
References FALSE, LLPointer< Type >::isNull(), LLXMLNode(), LLXMLChildren::map, mChildren, and mDefault.
void LLXMLNode::getChildren | ( | const LLString & | name, | |
LLXMLNodeList & | children, | |||
BOOL | use_default_if_missing = TRUE | |||
) | const |
Definition at line 1042 of file llxmlnode.cpp.
References LLStringTable::checkStringEntry(), and gStringTable.
Referenced by findDefault().
void LLXMLNode::getChildren | ( | const LLStringTableEntry * | name, | |
LLXMLNodeList & | children, | |||
BOOL | use_default_if_missing = TRUE | |||
) | const |
Definition at line 1047 of file llxmlnode.cpp.
References FALSE, LLPointer< Type >::isNull(), LLXMLChildren::map, mChildren, and mDefault.
bool LLXMLNode::getAttribute | ( | const LLString & | name, | |
LLXMLNodePtr & | node, | |||
BOOL | use_default_if_missing = TRUE | |||
) |
Definition at line 1073 of file llxmlnode.cpp.
References LLStringTable::checkStringEntry(), and gStringTable.
Referenced by getAttributeBOOL(), getAttributeColor(), getAttributeColor4(), getAttributeColor4U(), getAttributeF32(), getAttributeF64(), getAttributeQuat(), getAttributeS16(), getAttributeS32(), getAttributeS8(), getAttributeString(), getAttributeU16(), getAttributeU32(), getAttributeU8(), getAttributeUUID(), getAttributeVector3(), getAttributeVector3d(), hasAttribute(), and performUnitTest().
bool LLXMLNode::getAttribute | ( | const LLStringTableEntry * | name, | |
LLXMLNodePtr & | node, | |||
BOOL | use_default_if_missing = TRUE | |||
) |
Definition at line 1078 of file llxmlnode.cpp.
References FALSE, LLPointer< Type >::isNull(), LLXMLNode(), mAttributes, and mDefault.
LLXMLNodePtr LLXMLNode::getFirstChild | ( | ) |
Definition at line 3011 of file llxmlnode.cpp.
References LLXMLChildren::head, mChildren, and NULL.
Referenced by writeToOstream().
LLXMLNodePtr LLXMLNode::getNextSibling | ( | ) |
LLXMLNodePtr LLXMLNode::getRoot | ( | ) |
Definition at line 1238 of file llxmlnode.cpp.
References getRoot(), mParent, and NULL.
Referenced by createUnitTest(), getNodeRefValue(), and getRoot().
Definition at line 1094 of file llxmlnode.cpp.
References LLStringTable::checkStringEntry(), gStringTable, and mAttributes.
void LLXMLNode::setBoolValue | ( | const BOOL | value | ) | [inline] |
Definition at line 213 of file llxmlnode.h.
Referenced by createUnitTest().
Definition at line 214 of file llxmlnode.h.
Definition at line 215 of file llxmlnode.h.
Definition at line 216 of file llxmlnode.h.
Referenced by createUnitTest(), and setFloatValue().
Definition at line 217 of file llxmlnode.h.
Referenced by createUnitTest(), and setDoubleValue().
void LLXMLNode::setFloatValue | ( | const F32 | value, | |
Encoding | encoding = ENCODING_DEFAULT , |
|||
U32 | precision = 0 | |||
) | [inline] |
Definition at line 218 of file llxmlnode.h.
Referenced by createUnitTest().
void LLXMLNode::setDoubleValue | ( | const F64 | value, | |
Encoding | encoding = ENCODING_DEFAULT , |
|||
U32 | precision = 0 | |||
) | [inline] |
Definition at line 219 of file llxmlnode.h.
Referenced by createUnitTest().
void LLXMLNode::setStringValue | ( | const LLString | value | ) | [inline] |
Definition at line 220 of file llxmlnode.h.
Referenced by createUnitTest().
void LLXMLNode::setUUIDValue | ( | const LLUUID | value | ) | [inline] |
Definition at line 221 of file llxmlnode.h.
Referenced by createUnitTest().
void LLXMLNode::setNodeRefValue | ( | const LLXMLNode * | value | ) | [inline] |
Definition at line 222 of file llxmlnode.h.
Referenced by createUnitTest().
Definition at line 2014 of file llxmlnode.cpp.
References ENCODING_DEFAULT, llformat(), mEncoding, mLength, mType, mValue, and TYPE_BOOLEAN.
Definition at line 2037 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, llformat(), mEncoding, mLength, mPrecision, mType, mValue, and TYPE_INTEGER.
Definition at line 2080 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, llformat(), mEncoding, mLength, mPrecision, mType, mValue, and TYPE_INTEGER.
void LLXMLNode::setUnsignedValue | ( | U32 | length, | |
const U32 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 2127 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, llformat(), mEncoding, mLength, mPrecision, mType, mValue, and TYPE_INTEGER.
void LLXMLNode::setLongValue | ( | U32 | length, | |
const U64 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT | |||
) |
Definition at line 2176 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, llformat(), mEncoding, mLength, mPrecision, mType, mValue, PU64, and TYPE_INTEGER.
void LLXMLNode::setFloatValue | ( | U32 | length, | |
const F32 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT , |
|||
U32 | precision = 0 | |||
) |
Definition at line 2225 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, llformat(), mEncoding, mLength, mPrecision, mType, mValue, setUnsignedValue(), and TYPE_FLOAT.
void LLXMLNode::setDoubleValue | ( | U32 | length, | |
const F64 * | array, | |||
Encoding | encoding = ENCODING_DEFAULT , |
|||
U32 | precision = 0 | |||
) |
Definition at line 2276 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, llformat(), mEncoding, mLength, mPrecision, mType, mValue, setLongValue(), and TYPE_FLOAT.
Definition at line 2347 of file llxmlnode.cpp.
References ENCODING_DEFAULT, escapeXML(), mEncoding, mLength, mType, mValue, and TYPE_STRING.
Definition at line 2364 of file llxmlnode.cpp.
References ENCODING_DEFAULT, mEncoding, mLength, mType, mValue, and TYPE_UUID.
Definition at line 2381 of file llxmlnode.cpp.
References ENCODING_DEFAULT, mEncoding, mID, mLength, mType, mValue, and TYPE_NODEREF.
void LLXMLNode::setValue | ( | const LLString & | value | ) |
Definition at line 2405 of file llxmlnode.cpp.
References mType, mValue, TYPE_CONTAINER, and TYPE_UNKNOWN.
Referenced by EndXMLNode(), and XMLData().
void LLXMLNode::setName | ( | const LLString & | name | ) |
Definition at line 2494 of file llxmlnode.cpp.
References LLStringTable::addStringEntry(), and gStringTable.
void LLXMLNode::setName | ( | LLStringTableEntry * | name | ) |
Definition at line 2499 of file llxmlnode.cpp.
References addChild(), mName, mParent, and removeChild().
Definition at line 2328 of file llxmlnode.cpp.
References i.
Referenced by LLView::escapeXML(), setStringValue(), and writeToOstream().
void LLXMLNode::setDefault | ( | LLXMLNode * | default_node | ) |
Definition at line 2414 of file llxmlnode.cpp.
References mDefault.
Referenced by parseBuffer(), and parseStream().
void LLXMLNode::findDefault | ( | LLXMLNode * | defaults_list | ) |
Definition at line 2419 of file llxmlnode.cpp.
References getChildren(), mDefault, mName, LLStringTableEntry::mString, mVersionMajor, mVersionMinor, and NULL.
Referenced by updateDefault().
void LLXMLNode::updateDefault | ( | ) |
Definition at line 280 of file llxmlnode.cpp.
References findDefault(), LLPointer< Type >::isNull(), LLXMLChildren::map, mChildren, mDefault, mParent, and NULL.
Referenced by parseBuffer(), and parseStream().
void LLXMLNode::scrubToTree | ( | LLXMLNode * | tree | ) |
Definition at line 2442 of file llxmlnode.cpp.
References deleteChild(), FALSE, findName(), and TRUE.
BOOL LLXMLNode::deleteChildren | ( | LLStringTableEntry * | name | ) |
Definition at line 2464 of file llxmlnode.cpp.
References deleteChild(), FALSE, findName(), and TRUE.
void LLXMLNode::setAttributes | ( | LLXMLNode::ValueType | type, | |
U32 | precision, | |||
LLXMLNode::Encoding | encoding, | |||
U32 | length | |||
) |
Definition at line 2486 of file llxmlnode.cpp.
References mEncoding, mLength, mPrecision, and mType.
void LLXMLNode::appendValue | ( | const LLString & | value | ) |
void LLXMLNode::createUnitTest | ( | S32 | max_num_children | ) |
Definition at line 2565 of file llxmlnode.cpp.
References createChild(), createUnitTest(), ENCODING_DECIMAL, ENCODING_HEX, FALSE, LLUUID::generate(), get_rand(), get_rand_node(), getRoot(), LLUUID::mData, mID, mName, LLStringTableEntry::mString, S32, setBoolValue(), setDoubleValue(), setFloatValue(), setLongValue(), setNodeRefValue(), setStringValue(), setUnsignedValue(), setUUIDValue(), TRUE, and UUID_BYTES.
Referenced by createUnitTest().
Definition at line 2750 of file llxmlnode.cpp.
References LLUUID::asString(), ENCODING_HEX, FALSE, getAttribute(), getBoolValue(), getDoubleValue(), getFloatValue(), getLongValue(), getNodeRefValue(), getUnsignedValue(), getUUIDValue(), llformat(), LLXMLChildren::map, mChildren, LLUUID::mData, mEncoding, mIsAttribute, mLength, mName, mPrecision, LLStringTableEntry::mString, mType, performUnitTest(), S32, TRUE, TYPE_BOOLEAN, TYPE_CONTAINER, TYPE_FLOAT, TYPE_INTEGER, TYPE_NODEREF, TYPE_STRING, TYPE_UNKNOWN, TYPE_UUID, and UUID_BYTES.
Referenced by performUnitTest().
Definition at line 144 of file llxmlnode.cpp.
References FALSE, LLXMLChildren::head, LLXMLChildren::map, mAttributes, mChildren, mIsAttribute, mName, mNext, mParent, mPrev, LLPointer< Type >::notNull(), NULL, and TRUE.
Referenced by deleteChild(), and setName().
const char * LLXMLNode::skipWhitespace | ( | const char * | str | ) | [static, protected] |
Definition at line 1248 of file llxmlnode.cpp.
Referenced by getUUIDValue(), parseFloat(), and parseInteger().
const char * LLXMLNode::skipNonWhitespace | ( | const char * | str | ) | [static, protected] |
Definition at line 1256 of file llxmlnode.cpp.
Referenced by parseInteger().
const char * LLXMLNode::parseInteger | ( | const char * | str, | |
U64 * | dest, | |||
BOOL * | is_negative, | |||
U32 | precision, | |||
Encoding | encoding | |||
) | [static, protected] |
Definition at line 1264 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, FALSE, NULL, skipNonWhitespace(), skipWhitespace(), and TRUE.
Referenced by getByteValue(), getIntValue(), getLongValue(), getUnsignedValue(), and parseFloat().
const char * LLXMLNode::parseFloat | ( | const char * | str, | |
F64 * | dest, | |||
U32 | precision, | |||
Encoding | encoding | |||
) | [static, protected] |
Definition at line 1361 of file llxmlnode.cpp.
References ENCODING_DECIMAL, ENCODING_DEFAULT, ENCODING_HEX, float_coeff_table, float_coeff_table_2, NULL, parseInteger(), and skipWhitespace().
Referenced by getDoubleValue(), and getFloatValue().
BOOL LLXMLNode::isFullyDefault | ( | ) | [protected] |
Definition at line 704 of file llxmlnode.cpp.
References FALSE, LLPointer< Type >::isNull(), LLXMLChildren::map, mChildren, mDefault, mEncoding, mIsAttribute, mLength, mPrecision, mType, mValue, and TRUE.
Referenced by writeToFile(), and writeToOstream().
Definition at line 266 of file llxmlnode.h.
Referenced by createChild(), createUnitTest(), findID(), getID(), setNodeRefValue(), and writeToOstream().
XML_Parser* LLXMLNode::mParser |
Definition at line 270 of file llxmlnode.h.
Referenced by isFullyDefault(), performUnitTest(), and removeChild().
Definition at line 273 of file llxmlnode.h.
Referenced by getByteValue(), getDoubleValue(), getFloatValue(), getIntValue(), getLength(), getLongValue(), getStringValue(), getUnsignedValue(), isFullyDefault(), performUnitTest(), setAttributes(), setBoolValue(), setByteValue(), setDoubleValue(), setFloatValue(), setIntValue(), setLongValue(), setNodeRefValue(), setStringValue(), setUnsignedValue(), setUUIDValue(), and writeToOstream().
Definition at line 274 of file llxmlnode.h.
Referenced by getPrecision(), isFullyDefault(), performUnitTest(), setAttributes(), setByteValue(), setDoubleValue(), setFloatValue(), setIntValue(), setLongValue(), setUnsignedValue(), and writeToOstream().
Definition at line 275 of file llxmlnode.h.
Referenced by getBoolValue(), getByteValue(), getDoubleValue(), getFloatValue(), getIntValue(), getLongValue(), getNodeRefValue(), getType(), getUnsignedValue(), getUUIDValue(), isFullyDefault(), performUnitTest(), setAttributes(), setBoolValue(), setByteValue(), setDoubleValue(), setFloatValue(), setIntValue(), setLongValue(), setNodeRefValue(), setStringValue(), setUnsignedValue(), setUUIDValue(), setValue(), and writeToOstream().
Definition at line 276 of file llxmlnode.h.
Referenced by getByteValue(), getDoubleValue(), getFloatValue(), getIntValue(), getLongValue(), getUnsignedValue(), isFullyDefault(), performUnitTest(), setAttributes(), setBoolValue(), setByteValue(), setDoubleValue(), setFloatValue(), setIntValue(), setLongValue(), setNodeRefValue(), setStringValue(), setUnsignedValue(), setUUIDValue(), and writeToOstream().
Definition at line 278 of file llxmlnode.h.
Referenced by EndXMLNode(), getRoot(), removeChild(), setName(), setParent(), updateDefault(), and ~LLXMLNode().
Definition at line 279 of file llxmlnode.h.
Referenced by addChild(), findID(), findName(), get_rand_node(), getChild(), getChildCount(), getChildren(), getFirstChild(), isFullyDefault(), performUnitTest(), removeChild(), scrubToTree(), updateDefault(), writeToOstream(), and ~LLXMLNode().
Definition at line 280 of file llxmlnode.h.
Referenced by addChild(), getAttribute(), removeChild(), setAttributeString(), writeToOstream(), and ~LLXMLNode().
BOOL LLXMLNode::sStripEscapedStrings = TRUE [static] |
BOOL LLXMLNode::sStripWhitespaceValues = FALSE [static] |
LLStringTableEntry* LLXMLNode::mName [protected] |
Definition at line 288 of file llxmlnode.h.
Referenced by createUnitTest(), findDefault(), findID(), findName(), getBoolValue(), getByteValue(), getDoubleValue(), getFloatValue(), getIntValue(), getLongValue(), getName(), getStringValue(), getUnsignedValue(), getUUIDValue(), hasName(), isNull(), LLXMLNode(), performUnitTest(), removeChild(), setName(), and writeToOstream().
LLString LLXMLNode::mValue [protected] |
Definition at line 289 of file llxmlnode.h.
Referenced by appendValue(), getByteValue(), getDoubleValue(), getFloatValue(), getIntValue(), getLongValue(), getStringValue(), getTextContents(), getUnsignedValue(), getUUIDValue(), getValue(), isFullyDefault(), setBoolValue(), setByteValue(), setDoubleValue(), setFloatValue(), setIntValue(), setLongValue(), setNodeRefValue(), setStringValue(), setUnsignedValue(), setUUIDValue(), setValue(), and writeToOstream().
LLXMLNodePtr LLXMLNode::mDefault [protected] |
Definition at line 291 of file llxmlnode.h.
Referenced by findDefault(), getAttribute(), getChild(), getChildren(), isFullyDefault(), setDefault(), updateDefault(), writeToOstream(), and ~LLXMLNode().