sbVariantHelper Class Reference

#include <sbVariantUtils.h>

Public Member Functions

 sbVariantHelper (nsIVariant *aVariant, nsresult *aRV=nsnull)
 
 operator PRUint8 () const
 
 operator PRUint16 () const
 
 operator PRInt16 () const
 
 operator PRUint32 () const
 
 operator PRInt32 () const
 
 operator PRUint64 () const
 
 operator PRInt64 () const
 
 operator nsString () const
 
 operator nsCString () const
 
nsresult rv ()
 

Detailed Description

Helper class for variants to return the value of the variant. This class is mainly useful for template functions that use variants.

Definition at line 289 of file sbVariantUtils.h.

Constructor & Destructor Documentation

sbVariantHelper::sbVariantHelper ( nsIVariant *  aVariant,
nsresult *  aRV = nsnull 
)
inline

Construct a variant helper for the variant specified by aVariant. If aRV is specified, return all error results from all methods in aRV.

Parameters
aVariantVariant.
aRVOptional. Return value to use for all methods.

Definition at line 306 of file sbVariantUtils.h.

Member Function Documentation

sbVariantHelper::operator nsCString ( ) const
inline

Definition at line 460 of file sbVariantUtils.h.

sbVariantHelper::operator nsString ( ) const
inline

Definition at line 443 of file sbVariantUtils.h.

sbVariantHelper::operator PRInt16 ( ) const
inline

Definition at line 358 of file sbVariantUtils.h.

sbVariantHelper::operator PRInt32 ( ) const
inline

Definition at line 392 of file sbVariantUtils.h.

sbVariantHelper::operator PRInt64 ( ) const
inline

Definition at line 426 of file sbVariantUtils.h.

sbVariantHelper::operator PRUint16 ( ) const
inline

Definition at line 341 of file sbVariantUtils.h.

sbVariantHelper::operator PRUint32 ( ) const
inline

Definition at line 375 of file sbVariantUtils.h.

sbVariantHelper::operator PRUint64 ( ) const
inline

Definition at line 409 of file sbVariantUtils.h.

sbVariantHelper::operator PRUint8 ( ) const
inline

Definition at line 322 of file sbVariantUtils.h.

nsresult sbVariantHelper::rv ( )
inline

Return the result of the last method called.

Returns
Reult of last method called.

Definition at line 483 of file sbVariantUtils.h.


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