sbVariant Class Reference

#include <sbVariant.h>

Inheritance diagram for sbVariant:
[legend]
Collaboration diagram for sbVariant:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIVARIANT
NS_DECL_NSIWRITABLEVARIANT 
sbVariant ()
 

Static Public Member Functions

static nsresult Initialize (nsDiscriminatedUnion *data)
 
static nsresult Cleanup (nsDiscriminatedUnion *data)
 
static nsresult ConvertToInt8 (const nsDiscriminatedUnion &data, PRUint8 *_retval)
 
static nsresult ConvertToInt16 (const nsDiscriminatedUnion &data, PRInt16 *_retval)
 
static nsresult ConvertToInt32 (const nsDiscriminatedUnion &data, PRInt32 *_retval)
 
static nsresult ConvertToInt64 (const nsDiscriminatedUnion &data, PRInt64 *_retval)
 
static nsresult ConvertToUint8 (const nsDiscriminatedUnion &data, PRUint8 *_retval)
 
static nsresult ConvertToUint16 (const nsDiscriminatedUnion &data, PRUint16 *_retval)
 
static nsresult ConvertToUint32 (const nsDiscriminatedUnion &data, PRUint32 *_retval)
 
static nsresult ConvertToUint64 (const nsDiscriminatedUnion &data, PRUint64 *_retval)
 
static nsresult ConvertToFloat (const nsDiscriminatedUnion &data, float *_retval)
 
static nsresult ConvertToDouble (const nsDiscriminatedUnion &data, double *_retval)
 
static nsresult ConvertToBool (const nsDiscriminatedUnion &data, PRBool *_retval)
 
static nsresult ConvertToChar (const nsDiscriminatedUnion &data, char *_retval)
 
static nsresult ConvertToWChar (const nsDiscriminatedUnion &data, PRUnichar *_retval)
 
static nsresult ConvertToID (const nsDiscriminatedUnion &data, nsID *_retval)
 
static nsresult ConvertToAString (const nsDiscriminatedUnion &data, nsAString &_retval)
 
static nsresult ConvertToAUTF8String (const nsDiscriminatedUnion &data, nsACString &_retval)
 
static nsresult ConvertToACString (const nsDiscriminatedUnion &data, nsACString &_retval)
 
static nsresult ConvertToString (nsDiscriminatedUnion &data, char **_retval)
 
static nsresult ConvertToWString (const nsDiscriminatedUnion &data, PRUnichar **_retval)
 
static nsresult ConvertToISupports (const nsDiscriminatedUnion &data, nsISupports **_retval)
 
static nsresult ConvertToInterface (const nsDiscriminatedUnion &data, nsIID **iid, void **iface)
 
static nsresult ConvertToArray (const nsDiscriminatedUnion &data, PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr)
 
static nsresult ConvertToStringWithSize (nsDiscriminatedUnion &data, PRUint32 *size, char **str)
 
static nsresult ConvertToWStringWithSize (const nsDiscriminatedUnion &data, PRUint32 *size, PRUnichar **str)
 
static nsresult SetFromVariant (nsDiscriminatedUnion *data, nsIVariant *aValue)
 
static nsresult SetFromInt8 (nsDiscriminatedUnion *data, PRUint8 aValue)
 
static nsresult SetFromInt16 (nsDiscriminatedUnion *data, PRInt16 aValue)
 
static nsresult SetFromInt32 (nsDiscriminatedUnion *data, PRInt32 aValue)
 
static nsresult SetFromInt64 (nsDiscriminatedUnion *data, PRInt64 aValue)
 
static nsresult SetFromUint8 (nsDiscriminatedUnion *data, PRUint8 aValue)
 
static nsresult SetFromUint16 (nsDiscriminatedUnion *data, PRUint16 aValue)
 
static nsresult SetFromUint32 (nsDiscriminatedUnion *data, PRUint32 aValue)
 
static nsresult SetFromUint64 (nsDiscriminatedUnion *data, PRUint64 aValue)
 
