#include <lldatapacker.h>
Inheritance diagram for LLDataPacker:
Public Member Functions | |
virtual | ~LLDataPacker () |
virtual void | reset () |
virtual void | dumpBufferToLog () |
virtual BOOL | hasNext () const =0 |
virtual BOOL | packString (const char *value, const char *name)=0 |
virtual BOOL | unpackString (std::string &value, const char *name)=0 |
virtual BOOL | packBinaryData (const U8 *value, S32 size, const char *name)=0 |
virtual BOOL | unpackBinaryData (U8 *value, S32 &size, const char *name)=0 |
virtual BOOL | packBinaryDataFixed (const U8 *value, S32 size, const char *name)=0 |
virtual BOOL | unpackBinaryDataFixed (U8 *value, S32 size, const char *name)=0 |
virtual BOOL | packU8 (const U8 value, const char *name)=0 |
virtual BOOL | unpackU8 (U8 &value, const char *name)=0 |
virtual BOOL | packU16 (const U16 value, const char *name)=0 |
virtual BOOL | unpackU16 (U16 &value, const char *name)=0 |
virtual BOOL | packU32 (const U32 value, const char *name)=0 |
virtual BOOL | unpackU32 (U32 &value, const char *name)=0 |
virtual BOOL | packS32 (const S32 value, const char *name)=0 |
virtual BOOL | unpackS32 (S32 &value, const char *name)=0 |
virtual BOOL | packF32 (const F32 value, const char *name)=0 |
virtual BOOL | unpackF32 (F32 &value, const char *name)=0 |
BOOL | packFixed (const F32 value, const char *name, const BOOL is_signed, const U32 int_bits, const U32 frac_bits) |
BOOL | unpackFixed (F32 &value, const char *name, const BOOL is_signed, const U32 int_bits, const U32 frac_bits) |
virtual BOOL | packColor4 (const LLColor4 &value, const char *name)=0 |
virtual BOOL | unpackColor4 (LLColor4 &value, const char *name)=0 |
virtual BOOL | packColor4U (const LLColor4U &value, const char *name)=0 |
virtual BOOL | unpackColor4U (LLColor4U &value, const char *name)=0 |
virtual BOOL | packVector2 (const LLVector2 &value, const char *name)=0 |
virtual BOOL | unpackVector2 (LLVector2 &value, const char *name)=0 |
virtual BOOL | packVector3 (const LLVector3 &value, const char *name)=0 |
virtual BOOL | unpackVector3 (LLVector3 &value, const char *name)=0 |
virtual BOOL | packVector4 (const LLVector4 &value, const char *name)=0 |
virtual BOOL | unpackVector4 (LLVector4 &value, const char *name)=0 |
virtual BOOL | packUUID (const LLUUID &value, const char *name)=0 |
virtual BOOL | unpackUUID (LLUUID &value, const char *name)=0 |
U32 | getPassFlags () const |
void | setPassFlags (U32 flags) |
Protected Member Functions | |
LLDataPacker () | |
Protected Attributes | |
U32 | mPassFlags |
BOOL | mWriteEnabled |
Definition at line 42 of file lldatapacker.h.
virtual LLDataPacker::~LLDataPacker | ( | ) | [inline, virtual] |
Definition at line 45 of file lldatapacker.h.
LLDataPacker::LLDataPacker | ( | ) | [protected] |
Definition at line 53 of file lldatapacker.cpp.
virtual void LLDataPacker::dumpBufferToLog | ( | ) | [inline, virtual] |
Reimplemented in LLDataPackerBinaryBuffer.
Definition at line 48 of file lldatapacker.h.
References llendl, and llerrs.
Referenced by LLVOVolume::processUpdateMessage().
U32 LLDataPacker::getPassFlags | ( | ) | const [inline] |
Definition at line 101 of file lldatapacker.h.
References mPassFlags.
Referenced by LLVOVolume::processUpdateMessage().
virtual BOOL LLDataPacker::hasNext | ( | ) | const [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLFlexibleObjectData::unpack(), and LLTransferTargetParamsVFile::unpackParams().
virtual BOOL LLDataPacker::packBinaryData | ( | const U8 * | value, | |
S32 | size, | |||
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLTextureAnim::packTAMessage(), and LLPrimitive::packTEMessage().
virtual BOOL LLDataPacker::packBinaryDataFixed | ( | const U8 * | value, | |
S32 | size, | |||
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
virtual BOOL LLDataPacker::packColor4U | ( | const LLColor4U & | value, | |
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLLightParams::pack(), and LLPartData::pack().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLLightParams::pack(), LLThrottleGroup::packThrottle(), LLGestureStepWait::serialize(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
BOOL LLDataPacker::packFixed | ( | const F32 | value, | |
const char * | name, | |||
const BOOL | is_signed, | |||
const U32 | int_bits, | |||
const U32 | frac_bits | |||
) |
Definition at line 57 of file lldatapacker.cpp.
References llclamp(), llendl, llerrs, packU16(), packU32(), packU8(), S32, and TRUE.
Referenced by LLPartSysData::pack(), and LLPartData::pack().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLTransferSourceParamsAsset::packParams(), LLTransferSourceParamsEstate::packParams(), LLTransferSourceParamsInvItem::packParams(), LLMultiGesture::serialize(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
virtual BOOL LLDataPacker::packString | ( | const char * | value, | |
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLTransferSourceParamsFile::packParams(), LLGestureStepChat::serialize(), LLGestureStepSound::serialize(), LLGestureStepAnimation::serialize(), LLMultiGesture::serialize(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by packFixed(), LLVolumeMessage::packPathParams(), LLVolumeMessage::packProfileParams(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLPartSysData::pack(), LLPartData::pack(), packFixed(), LLGestureStepWait::serialize(), LLGestureStepChat::serialize(), LLGestureStepSound::serialize(), LLGestureStepAnimation::serialize(), LLMultiGesture::serialize(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLSculptParams::pack(), LLFlexibleObjectData::pack(), LLPartSysData::pack(), packFixed(), LLTransferSourceParamsFile::packParams(), LLVolumeMessage::packPathParams(), LLVolumeMessage::packProfileParams(), LLMultiGesture::serialize(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLSculptParams::pack(), LLPartSysData::pack(), LLTransferSourceParamsAsset::packParams(), LLTransferSourceParamsEstate::packParams(), LLTransferSourceParamsInvItem::packParams(), LLGestureStepSound::serialize(), and LLGestureStepAnimation::serialize().
virtual BOOL LLDataPacker::packVector2 | ( | const LLVector2 & | value, | |
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
virtual BOOL LLDataPacker::packVector3 | ( | const LLVector3 & | value, | |
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLFlexibleObjectData::pack(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().
virtual BOOL LLDataPacker::packVector4 | ( | const LLVector4 & | value, | |
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
virtual void LLDataPacker::reset | ( | ) | [inline, virtual] |
Reimplemented in LLDataPackerBinaryBuffer, and LLDataPackerAsciiBuffer.
Definition at line 47 of file lldatapacker.h.
References llendl, and llerrs.
Referenced by LLViewerObjectList::processObjectUpdate().
Definition at line 102 of file lldatapacker.h.
References mPassFlags.
Referenced by LLViewerObject::processUpdateMessage().
virtual BOOL LLDataPacker::unpackBinaryData | ( | U8 * | value, | |
S32 & | size, | |||
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLViewerObject::processUpdateMessage(), LLTextureAnim::unpackTAMessage(), and LLPrimitive::unpackTEMessage().
virtual BOOL LLDataPacker::unpackBinaryDataFixed | ( | U8 * | value, | |
S32 | size, | |||
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLKeyframeMotion::deserialize(), and LLViewerObject::processUpdateMessage().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLLightParams::unpack(), and LLPartData::unpack().
BOOL LLDataPacker::unpackFixed | ( | F32 & | value, | |
const char * | name, | |||
const BOOL | is_signed, | |||
const U32 | int_bits, | |||
const U32 | frac_bits | |||
) |
Definition at line 109 of file lldatapacker.cpp.
References FALSE, llendl, llerrs, S32, unpackU16(), unpackU32(), and unpackU8().
Referenced by LLPartSysData::unpack(), and LLPartData::unpack().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLMultiGesture::deserialize(), LLKeyframeMotion::deserialize(), LLTransferTargetParamsVFile::unpackParams(), LLTransferSourceParamsAsset::unpackParams(), LLTransferSourceParamsEstate::unpackParams(), and LLTransferSourceParamsInvItem::unpackParams().
virtual BOOL LLDataPacker::unpackString | ( | std::string & | value, | |
const char * | name | |||
) | [pure virtual] |
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLGestureStepChat::deserialize(), LLGestureStepSound::deserialize(), LLGestureStepAnimation::deserialize(), LLMultiGesture::deserialize(), LLKeyframeMotion::deserialize(), LLViewerObject::processUpdateMessage(), and LLTransferSourceParamsFile::unpackParams().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLGestureStepWait::deserialize(), LLGestureStepChat::deserialize(), LLGestureStepSound::deserialize(), LLGestureStepAnimation::deserialize(), LLMultiGesture::deserialize(), LLKeyframeMotion::deserialize(), LLViewerObjectList::processObjectUpdate(), LLViewerObject::processUpdateMessage(), LLPartSysData::unpack(), LLPartData::unpack(), and unpackFixed().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLMultiGesture::deserialize(), LLKeyframeMotion::deserialize(), LLViewerObjectList::processObjectUpdate(), LLViewerObject::processUpdateMessage(), LLSculptParams::unpack(), LLFlexibleObjectData::unpack(), LLPartSysData::unpack(), unpackFixed(), LLTransferSourceParamsFile::unpackParams(), LLVolumeMessage::unpackPathParams(), and LLVolumeMessage::unpackProfileParams().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLGestureStepSound::deserialize(), LLGestureStepAnimation::deserialize(), LLViewerObjectList::processObjectUpdate(), LLViewerObject::processUpdateMessage(), LLSculptParams::unpack(), LLPartSysData::unpack(), LLTransferTargetParamsVFile::unpackParams(), LLTransferSourceParamsAsset::unpackParams(), LLTransferSourceParamsEstate::unpackParams(), and LLTransferSourceParamsInvItem::unpackParams().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLKeyframeMotion::deserialize(), LLViewerObject::processUpdateMessage(), and LLFlexibleObjectData::unpack().
Implemented in LLDataPackerBinaryBuffer, LLDataPackerAsciiBuffer, and LLDataPackerAsciiFile.
Referenced by LLViewerObject::processUpdateMessage().
U32 LLDataPacker::mPassFlags [protected] |
Definition at line 106 of file lldatapacker.h.
Referenced by getPassFlags(), LLDataPackerAsciiBuffer::LLDataPackerAsciiBuffer(), and setPassFlags().
BOOL LLDataPacker::mWriteEnabled [protected] |
Definition at line 107 of file lldatapacker.h.
Referenced by LLDataPackerAsciiBuffer::assignBuffer(), LLDataPackerBinaryBuffer::assignBuffer(), LLDataPackerAsciiBuffer::freeBuffer(), LLDataPackerBinaryBuffer::freeBuffer(), LLDataPackerAsciiBuffer::LLDataPackerAsciiBuffer(), LLDataPackerAsciiFile::LLDataPackerAsciiFile(), LLDataPackerBinaryBuffer::LLDataPackerBinaryBuffer(), LLDataPackerAsciiBuffer::packBinaryData(), LLDataPackerBinaryBuffer::packBinaryData(), LLDataPackerAsciiBuffer::packBinaryDataFixed(), LLDataPackerBinaryBuffer::packBinaryDataFixed(), LLDataPackerAsciiBuffer::packColor4(), LLDataPackerBinaryBuffer::packColor4(), LLDataPackerAsciiBuffer::packColor4U(), LLDataPackerBinaryBuffer::packColor4U(), LLDataPackerAsciiBuffer::packF32(), LLDataPackerBinaryBuffer::packF32(), LLDataPackerAsciiBuffer::packS32(), LLDataPackerBinaryBuffer::packS32(), LLDataPackerAsciiBuffer::packString(), LLDataPackerBinaryBuffer::packString(), LLDataPackerAsciiBuffer::packU16(), LLDataPackerBinaryBuffer::packU16(), LLDataPackerAsciiBuffer::packU32(), LLDataPackerBinaryBuffer::packU32(), LLDataPackerAsciiBuffer::packU8(), LLDataPackerBinaryBuffer::packU8(), LLDataPackerAsciiBuffer::packUUID(), LLDataPackerBinaryBuffer::packUUID(), LLDataPackerAsciiBuffer::packVector2(), LLDataPackerBinaryBuffer::packVector2(), LLDataPackerAsciiBuffer::packVector3(), LLDataPackerBinaryBuffer::packVector3(), LLDataPackerAsciiBuffer::packVector4(), LLDataPackerBinaryBuffer::packVector4(), LLDataPackerAsciiBuffer::reset(), LLDataPackerBinaryBuffer::reset(), LLDataPackerAsciiBuffer::verifyLength(), LLDataPackerBinaryBuffer::verifyLength(), and LLDataPackerAsciiBuffer::writeIndentedName().