LLURLSimString Class Reference

#include <llurlsimstring.h>

Collaboration diagram for LLURLSimString:

Collaboration graph
[legend]
List of all members.

Public Types

 NOT_SET = 0
 NOT_PARSED = 1
 PARSE_OK = 2
 PARSE_FAIL = -1
enum  { NOT_SET = 0, NOT_PARSED = 1, PARSE_OK = 2, PARSE_FAIL = -1 }

Public Member Functions

 LLURLSimString ()

Static Public Member Functions

static void setString (const LLString &url)
static bool parse ()
static bool parse (const LLString &sim_string, std::string *region_name, S32 *x, S32 *y, S32 *z)
static std::string getURL ()
static std::string unescapeRegionName (std::string region_name)

Public Attributes

LLString mSimString
LLString mSimName
S32 mX
S32 mY
S32 mZ
S32 mParseState

Static Public Attributes

static LLURLSimString sInstance
static LLString sLocationStringHome
static LLString sLocationStringLast

Static Private Member Functions

static S32 parseGridIdx (const LLString &in_string, S32 idx0, S32 *res, S32 max)

Detailed Description

Definition at line 37 of file llurlsimstring.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NOT_SET 
NOT_PARSED 
PARSE_OK 
PARSE_FAIL 

Definition at line 40 of file llurlsimstring.h.


Constructor & Destructor Documentation

LLURLSimString::LLURLSimString (  )  [inline]

Definition at line 64 of file llurlsimstring.h.


Member Function Documentation

std::string LLURLSimString::getURL (  )  [static]

Definition at line 149 of file llurlsimstring.cpp.

References llformat(), mParseState, mSimName, mX, mY, mZ, PARSE_OK, and sInstance.

Referenced by LLStartUp::dispatchURL(), and main().

bool LLURLSimString::parse ( const LLString sim_string,
std::string *  region_name,
S32 x,
S32 y,
S32 z 
) [static]

Definition at line 122 of file llurlsimstring.cpp.

References parseGridIdx(), and unescapeRegionName().

bool LLURLSimString::parse (  )  [static]

Definition at line 97 of file llurlsimstring.cpp.

References mParseState, mSimName, mSimString, mX, mY, mZ, NOT_PARSED, NOT_SET, PARSE_FAIL, PARSE_OK, and sInstance.

Referenced by LLURLDispatcherImpl::dispatchRegion(), LLStartUp::dispatchURL(), idle_startup(), main(), and LLURLDispatcherImpl::regionHandleCallback().

S32 LLURLSimString::parseGridIdx ( const LLString in_string,
S32  idx0,
S32 res,
S32  max 
) [static, private]

Definition at line 77 of file llurlsimstring.cpp.

References llclamp(), and S32.

Referenced by parse().

void LLURLSimString::setString ( const LLString url  )  [static]

Definition at line 50 of file llurlsimstring.cpp.

References FALSE, gSavedSettings, mParseState, mSimName, mSimString, NOT_PARSED, LLPanelLogin::refreshLocation(), LLControlGroup::setBOOL(), sInstance, sLocationStringHome, sLocationStringLast, and TRUE.

Referenced by LLPanelGeneral::cancel(), LLURLDispatcherImpl::dispatchRegion(), idle_startup(), main(), and LLPanelGeneral::set_start_location().

std::string LLURLSimString::unescapeRegionName ( std::string  region_name  )  [static]

Definition at line 164 of file llurlsimstring.cpp.

Referenced by LLTeleportHandler::handle(), and parse().


Member Data Documentation

S32 LLURLSimString::mParseState

Definition at line 78 of file llurlsimstring.h.

Referenced by getURL(), parse(), and setString().

LLString LLURLSimString::mSimName

Definition at line 76 of file llurlsimstring.h.

Referenced by getURL(), idle_startup(), parse(), and setString().

LLString LLURLSimString::mSimString

Definition at line 75 of file llurlsimstring.h.

Referenced by LLPanelLogin::LLPanelLogin(), parse(), LLPanelGeneral::postBuild(), LLPanelLogin::refreshLocation(), setString(), and update_dialog_callback().

S32 LLURLSimString::mX

Definition at line 77 of file llurlsimstring.h.

Referenced by getURL(), idle_startup(), and parse().

S32 LLURLSimString::mY

Definition at line 77 of file llurlsimstring.h.

Referenced by getURL(), idle_startup(), and parse().

S32 LLURLSimString::mZ

Definition at line 77 of file llurlsimstring.h.

Referenced by getURL(), idle_startup(), and parse().

LLURLSimString LLURLSimString::sInstance [static]

Definition at line 70 of file llurlsimstring.h.

Referenced by LLStartUp::dispatchURL(), getURL(), idle_startup(), LLPanelLogin::LLPanelLogin(), parse(), LLPanelGeneral::postBuild(), LLPanelGeneral::refresh(), LLPanelLogin::refreshLocation(), setString(), and update_dialog_callback().

LLString LLURLSimString::sLocationStringHome [static]

Definition at line 71 of file llurlsimstring.h.

Referenced by setString().

LLString LLURLSimString::sLocationStringLast [static]

Definition at line 72 of file llurlsimstring.h.

Referenced by setString().


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