LLNameValue Class Reference

#include <llnamevalue.h>

Collaboration diagram for LLNameValue:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void baseInit ()
void init (const char *name, const char *data, const char *type, const char *nvclass, const char *nvsendto, TNameValueCallback nvcb=NULL, void **user_data=NULL)
 LLNameValue ()
 LLNameValue (const char *data)
 LLNameValue (const char *name, const char *type, const char *nvclass, TNameValueCallback nvcb=NULL, void **user_data=NULL)
 LLNameValue (const char *name, const char *data, const char *type, const char *nvclass, TNameValueCallback nvcb=NULL, void **user_data=NULL)
 LLNameValue (const char *name, const char *data, const char *type, const char *nvclass, const char *nvsendto, TNameValueCallback nvcb=NULL, void **user_data=NULL)
 ~LLNameValue ()
char * getString ()
const char * getAsset () const
F32getF32 ()
S32getS32 ()
void getVec3 (LLVector3 &vec)
LLVector3getVec3 ()
F32 magnitude ()
U32getU32 ()
U64getU64 ()
const char * getType () const
const char * getClass () const
const char * getSendto () const
BOOL sendToData () const
BOOL sendToViewer () const
void callCallback ()
std::string printNameValue ()
std::string printData ()
ENameValueType getTypeEnum () const
ENameValueClass getClassEnum () const
ENameValueSendto getSendtoEnum () const
LLNameValueoperator= (const LLNameValue &a)
void setString (const char *a)
void setAsset (const char *a)
void setF32 (const F32 a)
void setS32 (const S32 a)
void setVec3 (const LLVector3 &a)
void setU32 (const U32 a)
BOOL nonzero ()

Public Attributes

char * mName
char * mStringType
ENameValueType mType
char * mStringClass
ENameValueClass mClass
char * mStringSendto
ENameValueSendto mSendto
UNameValueReference mNameValueReference
LLStringTablemNVNameTable
TNameValueCallback mNameValueCB
void ** mUserData

Private Member Functions

void printNameValue (std::ostream &s)

Friends

std::ostream & operator<< (std::ostream &s, const LLNameValue &a)
LLNameValueoperator+ (const LLNameValue &a, const LLNameValue &b)
LLNameValueoperator- (const LLNameValue &a, const LLNameValue &b)
LLNameValueoperator * (const LLNameValue &a, const LLNameValue &b)
LLNameValueoperator/ (const LLNameValue &a, const LLNameValue &b)
LLNameValueoperator% (const LLNameValue &a, const LLNameValue &b)
LLNameValueoperator * (const LLNameValue &a, F32 k)
LLNameValueoperator * (F32 k, const LLNameValue &a)
bool operator== (const LLNameValue &a, const LLNameValue &b)
bool operator<= (const LLNameValue &a, const LLNameValue &b)
bool operator>= (const LLNameValue &a, const LLNameValue &b)
bool operator< (const LLNameValue &a, const LLNameValue &b)
bool operator> (const LLNameValue &a, const LLNameValue &b)
bool operator!= (const LLNameValue &a, const LLNameValue &b)
LLNameValueoperator- (const LLNameValue &a)

Detailed Description

Definition at line 110 of file llnamevalue.h.


Constructor & Destructor Documentation

LLNameValue::LLNameValue (  ) 

Definition at line 108 of file llnamevalue.cpp.

References baseInit().

LLNameValue::LLNameValue ( const char *  data  ) 

Definition at line 419 of file llnamevalue.cpp.

References baseInit(), i, init(), NameValueClassStrings, NameValueSendtoStrings, NV_BUFFER_LEN, NVC_EOF, NVC_READ_ONLY, NVS_EOF, NVS_SIM, S32, and type.

LLNameValue::LLNameValue ( const char *  name,
const char *  type,
const char *  nvclass,
TNameValueCallback  nvcb = NULL,
void **  user_data = NULL 
)

Definition at line 346 of file llnamevalue.cpp.

