Back to index

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

Wraps a static const char* buffer for use with nsISupportsCString. More...

#include <nsSupportsPrimitives.h>

Inheritance diagram for nsSupportsDependentCString:
Inheritance graph
[legend]
Collaboration diagram for nsSupportsDependentCString:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSISUPPORTSPRIMITIVE
NS_DECL_NSISUPPORTSCSTRING 
nsSupportsDependentCString (const char *aStr)
string toString ()

Public Attributes

attribute ACString data
const unsigned short TYPE_ID = 1
const unsigned short TYPE_CSTRING = 2
const unsigned short TYPE_STRING = 3
const unsigned short TYPE_PRBOOL = 4
const unsigned short TYPE_PRUINT8 = 5
const unsigned short TYPE_PRUINT16 = 6
const unsigned short TYPE_PRUINT32 = 7
const unsigned short TYPE_PRUINT64 = 8
const unsigned short TYPE_PRTIME = 9
const unsigned short TYPE_CHAR = 10
const unsigned short TYPE_PRINT16 = 11
const unsigned short TYPE_PRINT32 = 12
const unsigned short TYPE_PRINT64 = 13
const unsigned short TYPE_FLOAT = 14
const unsigned short TYPE_DOUBLE = 15
const unsigned short TYPE_VOID = 16
const unsigned short TYPE_INTERFACE_POINTER = 17
readonly attribute unsigned short type

Private Member Functions

 ~nsSupportsDependentCString ()

Private Attributes

nsDependentCString mData

Detailed Description

Wraps a static const char* buffer for use with nsISupportsCString.

Only use this class with static buffers, or arena-allocated buffers of permanent lifetime!

Definition at line 343 of file nsSupportsPrimitives.h.


Constructor & Destructor Documentation

Definition at line 844 of file nsSupportsPrimitives.cpp.

    : mData(aStr)
{ }

Definition at line 353 of file nsSupportsPrimitives.h.

{}

Member Function Documentation


Member Data Documentation

attribute ACString nsISupportsCString::data [inherited]

Definition at line 98 of file nsISupportsPrimitives.idl.

Definition at line 355 of file nsSupportsPrimitives.h.

readonly attribute unsigned short nsISupportsPrimitive::type [inherited]

Definition at line 73 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_CHAR = 10 [inherited]

Definition at line 64 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_CSTRING = 2 [inherited]

Definition at line 56 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_DOUBLE = 15 [inherited]

Definition at line 69 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_FLOAT = 14 [inherited]

Definition at line 68 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_ID = 1 [inherited]

Definition at line 55 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_INTERFACE_POINTER = 17 [inherited]

Definition at line 71 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRBOOL = 4 [inherited]

Definition at line 58 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRINT16 = 11 [inherited]

Definition at line 65 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRINT32 = 12 [inherited]

Definition at line 66 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRINT64 = 13 [inherited]

Definition at line 67 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRTIME = 9 [inherited]

Definition at line 63 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRUINT16 = 6 [inherited]

Definition at line 60 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRUINT32 = 7 [inherited]

Definition at line 61 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRUINT64 = 8 [inherited]

Definition at line 62 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_PRUINT8 = 5 [inherited]

Definition at line 59 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_STRING = 3 [inherited]

Definition at line 57 of file nsISupportsPrimitives.idl.

const unsigned short nsISupportsPrimitive::TYPE_VOID = 16 [inherited]

Definition at line 70 of file nsISupportsPrimitives.idl.


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