LLSaleInfo Class Reference

#include <llsaleinfo.h>

Collaboration diagram for LLSaleInfo:

Collaboration graph
[legend]

List of all members.

Public Types

enum  EForSale {
  FS_NOT = 0, FS_ORIGINAL = 1, FS_COPY = 2, FS_CONTENTS = 3,
  FS_COUNT
}

Public Member Functions

 LLSaleInfo ()
 LLSaleInfo (EForSale sale_type, S32 sale_price)
BOOL isForSale () const
EForSale getSaleType () const
S32 getSalePrice () const
U32 getCRC32 () const
void setSaleType (EForSale type)
void setSalePrice (S32 price)
BOOL exportFile (LLFILE *fp) const
BOOL importFile (LLFILE *fp, BOOL &has_perm_mask, U32 &perm_mask)
BOOL exportLegacyStream (std::ostream &output_stream) const
LLSD asLLSD () const
 operator LLSD () const
bool fromLLSD (LLSD &sd, BOOL &has_perm_mask, U32 &perm_mask)
BOOL importLegacyStream (std::istream &input_stream, BOOL &has_perm_mask, U32 &perm_mask)
LLXMLNodeexportFileXML () const
BOOL importXML (LLXMLNode *node)
LLSD packMessage () const
void unpackMessage (LLSD sales)
void packMessage (LLMessageSystem *msg) const
void unpackMessage (LLMessageSystem *msg, const char *block)
void unpackMultiMessage (LLMessageSystem *msg, const char *block, S32 block_num)
void accumulate (const LLSaleInfo &sale_info)
bool operator== (const LLSaleInfo &rhs) const
bool operator!= (const LLSaleInfo &rhs) const

Static Public Member Functions

static EForSale lookup (const char *name)
static const char * lookup (EForSale type)

Static Public Attributes

static const LLSaleInfo DEFAULT

Protected Attributes

EForSale mSaleType
S32 mSalePrice


Detailed Description

Definition at line 48 of file llsaleinfo.h.


Member Enumeration Documentation

Enumerator:
FS_NOT 
FS_ORIGINAL 
FS_COPY 
FS_CONTENTS 
FS_COUNT 

Definition at line 54 of file llsaleinfo.h.


Constructor & Destructor Documentation

LLSaleInfo::LLSaleInfo (  ) 

---------------------------------------------------------------------------- Class llsaleinfo ----------------------------------------------------------------------------

Definition at line 61 of file llsaleinfo.cpp.

LLSaleInfo::LLSaleInfo ( EForSale  sale_type,
S32  sale_price 
)

Definition at line 67 of file llsaleinfo.cpp.

References llclamp(), mSalePrice, and S32_MAX.

Here is the call graph for this function:


Member Function Documentation

BOOL LLSaleInfo::isForSale (  )  const

EForSale LLSaleInfo::getSaleType (  )  const [inline]

S32 LLSaleInfo::getSalePrice (  )  const [inline]

U32 LLSaleInfo::getCRC32 (  )  const

Definition at line 79 of file llsaleinfo.cpp.

References mSalePrice, and mSaleType.

Referenced by LLInventoryItem::getCRC32().

Here is the caller graph for this function:

void LLSaleInfo::setSaleType ( EForSale  type  )  [inline]

Definition at line 88 of file llsaleinfo.h.

References mSaleType.

Referenced by ll_sale_info_from_sd().

Here is the caller graph for this function:

void LLSaleInfo::setSalePrice ( S32  price  ) 

Definition at line 277 of file llsaleinfo.cpp.

References llclamp(), mSalePrice, and S32_MAX.

Referenced by ll_sale_info_from_sd().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSaleInfo::exportFile ( LLFILE fp  )  const

Definition at line 87 of file llsaleinfo.cpp.

References lookup(), mSalePrice, mSaleType, and TRUE.

Referenced by LLWearable::exportFile(), and LLInventoryItem::exportFile().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSaleInfo::importFile ( LLFILE fp,
BOOL has_perm_mask,
U32 perm_mask 
)

Definition at line 161 of file llsaleinfo.cpp.

References FALSE, llclamp(), llendl, llwarns, lookup(), MAX_STRING, mSalePrice, mSaleType, NULL, S32_MAX, and TRUE.

Referenced by LLWearable::importFile(), and LLInventoryItem::importFile().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSaleInfo::exportLegacyStream ( std::ostream &  output_stream  )  const

Definition at line 96 of file llsaleinfo.cpp.

References lookup(), mSalePrice, mSaleType, and TRUE.

Referenced by LLInventoryItem::exportLegacyStream().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLSaleInfo::asLLSD (  )  const

Definition at line 105 of file llsaleinfo.cpp.