References LLStringTable::addString(), baseInit(), u_name_value_reference::f32, llendl, llinfos, mClass, mName, mNameValueCB, mNameValueReference, mNVNameTable, mSendto, mStringClass, mStringSendto, mStringType, mType, mUserData, NameValueTypeStrings, NULL, NVC_READ_ONLY, NVC_READ_WRITE, NVS_SIM, NVT_ASSET, NVT_F32, NVT_NULL, NVT_S32, NVT_STRING, NVT_U32, NVT_U64, NVT_VEC3, u_name_value_reference::s32, u_name_value_reference::string, u_name_value_reference::u32, u_name_value_reference::u64, and u_name_value_reference::vec3.

LLNameValue::LLNameValue ( const char *  name,
const char *  data,
const char *  type,
const char *  nvclass,
TNameValueCallback  nvcb = NULL,
void **  user_data = NULL 
)

Definition at line 329 of file llnamevalue.cpp.

References baseInit(), and init().

LLNameValue::LLNameValue ( const char *  name,
const char *  data,
const char *  type,
const char *  nvclass,
const char *  nvsendto,
TNameValueCallback  nvcb = NULL,
void **  user_data = NULL 
)

Definition at line 337 of file llnamevalue.cpp.

References baseInit(), and init().

LLNameValue::~LLNameValue (  ) 

Definition at line 593 of file llnamevalue.cpp.

References u_name_value_reference::f32, mName, mNameValueReference, mNVNameTable, mType, NULL, NVT_ASSET, NVT_F32, NVT_S32, NVT_STRING, NVT_U32, NVT_U64, NVT_VEC3, LLStringTable::removeString(), u_name_value_reference::s32, u_name_value_reference::string, u_name_value_reference::u32, u_name_value_reference::u64, and u_name_value_reference::vec3.


Member Function Documentation

void LLNameValue::baseInit (  ) 

Definition at line 113 of file llnamevalue.cpp.

References gNVNameTable, mClass, mName, mNameValueCB, mNameValueReference, mNVNameTable, mSendto, mStringClass, mStringSendto, mStringType, mType, mUserData, NameValueClassStrings, NameValueSendtoStrings, NameValueTypeStrings, NULL, NVC_NULL, NVS_NULL, NVT_NULL, and u_name_value_reference::string.

Referenced by LLNameValue().

void LLNameValue::callCallback (  ) 

Definition at line 764 of file llnamevalue.cpp.

References llendl, llinfos, mName, mNameValueCB, and mUserData.

Referenced by operator=(), setAsset(), setF32(), setS32(), setString(), setU32(), and setVec3().

const char * LLNameValue::getAsset (  )  const

Definition at line 646 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NULL, NVT_ASSET, and u_name_value_reference::string.

Referenced by LLAssetInfo::setFromNameValue(), and tut::namevalue_test::verifyChange().

const char* LLNameValue::getClass (  )  const [inline]

Definition at line 139 of file llnamevalue.h.

References mStringClass.

ENameValueClass LLNameValue::getClassEnum (  )  const [inline]

Definition at line 150 of file llnamevalue.h.

References mClass.

F32 * LLNameValue::getF32 (  ) 

Definition at line 659 of file llnamevalue.cpp.

References u_name_value_reference::f32, llendl, llerrs, mName, mNameValueReference, mType, NULL, and NVT_F32.

Referenced by tut::namevalue_test::verifyChange().

S32 * LLNameValue::getS32 (  ) 

Definition at line 672 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NULL, NVT_S32, and u_name_value_reference::s32.

Referenced by tut::namevalue_test::verifyChange().

const char* LLNameValue::getSendto (  )  const [inline]

Definition at line 140 of file llnamevalue.h.

References mStringSendto.

ENameValueSendto LLNameValue::getSendtoEnum (  )  const [inline]

Definition at line 151 of file llnamevalue.h.

References mSendto.

char * LLNameValue::getString (  ) 

Definition at line 633 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NULL, NVT_STRING, and u_name_value_reference::string.

