llnamevalue.h File Reference

class for defining name value pairs. More...

#include "string_table.h"
#include "llskipmap.h"
#include "llmath.h"
#include "v3math.h"
#include "lldbstrings.h"

Include dependency graph for llnamevalue.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  u_name_value_reference
class  LLNameValue

Typedefs

typedef void(*) TNameValueCallback (LLNameValue *changed, void **user_data)
typedef enum e_name_value_types ENameValueType
typedef enum e_name_value_class ENameValueClass
typedef enum e_name_value_sento ENameValueSendto
typedef u_name_value_reference UNameValueReference

Enumerations

enum  e_name_value_types {
  NVT_NULL, NVT_STRING, NVT_F32, NVT_S32,
  NVT_VEC3, NVT_U32, NVT_CAMERA, NVT_ASSET,
  NVT_U64, NVT_EOF
}
enum  e_name_value_class {
  NVC_NULL, NVC_READ_ONLY, NVC_READ_WRITE, NVC_CALLBACK,
  NVC_EOF
}
enum  e_name_value_sento {
  NVS_NULL, NVS_SIM, NVS_DATA_SIM, NVS_SIM_VIEWER,
  NVS_DATA_SIM_VIEWER, NVS_EOF
}

Functions

void add_use_callback (char *name, TNameValueCallback ucb, void **user_data)

Variables

const U32 NAME_VALUE_BUF_SIZE = 1024
const U32 NAME_VALUE_TYPE_STRING_LENGTH = 8
const U32 NAME_VALUE_CLASS_STRING_LENGTH = 16
const U32 NAME_VALUE_SENDTO_STRING_LENGTH = 18
const U32 NAME_VALUE_DATA_SIZE
char NameValueTypeStrings [NVT_EOF][NAME_VALUE_TYPE_STRING_LENGTH]
char NameValueClassStrings [NVC_EOF][NAME_VALUE_CLASS_STRING_LENGTH]
char NameValueSendtoStrings [NVS_EOF][NAME_VALUE_SENDTO_STRING_LENGTH]
LLStringTable gNVNameTable


Detailed Description

class for defining name value pairs.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-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 llnamevalue.h.


Typedef Documentation

typedef enum e_name_value_class ENameValueClass

typedef enum e_name_value_sento ENameValueSendto

typedef enum e_name_value_types ENameValueType

typedef void(*) TNameValueCallback(LLNameValue *changed, void **user_data)

Definition at line 42 of file llnamevalue.h.

typedef union u_name_value_reference UNameValueReference


Enumeration Type Documentation

enum e_name_value_class

Enumerator:
NVC_NULL 
NVC_READ_ONLY 
NVC_READ_WRITE 
NVC_CALLBACK 
NVC_EOF 

Definition at line 60 of file llnamevalue.h.

enum e_name_value_sento

Enumerator:
NVS_NULL 
NVS_SIM 
NVS_DATA_SIM 
NVS_SIM_VIEWER 
NVS_DATA_SIM_VIEWER 
NVS_EOF 

Definition at line 69 of file llnamevalue.h.

enum e_name_value_types

Enumerator:
NVT_NULL 
NVT_STRING 
NVT_F32 
NVT_S32 
NVT_VEC3 
NVT_U32 
NVT_CAMERA 
NVT_ASSET 
NVT_U64 
NVT_EOF 

Definition at line 46 of file llnamevalue.h.


Function Documentation

void add_use_callback ( char *  name,
TNameValueCallback  ucb,
void **  user_data 
)

Definition at line 97 of file llnamevalue.cpp.

References LLStringTable::addString(), gNVNameTable, and gUserCallbackMap.


Variable Documentation

LLStringTable gNVNameTable

Referenced by add_use_callback(), LLNameValue::baseInit(), LLViewerObject::getNVPair(), LLNameValue::init(), and LLViewerObject::removeNVPair().

const U32 NAME_VALUE_BUF_SIZE = 1024

Definition at line 81 of file llnamevalue.h.

Referenced by process_name_value(), and process_remove_name_value().

const U32 NAME_VALUE_CLASS_STRING_LENGTH = 16

Definition at line 85 of file llnamevalue.h.

const U32 NAME_VALUE_DATA_SIZE

Initial value:

Definition at line 87 of file llnamevalue.h.

const U32 NAME_VALUE_SENDTO_STRING_LENGTH = 18

Definition at line 86 of file llnamevalue.h.

const U32 NAME_VALUE_TYPE_STRING_LENGTH = 8

Definition at line 84 of file llnamevalue.h.

char NameValueClassStrings[NVC_EOF][NAME_VALUE_CLASS_STRING_LENGTH]

Definition at line 79 of file llnamevalue.cpp.

Referenced by LLNameValue::baseInit(), and LLNameValue::LLNameValue().

char NameValueSendtoStrings[NVS_EOF][NAME_VALUE_SENDTO_STRING_LENGTH]

Definition at line 87 of file llnamevalue.cpp.

Referenced by LLNameValue::baseInit(), and LLNameValue::LLNameValue().

char NameValueTypeStrings[NVT_EOF][NAME_VALUE_TYPE_STRING_LENGTH]

Definition at line 66 of file llnamevalue.cpp.

Referenced by LLNameValue::baseInit(), LLNameValue::init(), LLNameValue::LLNameValue(), operator *(), operator%(), operator+(), operator-(), operator/(), and tut::namevalue_test::verifyChange().


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