static nsresult SetFromFloat (nsDiscriminatedUnion *data, float aValue)
 
static nsresult SetFromDouble (nsDiscriminatedUnion *data, double aValue)
 
static nsresult SetFromBool (nsDiscriminatedUnion *data, PRBool aValue)
 
static nsresult SetFromChar (nsDiscriminatedUnion *data, char aValue)
 
static nsresult SetFromWChar (nsDiscriminatedUnion *data, PRUnichar aValue)
 
static nsresult SetFromID (nsDiscriminatedUnion *data, const nsID &aValue)
 
static nsresult SetFromAString (nsDiscriminatedUnion *data, const nsAString &aValue)
 
static nsresult SetFromAUTF8String (nsDiscriminatedUnion *data, const nsACString &aValue)
 
static nsresult SetFromACString (nsDiscriminatedUnion *data, const nsACString &aValue)
 
static nsresult SetFromString (nsDiscriminatedUnion *data, const char *aValue)
 
static nsresult SetFromWString (nsDiscriminatedUnion *data, const PRUnichar *aValue)
 
static nsresult SetFromISupports (nsDiscriminatedUnion *data, nsISupports *aValue)
 
static nsresult SetFromInterface (nsDiscriminatedUnion *data, const nsIID &iid, nsISupports *aValue)
 
static nsresult SetFromArray (nsDiscriminatedUnion *data, PRUint16 type, const nsIID *iid, PRUint32 count, void *aValue)
 
static nsresult SetFromStringWithSize (nsDiscriminatedUnion *data, PRUint32 size, const char *aValue)
 
static nsresult SetFromWStringWithSize (nsDiscriminatedUnion *data, PRUint32 size, const PRUnichar *aValue)
 
static nsresult SetToVoid (nsDiscriminatedUnion *data)
 
static nsresult SetToEmpty (nsDiscriminatedUnion *data)
 
static nsresult SetToEmptyArray (nsDiscriminatedUnion *data)
 

Protected Attributes

nsDiscriminatedUnion mData
 
PRLock * mDataLock
 
PRBool mWritable
 

Detailed Description

sbVariant implements the generic variant support. They are created 'empty' and 'writable'.

nsIVariant users won't usually need to see this class.

This class is threadsafe.

Definition at line 103 of file sbVariant.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSIVARIANT NS_DECL_NSIWRITABLEVARIANT sbVariant::sbVariant ( )

Member Function Documentation

nsresult sbVariant::Cleanup ( nsDiscriminatedUnion data)
static

Definition at line 1713 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::ConvertToACString ( const nsDiscriminatedUnion data,
nsACString &  _retval 
)
static

Definition at line 1009 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToArray ( const nsDiscriminatedUnion data,
PRUint16 *  type,
nsIID *  iid,
PRUint32 *  count,
void **  ptr 
)
static

Definition at line 1331 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToAString ( const nsDiscriminatedUnion data,
nsAString &  _retval 
)
static

Definition at line 964 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToAUTF8String ( const nsDiscriminatedUnion data,
nsACString &  _retval 
)
static

Definition at line 1054 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToBool ( const nsDiscriminatedUnion data,
PRBool *  _retval 
)
static

Definition at line 739 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToChar ( const nsDiscriminatedUnion data,
char *  _retval 
)
static

Definition at line 708 of file sbVariant.cpp.

nsresult sbVariant::ConvertToDouble ( const nsDiscriminatedUnion data,
double *  _retval 
)
static

Definition at line 701 of file sbVariant.cpp.

Here is the caller graph for this function:

nsresult sbVariant::ConvertToFloat ( const nsDiscriminatedUnion data,
float *  _retval 
)
static

Definition at line 695 of file sbVariant.cpp.

nsresult sbVariant::ConvertToID ( const nsDiscriminatedUnion data,
nsID *  _retval 
)
static

