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)
void set_std_string (const char *src, std::string &dest)
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-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 1955 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().

Here is the caller graph for this function:

const char * category_to_string ( LLParcel::ECategory  category  ) 

Definition at line 1930 of file llparcel.cpp.

References LLParcel::C_COUNT, PARCEL_CATEGORY_STRING, and S32.

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

Here is the caller graph for this function:

const char * category_to_ui_string ( LLParcel::ECategory  category  ) 

Definition at line 1940 of file llparcel.cpp.

References LLParcel::C_COUNT, PARCEL_CATEGORY_UI_STRING, and S32.

Referenced by LLParcel::getCategoryUIString().

Here is the caller graph for this function:

LLParcel::ECategory category_ui_string_to_category ( const char *  s  ) 

Definition at line 1968 of file llparcel.cpp.

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

Referenced by LLParcel::getCategoryFromUIString().

Here is the caller graph for this function:

const char * ownership_status_to_string ( LLParcel::EOwnershipStatus  status  ) 

Definition at line 1887 of file llparcel.cpp.

References LLParcel::OS_COUNT, and PARCEL_OWNERSHIP_STATUS_STRING.

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

Here is the caller graph for this function:

LLParcel::EOwnershipStatus ownership_string_to_status ( const char *  s  ) 

Definition at line 1896 of file llparcel.cpp.

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

Referenced by LLParcel::importStream().

Here is the caller graph for this function:

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

Definition at line 1656 of file llparcel.cpp.

References FALSE, LLAccessEntry::mID, and TRUE.

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

Here is the caller graph for this function:

void set_std_string ( const char *  src,
std::string &  dest 
)

Definition at line 271 of file llparcel.cpp.

Referenced by LLParcel::setMediaDesc(), and LLParcel::setMediaType().

Here is the caller graph for this function:


Variable Documentation

const U64 DEFAULT_USEC_CONVERSION_TIMEOUT = U64L(1814400000000)

Definition at line 113 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const U64 DEFAULT_USEC_SALE_TIMEOUT = U64L(172800000000)

Definition at line 123 of file llparcel.cpp.

Referenced by LLParcel::startSale().

Definition at line 132 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const U64 GROUP_USEC_CONVERSION_TIMEOUT = U64L(5184000000000)

Definition at line 118 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 97 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 61 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 78 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 51 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 128 of file llparcel.cpp.

Referenced by LLParcel::importStream().

const F32 SOME_BIG_NEG_NUMBER = -1000.0f [static]

Definition at line 50 of file llparcel.cpp.

Referenced by LLParcel::init().

const F32 SOME_BIG_NUMBER = 1000.0f [static]

Definition at line 49 of file llparcel.cpp.

Referenced by LLParcel::init().


Generated on Fri May 16 08:35:05 2008 for SecondLife by  doxygen 1.5.5