Referenced by LLViewerJointAttachment::addObject(), LLPanelGroupInvite::addUsers(), LLVOAvatar::dumpBakedStatus(), LLVOAvatar::getFullname(), LLFloaterReporter::getObjectInfo(), LLAvatarSendIM::handleEvent(), LLAvatarGiveCard::handleEvent(), LLObjectMute::handleEvent(), LLObjectEnableMute::handleEvent(), LLVOAvatar::idleUpdate(), process_offer_callingcard(), LLVOAvatar::renderSkinned(), request_friendship(), LLPanelAvatar::setAvatar(), LLHoverView::updateText(), LLVOAvatar::updateVisibility(), and tut::namevalue_test::verifyChange().

const char* LLNameValue::getType (  )  const [inline]

Definition at line 138 of file llnamevalue.h.

References mStringType.

ENameValueType LLNameValue::getTypeEnum (  )  const [inline]

Definition at line 149 of file llnamevalue.h.

References mType.

U32 * LLNameValue::getU32 (  ) 

Definition at line 685 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NULL, NVT_U32, and u_name_value_reference::u32.

Referenced by tut::namevalue_test::verifyChange().

U64 * LLNameValue::getU64 (  ) 

Definition at line 698 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NULL, NVT_U64, and u_name_value_reference::u64.

Referenced by tut::namevalue_test::verifyChange().

LLVector3 * LLNameValue::getVec3 (  ) 

Definition at line 723 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NULL, NVT_VEC3, and u_name_value_reference::vec3.

void LLNameValue::getVec3 ( LLVector3 vec  ) 

Definition at line 711 of file llnamevalue.cpp.

References llendl, llerrs, mName, mNameValueReference, mType, NVT_VEC3, and u_name_value_reference::vec3.

Referenced by tut::namevalue_test::verifyChange().

void LLNameValue::init ( const char *  name,
const char *  data,
const char *  type,
const char *  nvclass,
const char *  nvsendto,
TNameValueCallback  nvcb = NULL,
void **  user_data = NULL 
)

Definition at line 133 of file llnamevalue.cpp.

References LLStringTable::addString(), u_name_value_reference::f32, gNVNameTable, gUserCallbackMap, llendl, llfinite, llwarns, mClass, mName, mNameValueCB, mNameValueReference, mNVNameTable, mSendto, mStringClass, mStringSendto, mStringType, mType, mUserData, NameValueTypeStrings, NULL, NVC_CALLBACK, NVC_NULL, NVC_READ_ONLY, NVC_READ_WRITE, NVS_DATA_SIM, NVS_DATA_SIM_VIEWER, NVS_NULL, NVS_SIM, NVS_SIM_VIEWER, NVT_ASSET, NVT_F32, NVT_NULL, NVT_S32, NVT_STRING, NVT_U32, NVT_U64, NVT_VEC3, u_name_value_reference::s32, S32, str_to_U64(), u_name_value_reference::string, u_name_value_reference::u32, u_name_value_reference::u64, and u_name_value_reference::vec3.

Referenced by LLNameValue().

F32 LLNameValue::magnitude (  ) 

Definition at line 737 of file llnamevalue.cpp.

References u_name_value_reference::f32, llendl, llerrs, LLVector3::magVec(), mNameValueReference, mStringType, mType, NVT_F32, NVT_S32, NVT_STRING, NVT_U32, NVT_VEC3, u_name_value_reference::s32, u_name_value_reference::string, u_name_value_reference::u32, and u_name_value_reference::vec3.

BOOL LLNameValue::nonzero (  ) 

Definition at line 1120 of file llnamevalue.cpp.

References u_name_value_reference::f32, FALSE, llendl, llerrs, LLVector3::magVecSquared(), mNameValueReference, mStringType, mType, NVT_F32, NVT_S32, NVT_STRING, NVT_U32, NVT_VEC3, u_name_value_reference::s32, u_name_value_reference::string, u_name_value_reference::u32, and u_name_value_reference::vec3.

LLNameValue & LLNameValue::operator= ( const LLNameValue a  ) 

Definition at line 789 of file llnamevalue.cpp.

References a, callCallback(), u_name_value_reference::f32, FALSE, llendl, llerrs, mClass, mNameValueReference, mType, NULL, NVC_CALLBACK, NVC_READ_ONLY, NVT_ASSET, NVT_F32, NVT_S32, NVT_STRING, NVT_U32, NVT_U64, NVT_VEC3, u_name_value_reference::s32, u_name_value_reference::string, TRUE, u_name_value_reference::u32, u_name_value_reference::u64, and u_name_value_reference::vec3.

