llparcel.cpp File Reference

A land parcel. More...

#include "linden_common.h"
#include "indra_constants.h"
#include <iostream>
#include "llparcel.h"
#include "llstreamtools.h"
#include "llmath.h"
#include "llsd.h"
#include "llsdutil.h"
#include "lltransactiontypes.h"
#include "lltransactionflags.h"
#include "message.h"
#include "u64.h"

Include dependency graph for llparcel.cpp:

Go to the source code of this file.

Functions

const char * ownership_status_to_string (LLParcel::EOwnershipStatus status)
LLParcel::EOwnershipStatus ownership_string_to_status (const char *s)
const char * category_to_string (LLParcel::ECategory category)
const char * category_to_ui_string (LLParcel::ECategory category)
LLParcel::ECategory category_string_to_category (const char *s)
LLParcel::ECategory category_ui_string_to_category (const char *s)
BOOL remove_from_access_array (std::map< LLUUID, LLAccessEntry > *list, const LLUUID &agent_id)

Variables

static const F32 SOME_BIG_NUMBER = 1000.0f
static const F32 SOME_BIG_NEG_NUMBER = -1000.0f
static const char * PARCEL_OWNERSHIP_STATUS_STRING [LLParcel::OS_COUNT]
static const char * PARCEL_CATEGORY_STRING [LLParcel::C_COUNT]
static const char * PARCEL_CATEGORY_UI_STRING [LLParcel::C_COUNT+1]
static const char * PARCEL_ACTION_STRING [LLParcel::A_COUNT+1]
const U64 DEFAULT_USEC_CONVERSION_TIMEOUT = U64L(1814400000000)
const U64 GROUP_USEC_CONVERSION_TIMEOUT = U64L(5184000000000)
const U64 DEFAULT_USEC_SALE_TIMEOUT = U64L(172800000000)
const U64 SEVEN_DAYS_IN_USEC = U64L(604800000000)
const S32 EXTEND_GRACE_IF_MORE_THAN_SEC = 100000


Detailed Description

A land parcel.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-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 llparcel.cpp.


Function Documentation

LLParcel::ECategory category_string_to_category ( const char *  s  ) 

Definition at line 1800 of file llparcel.cpp.

References LLParcel::C_COUNT, LLParcel::C_NONE, i, llendl, llwarns, PARCEL_CATEGORY_STRING, and S32.

Referenced by LLParcel::getCategoryFromString(), and LLParcel::importStream().

const char * category_to_string ( LLParcel::ECategory  category  ) 

Definition at line 1775 of file llparcel.cpp.

References LLParcel::C_COUNT, PARCEL_CATEGORY_STRING, and S32.

Referenced by LLParcel::exportStream(), and LLParcel::getCategoryString().

const char * category_to_ui_string ( LLParcel::ECategory  category  ) 

Definition at line 1785 of file llparcel.cpp.

References LLParcel::C_COUNT, PARCEL_CATEGORY_UI_STRING, and S32.

Referenced by LLParcel::getCategoryUIString().

LLParcel::ECategory category_ui_string_to_category ( const char *  s  ) 

Definition at line 1813 of file llparcel.cpp.

References LLParcel::C_ANY, LLParcel::C_COUNT, i, PARCEL_CATEGORY_UI_STRING, and S32.

Referenced by LLParcel::getCategoryFromUIString().

const char * ownership_status_to_string ( LLParcel::EOwnershipStatus  status  ) 

Definition at line 1732 of file llparcel.cpp.

References LLParcel::OS_COUNT, and PARCEL_OWNERSHIP_STATUS_STRING.

Referenced by LLParcel::exportStream(), and LLParcel::getOwnershipStatusString().

LLParcel::EOwnershipStatus ownership_string_to_status ( const char *  s  ) 

Definition at line 1741 of file llparcel.cpp.

References i, LLParcel::OS_COUNT, LLParcel::OS_NONE, PARCEL_OWNERSHIP_STATUS_STRING, and S32.

Referenced by LLParcel::importStream().

BOOL remove_from_access_array ( std::map< LLUUID, LLAccessEntry > *  list,
const LLUUID agent_id 
)

Definition at line 1507 of file llparcel.cpp.

References FALSE, and TRUE.

Referenced by LLParcel::removeFromAccessList(), and LLParcel::removeFromBanList().


Variable Documentation

const U64 DEFAULT_USEC_CONVERSION_TIMEOUT = U64L(1814400000000)

Definition at line 112 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const U64 DEFAULT_USEC_SALE_TIMEOUT = U64L(172800000000)

Definition at line 122 of file llparcel.cpp.

Referenced by LLParcel::startSale().

const S32 EXTEND_GRACE_IF_MORE_THAN_SEC = 100000

Definition at line 131 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const U64 GROUP_USEC_CONVERSION_TIMEOUT = U64L(5184000000000)

Definition at line 117 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const char* PARCEL_ACTION_STRING[LLParcel::A_COUNT+1] [static]

Initial value:

{
        "create",
        "release",
        "absorb",
        "absorbed",
        "divide",
        "division",
        "acquire",
        "relinquish",
        "confirm",
        "unknown"
}

Definition at line 96 of file llparcel.cpp.

Referenced by LLParcel::getActionString().

const char* PARCEL_CATEGORY_STRING[LLParcel::C_COUNT] [static]

Initial value:

{
        "none",
        "linden",
        "adult",
        "arts",
        "store",        
        "educational",
        "game",         
        "gather",       
        "newcomer",
        "park",
        "home",         
        "shopping",
        "stage",
        "other",
}

Definition at line 60 of file llparcel.cpp.

Referenced by category_string_to_category(), and category_to_string().

const char* PARCEL_CATEGORY_UI_STRING[LLParcel::C_COUNT+1] [static]

Initial value:

{
        "None",
        "Linden Location",
        "Adult",
        "Arts & Culture",
        "Business",
        "Educational",
        "Gaming",
        "Hangout",
        "Newcomer Friendly",
        "Parks & Nature",
        "Residential",
        "Shopping",
        "Stage",
        "Other",
        "Any",          
}

Definition at line 77 of file llparcel.cpp.

Referenced by category_to_ui_string(), and category_ui_string_to_category().

const char* PARCEL_OWNERSHIP_STATUS_STRING[LLParcel::OS_COUNT] [static]

Initial value:

{
        "leased",
        "lease_pending",
        "abandoned"
}

Definition at line 50 of file llparcel.cpp.

Referenced by ownership_status_to_string(), and ownership_string_to_status().

const U64 SEVEN_DAYS_IN_USEC = U64L(604800000000)

Definition at line 127 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const F32 SOME_BIG_NEG_NUMBER = -1000.0f [static]

Definition at line 49 of file llparcel.cpp.

Referenced by LLParcel::init().

const F32 SOME_BIG_NUMBER = 1000.0f [static]

Definition at line 48 of file llparcel.cpp.

Referenced by LLParcel::init().


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