LLNotecard Class Reference

#include <llnotecard.h>

Collaboration diagram for LLNotecard:

Collaboration graph
[legend]

List of all members.

Public Types

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::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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 284 of file llnotecard.cpp.

References mItems.

Referenced by LLViewerTextEditor::importStream().

Here is the caller graph for this function:

LLString & LLNotecard::getText (  ) 

Definition at line 289 of file llnotecard.cpp.

References mText.

Referenced by LLViewerTextEditor::importStream().

Here is the caller graph for this function:

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

Definition at line 294 of file llnotecard.cpp.

References mItems.

Referenced by LLViewerTextEditor::exportBuffer().

Here is the caller graph for this function:

void LLNotecard::setText ( const LLString text  ) 

Definition at line 299 of file llnotecard.cpp.

References mText.

Referenced by LLViewerTextEditor::exportBuffer().

Here is the caller graph for this function:

S32 LLNotecard::getVersion (  )  [inline]

Definition at line 60 of file llnotecard.h.

References mVersion.

Referenced by LLViewerTextEditor::importStream().

Here is the caller graph for this function:

S32 LLNotecard::getEmbeddedVersion (  )  [inline]

Definition at line 61 of file llnotecard.h.

References mEmbeddedVersion.

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

Definition at line 45 of file llnotecard.cpp.

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

Referenced by importStream().

Here is the caller graph for this function:

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

Definition at line 235 of file llnotecard.cpp.

References LLInventoryItem::exportLegacyStream(), FALSE, llformat(), mItems, S32, and TRUE.

Referenced by exportStream().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 67 of file llnotecard.h.

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

Definition at line 68 of file llnotecard.h.

Referenced by importStream().

Definition at line 69 of file llnotecard.h.

Referenced by getVersion(), and importStream().

Definition at line 70 of file llnotecard.h.

Referenced by getEmbeddedVersion(), and importEmbeddedItemsStream().


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

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