Main Page   File List   Globals  

schema.h File Reference

Schema functions. More...

#include <libgnurdf/types.h>

Go to the source code of this file.

Schema (De)allocation Functions

RdfSchemardfNewSchema (void)
 Creates a new, blank RdfSchema. More...

void rdfDestroySchema (RdfSchema *schema)
 Destroys an RdfSchema. More...


File Input/Output Functions

RdfSchemardfReadFile (const char *filename)
 Reads an RDF file. More...

RdfSchemardfReadBuffer (char *buffer)
 Reads RDF from a buffer. More...

void rdfWriteFile (RdfSchema *schema, const char *filename)
 Writes RDF to a file. More...

void rdfWriteBuffer (RdfSchema *schema, char **buffer, int *size)
 Writes RDF to a buffer. More...

void rdfSetCompressionLevel (RdfSchema *schema, int level)
 Sets the schema's gzip compression level. More...

int rdfGetCompressionLevel (RdfSchema *schema)
 Returns the gzip compression level of the schema. More...


Backwards-compatibility functions

RdfSchemardfRead (const char *filename)
 Reads an RDF file. More...

void rdfWrite (RdfSchema *schema, const char *filename)
 Writes RDF to a file. More...


Detailed Description

Schema functions.

Id:
schema.h,v 1.5 2001/09/20 21:23:37 chipx86 Exp
Copyright:
(C) 1999-2001 The GNUpdate Project.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Function Documentation

void rdfDestroySchema RdfSchema   schema
 

Destroys an RdfSchema.

Parameters:
schema   The RdfSchema to destroy.

int rdfGetCompressionLevel RdfSchema   schema
 

Returns the gzip compression level of the schema.

Parameters:
schema   The document schema.
Returns:
The gzip compression level.

RdfSchema* rdfNewSchema void   
 

Creates a new, blank RdfSchema.

Returns:
The new RdfSchema.

RdfSchema* rdfRead const char *    filename
 

Reads an RDF file.

Deprecated:
This function has been replaced by rdfReadFile()
See also:
rdfReadFile()

RdfSchema* rdfReadBuffer char *    buffer
 

Reads RDF from a buffer.

Parameters:
buffer   The buffer containing the RDF.
Returns:
An RdfSchema containing the parsed document, or NULL on error.

RdfSchema* rdfReadFile const char *    filename
 

Reads an RDF file.

Parameters:
filename   The filename to read in.
Returns:
An RdfSchema containing the parsed document, or NULL on error.

void rdfSetCompressionLevel RdfSchema   schema,
int    level
 

Sets the schema's gzip compression level.

Parameters:
schema   The document schema to compress.
level   The gzip compression level.

void rdfWrite RdfSchema   schema,
const char *    filename
 

Writes RDF to a file.

Deprecated:
This function has been replaced by rdfWriteFile()
See also:
rdfWriteFile()

void rdfWriteBuffer RdfSchema   schema,
char **    buffer,
int *    size
 

Writes RDF to a buffer.

Parameters:
schema   The document schema to write.
buffer   The buffer to store the RDF into.
size   The new size of the buffer.

void rdfWriteFile RdfSchema   schema,
const char *    filename
 

Writes RDF to a file.

Parameters:
schema   The document schema to write.
filename   The name of the file to write to.


Generated on Thu Sep 20 16:12:08 2001 for libgnurdf by doxygen1.2.9-20010819 written by Dimitri van Heesch, © 1997-2001