Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Private Attributes
nsTGetterCopies_CharT Class Reference

getter_Copies support for use with raw string out params: More...

#include <nsTString.h>

Collaboration diagram for nsTGetterCopies_CharT:
Collaboration graph
[legend]

List of all members.

Public Types

typedef CharT char_type

Public Member Functions

 nsTGetterCopies_CharT (nsTXPIDLString_CharT &str)
 ~nsTGetterCopies_CharT ()
 operator char_type ** ()

Private Attributes

nsTXPIDLString_CharTmString
char_typemData

Detailed Description

getter_Copies support for use with raw string out params:

NS_IMETHOD GetBlah(char**);

void some_function() { nsXPIDLCString blah; GetBlah(getter_Copies(blah)); // ... }

Definition at line 644 of file nsTString.h.


Member Typedef Documentation

Definition at line 647 of file nsTString.h.


Constructor & Destructor Documentation

Definition at line 649 of file nsTString.h.

        : mString(str), mData(nsnull) {}

Definition at line 652 of file nsTString.h.

        {
          mString.Adopt(mData); // OK if mData is null
        }

Here is the call graph for this function:


Member Function Documentation

nsTGetterCopies_CharT::operator char_type ** ( ) [inline]

Definition at line 657 of file nsTString.h.

        {
          return &mData;
        }

Member Data Documentation

Definition at line 664 of file nsTString.h.

Definition at line 663 of file nsTString.h.


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