llxmlnode.cpp File Reference

LLXMLNode implementation. More...

#include "linden_common.h"
#include <iostream>
#include <map>
#include "llxmlnode.h"
#include "v3color.h"
#include "v4color.h"
#include "v4coloru.h"
#include "v3math.h"
#include "v3dmath.h"
#include "v4math.h"
#include "llquaternion.h"
#include "llstring.h"
#include "lluuid.h"

Include dependency graph for llxmlnode.cpp:

Go to the source code of this file.

Defines

#define PU64   "llu"

Functions

void XMLCALL StartXMLNode (void *userData, const XML_Char *name, const XML_Char **atts)
void XMLCALL EndXMLNode (void *userData, const XML_Char *name)
void XMLCALL XMLData (void *userData, const XML_Char *s, int len)
U32 get_rand (U32 max_value)
LLXMLNodeget_rand_node (LLXMLNode *node)

Variables

const S32 MAX_COLUMN_WIDTH = 80
const U64 float_coeff_table []
const U64 float_coeff_table_2 []


Detailed Description

LLXMLNode implementation.

Author:
Tom Yedwab
LicenseInfo
firstyear=2005&license=viewergpl

Copyright (c) 2005-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llxmlnode.cpp.


Define Documentation

#define PU64   "llu"

Definition at line 2173 of file llxmlnode.cpp.

Referenced by LLXMLNode::setLongValue().


Function Documentation

void XMLCALL EndXMLNode ( void userData,
const XML_Char *  name 
)

Definition at line 429 of file llxmlnode.cpp.

References c, FALSE, LLXMLNode::getValue(), LLXMLNode::mParent, LLXMLNode::mParser, s, LLXMLNode::setValue(), LLXMLNode::sStripWhitespaceValues, and TRUE.

Referenced by LLXMLNode::parseBuffer(), and LLXMLNode::parseStream().

U32 get_rand ( U32  max_value  ) 

Definition at line 2533 of file llxmlnode.cpp.

Referenced by LLXMLNode::createUnitTest(), and get_rand_node().

LLXMLNode* get_rand_node ( LLXMLNode node  ) 

Definition at line 2539 of file llxmlnode.cpp.

References get_rand(), LLXMLChildren::map, LLXMLNode::mChildren, and S32.

Referenced by LLXMLNode::createUnitTest().

void XMLCALL StartXMLNode ( void userData,
const XML_Char *  name,
const XML_Char **  atts 
)

Definition at line 305 of file llxmlnode.cpp.

References LLXMLNode::addChild(), LLXMLNode::ENCODING_DECIMAL, LLXMLNode::ENCODING_HEX, FALSE, llendl, llwarns, LLXMLNode::mParser, NULL, TRUE, LLXMLNode::TYPE_BOOLEAN, LLXMLNode::TYPE_FLOAT, LLXMLNode::TYPE_INTEGER, LLXMLNode::TYPE_NODEREF, LLXMLNode::TYPE_STRING, and LLXMLNode::TYPE_UUID.

Referenced by LLXMLNode::parseBuffer(), and LLXMLNode::parseStream().

void XMLCALL XMLData ( void userData,
const XML_Char *  s,
int  len 
)

Definition at line 458 of file llxmlnode.cpp.

References LLXMLNode::getValue(), S32, LLXMLNode::setValue(), and LLXMLNode::sStripEscapedStrings.

Referenced by LLXMLNode::parseBuffer(), and LLXMLNode::parseStream().


Variable Documentation

const U64 float_coeff_table[]

Initial value:

 
        { 5, 25, 125, 625, 3125, 
          15625, 78125, 390625, 1953125, 9765625,
          48828125, 244140625, 1220703125, 6103515625LL, 30517578125LL,
          152587890625LL, 762939453125LL, 3814697265625LL, 19073486328125LL, 95367431640625LL,
          476837158203125LL, 2384185791015625LL, 11920928955078125LL, 59604644775390625LL, 298023223876953125LL }

Definition at line 1338 of file llxmlnode.cpp.

Referenced by LLXMLNode::parseFloat().

const U64 float_coeff_table_2[]

Initial value:

        {  149011611938476562LL,74505805969238281LL,
           37252902984619140LL, 18626451492309570LL, 9313225746154785LL, 4656612873077392LL,
           2328306436538696LL,  1164153218269348LL,  582076609134674LL,  291038304567337LL,
           145519152283668LL,   72759576141834LL,    36379788070917LL,   18189894035458LL,
           9094947017729LL,     4547473508864LL,     2273736754432LL,    1136868377216LL,
           568434188608LL,      284217094304LL,      142108547152LL,     71054273576LL,
           35527136788LL,       17763568394LL,       8881784197LL,       4440892098LL,
           2220446049LL,        1110223024LL,        555111512LL,        277555756LL,
           138777878,         69388939,          34694469,         17347234,
           8673617,           4336808,           2168404,          1084202,
           542101,            271050,            135525,           67762,
        }

Definition at line 1346 of file llxmlnode.cpp.

Referenced by LLXMLNode::parseFloat().

const S32 MAX_COLUMN_WIDTH = 80

Definition at line 50 of file llxmlnode.cpp.

Referenced by LLXMLNode::writeToOstream().


Generated on Thu Jul 1 06:10:52 2010 for Second Life Viewer by  doxygen 1.4.7