References lookup(), mSalePrice, mSaleType, and tut::sd().

Referenced by operator LLSD().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSaleInfo::operator LLSD (  )  const [inline]

Definition at line 99 of file llsaleinfo.h.

References asLLSD().

Here is the call graph for this function:

bool LLSaleInfo::fromLLSD ( LLSD sd,
BOOL has_perm_mask,
U32 perm_mask 
)

Definition at line 113 of file llsaleinfo.cpp.

References LLSD::has(), ll_U32_from_sd(), llclamp(), lookup(), mSalePrice, mSaleType, S32_MAX, and TRUE.

Referenced by LLInventoryItem::fromLLSD().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSaleInfo::importLegacyStream ( std::istream &  input_stream,
BOOL has_perm_mask,
U32 perm_mask 
)

Definition at line 221 of file llsaleinfo.cpp.

References FALSE, llclamp(), llendl, llwarns, lookup(), MAX_STRING, mSalePrice, mSaleType, S32_MAX, and TRUE.

Referenced by LLInventoryItem::importLegacyStream().

Here is the call graph for this function:

Here is the caller graph for this function:

LLXMLNode * LLSaleInfo::exportFileXML (  )  const

Definition at line 128 of file llsaleinfo.cpp.

References LLXMLNode::createChild(), FALSE, lookup(), mSalePrice, mSaleType, and TRUE.

Referenced by LLInventoryItem::exportFileXML().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSaleInfo::importXML ( LLXMLNode node  ) 

Definition at line 137 of file llsaleinfo.cpp.

References FALSE, LLXMLNode::getChild(), LLXMLNode::getName(), lldebugs, llendl, lookup(), mSalePrice, mSaleType, and TRUE.

Referenced by LLInventoryItem::importXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLSaleInfo::packMessage (  )  const

Definition at line 283 of file llsaleinfo.cpp.

References mSalePrice, mSaleType, and S32.

Referenced by LLViewerInventoryItem::packMessage(), LLInventoryItem::packMessage(), and LLSelectMgr::packObjectSaleInfo().

Here is the caller graph for this function:

void LLSaleInfo::unpackMessage ( LLSD  sales  ) 

Definition at line 302 of file llsaleinfo.cpp.

References llclamp(), mSalePrice, mSaleType, S32, and S32_MAX.

Referenced by LLSelectMgr::processObjectPropertiesFamily().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSaleInfo::packMessage ( LLMessageSystem msg  )  const

Definition at line 294 of file llsaleinfo.cpp.

References _PREHASH_SalePrice, _PREHASH_SaleType, LLMessageSystem::addS32Fast(), LLMessageSystem::addU8Fast(), mSalePrice, and mSaleType.

Here is the call graph for this function:

void LLSaleInfo::unpackMessage ( LLMessageSystem msg,
const char *  block 
)

Definition at line 312 of file llsaleinfo.cpp.

References _PREHASH_SalePrice, _PREHASH_SaleType, LLMessageSystem::getS32Fast(), LLMessageSystem::getU8Fast(), llclamp(), mSalePrice, mSaleType, and S32_MAX.

Here is the call graph for this function:

void LLSaleInfo::unpackMultiMessage ( LLMessageSystem msg,
const char *  block,
S32  block_num 
)

Definition at line 322 of file llsaleinfo.cpp.

References _PREHASH_SalePrice, _PREHASH_SaleType, LLMessageSystem::getS32Fast(), LLMessageSystem::getU8Fast(), llclamp(), mSalePrice, mSaleType, and S32_MAX.

Referenced by LLSelectMgr::processObjectProperties(), and LLInventoryItem::unpackMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSaleInfo::EForSale LLSaleInfo::lookup ( const char *  name  )  [static]

const char * LLSaleInfo::lookup ( EForSale  type  )  [static]

Definition at line 346 of file llsaleinfo.cpp.

References FOR_SALE_NAMES, FS_COUNT, NULL, and S32.

void LLSaleInfo::accumulate ( const LLSaleInfo sale_info  ) 

Definition at line 361 of file llsaleinfo.cpp.

References FS_NOT, mSalePrice, and mSaleType.

Referenced by LLSelectMgr::selectGetSaleInfo().

Here is the caller graph for this function:

bool LLSaleInfo::operator== ( const LLSaleInfo rhs  )  const

Definition at line 371 of file llsaleinfo.cpp.

References mSalePrice, and mSaleType.

bool LLSaleInfo::operator!= ( const LLSaleInfo rhs  )  const

Definition at line 379 of file llsaleinfo.cpp.

References mSalePrice, and mSaleType.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:01:41 2008 for SecondLife by  doxygen 1.5.5