std::string LLNameValue::printData (  ) 

Definition at line 1152 of file llnamevalue.cpp.

References u_name_value_reference::f32, llendl, llerrs, llformat(), mNameValueReference, mStringType, mType, LLVector3::mV, NVT_ASSET, NVT_F32, NVT_S32, NVT_STRING, NVT_U32, NVT_U64, NVT_VEC3, u_name_value_reference::s32, u_name_value_reference::string, u_name_value_reference::u32, u_name_value_reference::u64, U64_BUFFER_LEN, U64_to_str(), u_name_value_reference::vec3, VX, VY, and VZ.

Referenced by LLAgent::getName(), and printNameValue().

void LLNameValue::printNameValue ( std::ostream &  s  )  [private]

std::string LLNameValue::printNameValue (  ) 

Definition at line 1143 of file llnamevalue.cpp.

References llformat(), mName, mStringClass, mStringSendto, mStringType, and printData().

BOOL LLNameValue::sendToData (  )  const

Definition at line 777 of file llnamevalue.cpp.

References mSendto, NVS_DATA_SIM, and NVS_DATA_SIM_VIEWER.

BOOL LLNameValue::sendToViewer (  )  const

Definition at line 783 of file llnamevalue.cpp.

References mSendto, NVS_DATA_SIM_VIEWER, and NVS_SIM_VIEWER.

void LLNameValue::setAsset ( const char *  a  ) 

Definition at line 901 of file llnamevalue.cpp.

References callCallback(), FALSE, mClass, mNameValueReference, mType, NULL, NVC_CALLBACK, NVC_READ_ONLY, NVT_ASSET, u_name_value_reference::string, and TRUE.

void LLNameValue::setF32 ( const F32  a  ) 

Definition at line 952 of file llnamevalue.cpp.

References callCallback(), u_name_value_reference::f32, FALSE, mClass, mNameValueReference, mType, NVC_CALLBACK, NVC_READ_ONLY, NVT_F32, and TRUE.

void LLNameValue::setS32 ( const S32  a  ) 

Definition at line 984 of file llnamevalue.cpp.

References callCallback(), u_name_value_reference::f32, FALSE, mClass, mNameValueReference, mType, NVC_CALLBACK, NVC_READ_ONLY, NVT_F32, NVT_S32, NVT_U32, S32, u_name_value_reference::s32, TRUE, and u_name_value_reference::u32.

void LLNameValue::setString ( const char *  a  ) 

Definition at line 846 of file llnamevalue.cpp.

References callCallback(), FALSE, mClass, mNameValueReference, mType, NULL, NVC_CALLBACK, NVC_READ_ONLY, NVT_STRING, u_name_value_reference::string, and TRUE.

void LLNameValue::setU32 ( const U32  a  ) 

Definition at line 1040 of file llnamevalue.cpp.

References callCallback(), u_name_value_reference::f32, FALSE, llendl, llerrs, mClass, mNameValueReference, mStringType, mType, NVC_CALLBACK, NVC_READ_ONLY, NVT_F32, NVT_S32, NVT_U32, u_name_value_reference::s32, S32, TRUE, and u_name_value_reference::u32.

void LLNameValue::setVec3 ( const LLVector3 a  ) 

Definition at line 1092 of file llnamevalue.cpp.

References a, callCallback(), FALSE, llendl, llerrs, mClass, mNameValueReference, mStringType, mType, NVC_CALLBACK, NVC_READ_ONLY, NVT_VEC3, TRUE, and u_name_value_reference::vec3.


Friends And Related Function Documentation

LLNameValue& operator * ( F32  k,
const LLNameValue a 
) [friend]

Definition at line 1705 of file llnamevalue.cpp.

LLNameValue& operator * ( const LLNameValue a,
F32  k 
) [friend]

Definition at line 1665 of file llnamevalue.cpp.

LLNameValue& operator * ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1426 of file llnamevalue.cpp.

