Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIRDFContentSink.h File Reference
#include "nsIXMLContentSink.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIRDFContentSink
 This interface represents a content sink for RDF files. More...

Defines

#define NS_IRDFCONTENTSINK_IID   { 0x3a7459d7, 0xd723, 0x483c, { 0xae, 0xf0, 0x40, 0x4f, 0xc4, 0x8e, 0x09, 0xb8 } }

Functions

nsresult NS_NewRDFContentSink (nsIRDFContentSink **aResult)
 This constructs a content sink that can be used without a document, say, to create a stand-alone in-memory graph.

Define Documentation

#define NS_IRDFCONTENTSINK_IID   { 0x3a7459d7, 0xd723, 0x483c, { 0xae, 0xf0, 0x40, 0x4f, 0xc4, 0x8e, 0x09, 0xb8 } }

Definition at line 54 of file nsIRDFContentSink.h.


Function Documentation

This constructs a content sink that can be used without a document, say, to create a stand-alone in-memory graph.

Definition at line 1535 of file nsRDFContentSink.cpp.

{
    NS_PRECONDITION(aResult != nsnull, "null ptr");
    if (! aResult)
        return NS_ERROR_NULL_POINTER;

    RDFContentSinkImpl* sink = new RDFContentSinkImpl();
    if (! sink)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(sink);
    *aResult = sink;
    return NS_OK;
}

Here is the call graph for this function: