LLNotecard Class Reference

#include <llnotecard.h>

Collaboration diagram for LLNotecard:

Collaboration graph
[legend]
List of all members.

Public Types

 MAX_SIZE = 65536
enum  { MAX_SIZE = 65536 }
 anonymous enumeration to set max size. More...

Public Member Functions

 LLNotecard (S32 max_text=LLNotecard::MAX_SIZE)
virtual ~LLNotecard ()
bool importStream (std::istream &str)
bool exportStream (std::ostream &str)
const std::vector< LLPointer<
LLInventoryItem > > & 
getItems () const
LLStringgetText ()
void setItems (const std::vector< LLPointer< LLInventoryItem > > &items)
void setText (const LLString &text)
S32 getVersion ()
S32 getEmbeddedVersion ()

Private Member Functions

bool importEmbeddedItemsStream (std::istream &str)
bool exportEmbeddedItemsStream (std::ostream &str)

Private Attributes

std::vector< LLPointer< LLInventoryItem > > mItems
LLString mText
S32 mMaxText
S32 mVersion
S32 mEmbeddedVersion

Detailed Description

Definition at line 38 of file llnotecard.h.


Member Enumeration Documentation

anonymous enum

anonymous enumeration to set max size.

Enumerator:
MAX_SIZE 

Definition at line 44 of file llnotecard.h.


Constructor & Destructor Documentation

LLNotecard::LLNotecard ( S32  max_text = LLNotecard::MAX_SIZE  ) 

Definition at line 36 of file llnotecard.cpp.

LLNotecard::~LLNotecard (  )  [virtual]

Definition at line 41 of file llnotecard.cpp.


Member Function Documentation

bool LLNotecard::exportEmbeddedItemsStream ( std::ostream &  str  )  [private]

Definition at line 235 of file llnotecard.cpp.

References FALSE, llformat(), mItems, S32, and TRUE.

Referenced by exportStream().

bool LLNotecard::exportStream ( std::ostream &  str  ) 

Definition at line 265 of file llnotecard.cpp.

References exportEmbeddedItemsStream(), FALSE, llformat(), mText, and TRUE.

Referenced by LLViewerTextEditor::exportBuffer().

S32 LLNotecard::getEmbeddedVersion (  )  [inline]

Definition at line 61 of file llnotecard.h.

References mEmbeddedVersion.

const std::vector< LLPointer< LLInventoryItem > > & LLNotecard::getItems (  )  const

Definition at line 284 of file llnotecard.cpp.

References mItems.

Referenced by LLViewerTextEditor::importStream().

LLString & LLNotecard::getText (  ) 

Definition at line 289 of file llnotecard.cpp.

References mText.

Referenced by LLViewerTextEditor::importStream().

S32 LLNotecard::getVersion (  )  [inline]

Definition at line 60 of file llnotecard.h.

References mVersion.

Referenced by LLViewerTextEditor::importStream().

bool LLNotecard::importEmbeddedItemsStream ( std::istream &  str  )  [private]

Definition at line 45 of file llnotecard.cpp.

References count, i, llendl, llinfos, llwarns, mEmbeddedVersion, mItems, and S32.

Referenced by importStream().

bool LLNotecard::importStream ( std::istream &  str  ) 

Definition at line 146 of file llnotecard.cpp.

References FALSE, fullread(), importEmbeddedItemsStream(), llendl, llwarns, mMaxText, mText, mVersion, S32, STD_STRING_BUF_SIZE, STD_STRING_STR_LEN, and TRUE.

Referenced by LLViewerTextEditor::importStream().

void LLNotecard::setItems ( const std::vector< LLPointer< LLInventoryItem > > &  items  ) 

Definition at line 294 of file llnotecard.cpp.

References mItems.

Referenced by LLViewerTextEditor::exportBuffer().

void LLNotecard::setText ( const LLString text  ) 

Definition at line 299 of file llnotecard.cpp.

References mText.

Referenced by LLViewerTextEditor::exportBuffer().


Member Data Documentation

S32 LLNotecard::mEmbeddedVersion [private]

Definition at line 70 of file llnotecard.h.

Referenced by getEmbeddedVersion(), and importEmbeddedItemsStream().

std::vector<LLPointer<LLInventoryItem> > LLNotecard::mItems [private]

Definition at line 66 of file llnotecard.h.

Referenced by exportEmbeddedItemsStream(), getItems(), importEmbeddedItemsStream(), and setItems().

S32 LLNotecard::mMaxText [private]

Definition at line 68 of file llnotecard.h.

Referenced by importStream().

LLString LLNotecard::mText [private]

Definition at line 67 of file llnotecard.h.

Referenced by exportStream(), getText(), importStream(), and setText().

S32 LLNotecard::mVersion [private]

Definition at line 69 of file llnotecard.h.

Referenced by getVersion(), and importStream().


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