bool operator!= ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 2061 of file llnamevalue.cpp.

LLNameValue& operator% ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1604 of file llnamevalue.cpp.

LLNameValue& operator+ ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1223 of file llnamevalue.cpp.

LLNameValue& operator- ( const LLNameValue a  )  [friend]

Definition at line 2129 of file llnamevalue.cpp.

LLNameValue& operator- ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1332 of file llnamevalue.cpp.

LLNameValue& operator/ ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1520 of file llnamevalue.cpp.

bool operator< ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1938 of file llnamevalue.cpp.

std::ostream& operator<< ( std::ostream &  s,
const LLNameValue a 
) [friend]

Definition at line 1187 of file llnamevalue.cpp.

bool operator<= ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1815 of file llnamevalue.cpp.

bool operator== ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1745 of file llnamevalue.cpp.

bool operator> ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 2000 of file llnamevalue.cpp.

bool operator>= ( const LLNameValue a,
const LLNameValue b 
) [friend]

Definition at line 1876 of file llnamevalue.cpp.


Member Data Documentation

ENameValueClass LLNameValue::mClass

Definition at line 191 of file llnamevalue.h.

Referenced by baseInit(), getClassEnum(), init(), LLNameValue(), operator=(), setAsset(), setF32(), setS32(), setString(), setU32(), and setVec3().

char* LLNameValue::mName

Definition at line 186 of file llnamevalue.h.

Referenced by LLViewerObject::addNVPair(), baseInit(), callCallback(), getAsset(), getF32(), getS32(), getString(), getU32(), getU64(), getVec3(), init(), LLNameValue(), printNameValue(), LLAssetInfo::setFromNameValue(), and ~LLNameValue().

TNameValueCallback LLNameValue::mNameValueCB

Definition at line 197 of file llnamevalue.h.

Referenced by baseInit(), callCallback(), init(), and LLNameValue().

UNameValueReference LLNameValue::mNameValueReference

Definition at line 195 of file llnamevalue.h.

Referenced by baseInit(), getAsset(), getF32(), getS32(), getString(), getU32(), getU64(), getVec3(), init(), LLNameValue(), magnitude(), nonzero(), operator *(), operator%(), operator+(), operator-(), operator/(), operator=(), printData(), setAsset(), setF32(), setS32(), setString(), setU32(), setVec3(), and ~LLNameValue().

LLStringTable* LLNameValue::mNVNameTable

Definition at line 196 of file llnamevalue.h.

Referenced by baseInit(), init(), LLNameValue(), and ~LLNameValue().

ENameValueSendto LLNameValue::mSendto

Definition at line 193 of file llnamevalue.h.

Referenced by baseInit(), getSendtoEnum(), init(), LLNameValue(), sendToData(), and sendToViewer().

char* LLNameValue::mStringClass

Definition at line 190 of file llnamevalue.h.

Referenced by baseInit(), getClass(), init(), LLNameValue(), and printNameValue().

char* LLNameValue::mStringSendto

Definition at line 192 of file llnamevalue.h.

Referenced by baseInit(), getSendto(), init(), LLNameValue(), and printNameValue().

char* LLNameValue::mStringType

Definition at line 188 of file llnamevalue.h.

Referenced by baseInit(), getType(), init(), LLNameValue(), magnitude(), nonzero(), operator *(), operator%(), operator+(), operator-(), operator/(), printData(), printNameValue(), setU32(), and setVec3().

ENameValueType LLNameValue::mType

Definition at line 189 of file llnamevalue.h.

Referenced by baseInit(), getAsset(), getF32(), getS32(), getString(), getTypeEnum(), getU32(), getU64(), getVec3(), init(), LLNameValue(), magnitude(), nonzero(), operator *(), operator%(), operator+(), operator-(), operator/(), operator=(), printData(), setAsset(), setF32(), setS32(), setString(), setU32(), setVec3(), and ~LLNameValue().

void** LLNameValue::mUserData

Definition at line 198 of file llnamevalue.h.

Referenced by baseInit(), callCallback(), init(), and LLNameValue().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:32 2010 for Second Life Viewer by  doxygen 1.4.7