Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsRDFService.cpp File Reference
#include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsIAtom.h"
#include "nsIComponentManager.h"
#include "nsIRDFDataSource.h"
#include "nsIRDFNode.h"
#include "nsIRDFService.h"
#include "nsIRDFRemoteDataSource.h"
#include "nsIServiceManager.h"
#include "nsIFactory.h"
#include "nsRDFCID.h"
#include "nsString.h"
#include "nsWeakReference.h"
#include "nsXPIDLString.h"
#include "nsNetUtil.h"
#include "pldhash.h"
#include "plhash.h"
#include "plstr.h"
#include "prlog.h"
#include "prprf.h"
#include "prmem.h"
#include "rdf.h"
#include "nsCRT.h"

Go to the source code of this file.

Classes

class  RDFServiceImpl
struct  ResourceHashEntry
struct  LiteralHashEntry
struct  IntHashEntry
struct  DateHashEntry
class  BlobImpl
struct  BlobImpl::Data
struct  BlobHashEntry
class  LiteralImpl
class  DateImpl
class  IntImpl

Functions

static NS_DEFINE_CID (kRDFXMLDataSourceCID, NS_RDFXMLDATASOURCE_CID)
static NS_DEFINE_CID (kRDFDefaultResourceCID, NS_RDFDEFAULTRESOURCE_CID)
static NS_DEFINE_IID (kIRDFLiteralIID, NS_IRDFLITERAL_IID)
static NS_DEFINE_IID (kIRDFDateIID, NS_IRDFDATE_IID)
static NS_DEFINE_IID (kIRDFIntIID, NS_IRDFINT_IID)
static NS_DEFINE_IID (kIRDFNodeIID, NS_IRDFNODE_IID)
static NS_DEFINE_IID (kISupportsIID, NS_ISUPPORTS_IID)
static void *PR_CALLBACK DataSourceAllocTable (void *pool, PRSize size)
static void PR_CALLBACK DataSourceFreeTable (void *pool, void *item)
static PLHashEntry *PR_CALLBACK DataSourceAllocEntry (void *pool, const void *key)
static void PR_CALLBACK DataSourceFreeEntry (void *pool, PLHashEntry *he, PRUintn flag)
static PRBool IsLegalSchemeCharacter (const char aChar)
nsresult NS_NewRDFService (nsIRDFService **mgr)

Variables

static RDFServiceImplgRDFService
static PLHashAllocOps dataSourceHashAllocOps
static PLDHashTableOps gResourceTableOps
static PLDHashTableOps gLiteralTableOps
static PLDHashTableOps gIntTableOps
static PLDHashTableOps gDateTableOps
static PLDHashTableOps gBlobTableOps
static const PRUint8 kLegalSchemeChars []

Class Documentation

struct BlobImpl::Data

Definition at line 403 of file nsRDFService.cpp.

Class Members
PRUint8 * mBytes
PRInt32 mLength

Function Documentation

static PLHashEntry* PR_CALLBACK DataSourceAllocEntry ( void pool,
const void key 
) [static]

Definition at line 182 of file nsRDFService.cpp.

{
#if defined(XP_MAC)
#pragma unused (pool,key)
#endif

    return PR_NEW(PLHashEntry);
}
static void* PR_CALLBACK DataSourceAllocTable ( void pool,
PRSize  size 
) [static]

Definition at line 162 of file nsRDFService.cpp.

{
#if defined(XP_MAC)
#pragma unused (pool)
#endif

    return PR_MALLOC(size);
}
static void PR_CALLBACK DataSourceFreeEntry ( void pool,
PLHashEntry he,
PRUintn  flag 
) [static]

Definition at line 192 of file nsRDFService.cpp.

{
#if defined(XP_MAC)
#pragma unused (pool)
#endif

    if (flag == HT_FREE_ENTRY) {
        PL_strfree((char*) he->key);
        PR_Free(he);
    }
}
static void PR_CALLBACK DataSourceFreeTable ( void pool,
void item 
) [static]

Definition at line 172 of file nsRDFService.cpp.

{
#if defined(XP_MAC)
#pragma unused (pool)
#endif

    PR_Free(item);
}
static PRBool IsLegalSchemeCharacter ( const char  aChar) [inline, static]

Definition at line 1010 of file nsRDFService.cpp.

{
    PRUint8 mask = kLegalSchemeChars[aChar >> 3];
    PRUint8 bit = PR_BIT(aChar & 0x7);
    return PRBool((mask & bit) != 0);
}
static NS_DEFINE_CID ( kRDFXMLDataSourceCID  ,
NS_RDFXMLDATASOURCE_CID   
) [static]
static NS_DEFINE_CID ( kRDFDefaultResourceCID  ,
NS_RDFDEFAULTRESOURCE_CID   
) [static]
static NS_DEFINE_IID ( kIRDFLiteralIID  ,
NS_IRDFLITERAL_IID   
) [static]
static NS_DEFINE_IID ( kIRDFDateIID  ,
NS_IRDFDATE_IID   
) [static]
static NS_DEFINE_IID ( kIRDFIntIID  ,
NS_IRDFINT_IID   
) [static]
static NS_DEFINE_IID ( kIRDFNodeIID  ,
NS_IRDFNODE_IID   
) [static]
static NS_DEFINE_IID ( kISupportsIID  ,
NS_ISUPPORTS_IID   
) [static]

Definition at line 1798 of file nsRDFService.cpp.

Here is the call graph for this function:


Variable Documentation

Definition at line 154 of file nsRDFService.cpp.

Initial value:
 {
          
          
    0x00, 
    0x00, 
    0x00, 
    0x00, 
    0x00, 
    0x28, 
    0xff, 
    0x03, 
    0xfe, 
    0xff, 
    0xff, 
    0x87, 
    0xfe, 
    0xff, 
    0xff, 
    0x07, 
    0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00
}

Definition at line 984 of file nsRDFService.cpp.