Definition at line 827 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::ConvertToInt16 ( const nsDiscriminatedUnion data,
PRInt16 *  _retval 
)
static

Definition at line 677 of file sbVariant.cpp.

nsresult sbVariant::ConvertToInt32 ( const nsDiscriminatedUnion data,
PRInt32 *  _retval 
)
static

Definition at line 679 of file sbVariant.cpp.

nsresult sbVariant::ConvertToInt64 ( const nsDiscriminatedUnion data,
PRInt64 *  _retval 
)
static

Definition at line 754 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::ConvertToInt8 ( const nsDiscriminatedUnion data,
PRUint8 *  _retval 
)
static

Definition at line 676 of file sbVariant.cpp.

nsresult sbVariant::ConvertToInterface ( const nsDiscriminatedUnion data,
nsIID **  iid,
void **  iface 
)
static

Definition at line 1301 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToISupports ( const nsDiscriminatedUnion data,
nsISupports **  _retval 
)
static

Definition at line 1281 of file sbVariant.cpp.

nsresult sbVariant::ConvertToString ( nsDiscriminatedUnion data,
char **  _retval 
)
static

Definition at line 1114 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToStringWithSize ( nsDiscriminatedUnion data,
PRUint32 *  size,
char **  str 
)
static

Definition at line 1128 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::ConvertToUint16 ( const nsDiscriminatedUnion data,
PRUint16 *  _retval 
)
static

Definition at line 686 of file sbVariant.cpp.

nsresult sbVariant::ConvertToUint32 ( const nsDiscriminatedUnion data,
PRUint32 *  _retval 
)
static

Definition at line 688 of file sbVariant.cpp.

nsresult sbVariant::ConvertToUint64 ( const nsDiscriminatedUnion data,
PRUint64 *  _retval 
)
static

Definition at line 783 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToUint8 ( const nsDiscriminatedUnion data,
PRUint8 *  _retval 
)
static

Definition at line 685 of file sbVariant.cpp.

nsresult sbVariant::ConvertToWChar ( const nsDiscriminatedUnion data,
PRUnichar *  _retval 
)
static

Definition at line 715 of file sbVariant.cpp.

nsresult sbVariant::ConvertToWString ( const nsDiscriminatedUnion data,
PRUnichar **  _retval 
)
static

Definition at line 1121 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::ConvertToWStringWithSize ( const nsDiscriminatedUnion data,
PRUint32 *  size,
PRUnichar **  str 
)
static

Definition at line 1210 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::Initialize ( nsDiscriminatedUnion data)
static

Definition at line 1706 of file sbVariant.cpp.

Here is the caller graph for this function:

nsresult sbVariant::SetFromACString ( nsDiscriminatedUnion data,
const nsACString &  aValue 
)
static

Definition at line 1593 of file sbVariant.cpp.

nsresult sbVariant::SetFromArray ( nsDiscriminatedUnion data,
PRUint16  type,
const nsIID *  iid,
PRUint32  count,
void *  aValue 
)
static

Definition at line 1644 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::SetFromAString ( nsDiscriminatedUnion data,
const nsAString &  aValue 
)
static

Definition at line 1584 of file sbVariant.cpp.

nsresult sbVariant::SetFromAUTF8String ( nsDiscriminatedUnion data,
const nsACString &  aValue 
)
static

Definition at line 1603 of file sbVariant.cpp.

nsresult sbVariant::SetFromBool ( nsDiscriminatedUnion data,
PRBool  aValue 
)
static

Definition at line 1564 of file sbVariant.cpp.

nsresult sbVariant::SetFromChar ( nsDiscriminatedUnion data,
char  aValue 
)
static

Definition at line 1569 of file sbVariant.cpp.

nsresult sbVariant::SetFromDouble ( nsDiscriminatedUnion data,
double  aValue 
)
static

Definition at line 1559 of file sbVariant.cpp.

nsresult sbVariant::SetFromFloat ( nsDiscriminatedUnion data,
float  aValue 
)
static

Definition at line 1554 of file sbVariant.cpp.

nsresult sbVariant::SetFromID ( nsDiscriminatedUnion data,
const nsID &  aValue 
)
static

Definition at line 1579 of file sbVariant.cpp.

nsresult sbVariant::SetFromInt16 ( nsDiscriminatedUnion data,
PRInt16  aValue 
)
static

Definition at line 1519 of file sbVariant.cpp.

nsresult sbVariant::SetFromInt32 ( nsDiscriminatedUnion data,
PRInt32  aValue 
)
static

Definition at line 1524 of file sbVariant.cpp.

nsresult sbVariant::SetFromInt64 ( nsDiscriminatedUnion data,
PRInt64  aValue 
)
static

Definition at line 1529 of file sbVariant.cpp.

nsresult sbVariant::SetFromInt8 ( nsDiscriminatedUnion data,
PRUint8  aValue 
)
static

Definition at line 1514 of file sbVariant.cpp.

nsresult sbVariant::SetFromInterface ( nsDiscriminatedUnion data,
const nsIID &  iid,
nsISupports aValue 
)
static

Definition at line 1634 of file sbVariant.cpp.

Here is the caller graph for this function:

nsresult sbVariant::SetFromISupports ( nsDiscriminatedUnion data,
nsISupports aValue 
)
static

Definition at line 1629 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::SetFromString ( nsDiscriminatedUnion data,
const char *  aValue 
)
static

Definition at line 1613 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::SetFromStringWithSize ( nsDiscriminatedUnion data,
PRUint32  size,
const char *  aValue 
)
static

Definition at line 1661 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::SetFromUint16 ( nsDiscriminatedUnion data,
PRUint16  aValue 
)
static

Definition at line 1539 of file sbVariant.cpp.

nsresult sbVariant::SetFromUint32 ( nsDiscriminatedUnion data,
PRUint32  aValue 
)
static

Definition at line 1544 of file sbVariant.cpp.

nsresult sbVariant::SetFromUint64 ( nsDiscriminatedUnion data,
PRUint64  aValue 
)
static

Definition at line 1549 of file sbVariant.cpp.

nsresult sbVariant::SetFromUint8 ( nsDiscriminatedUnion data,
PRUint8  aValue 
)
static

Definition at line 1534 of file sbVariant.cpp.

NS_IMETHODIMP sbVariant::SetFromVariant ( nsDiscriminatedUnion data,
nsIVariant *  aValue 
)
static

Definition at line 1399 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::SetFromWChar ( nsDiscriminatedUnion data,
PRUnichar  aValue 
)
static

Definition at line 1574 of file sbVariant.cpp.

nsresult sbVariant::SetFromWString ( nsDiscriminatedUnion data,
const PRUnichar *  aValue 
)
static

Definition at line 1621 of file sbVariant.cpp.

Here is the call graph for this function:

nsresult sbVariant::SetFromWStringWithSize ( nsDiscriminatedUnion data,
PRUint32  size,
const PRUnichar *  aValue 
)
static

Definition at line 1673 of file sbVariant.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbVariant::SetToEmpty ( nsDiscriminatedUnion data)
static

Definition at line 1691 of file sbVariant.cpp.

Here is the caller graph for this function:

nsresult sbVariant::SetToEmptyArray ( nsDiscriminatedUnion data)
static

Definition at line 1697 of file sbVariant.cpp.

Here is the caller graph for this function:

nsresult sbVariant::SetToVoid ( nsDiscriminatedUnion data)
static

Definition at line 1685 of file sbVariant.cpp.

Here is the caller graph for this function:

Member Data Documentation

nsDiscriminatedUnion sbVariant::mData
protected

Definition at line 183 of file sbVariant.h.

PRLock* sbVariant::mDataLock
protected

Definition at line 184 of file sbVariant.h.

PRBool sbVariant::mWritable
protected

Definition at line 186 of file sbVariant.h.


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