[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-libs-commits] CVS: dotgnu.rdf RdfParser.cs,NONE,1.1 RdfParser_S
From: |
adam ballai <address@hidden> |
Subject: |
[Dotgnu-libs-commits] CVS: dotgnu.rdf RdfParser.cs,NONE,1.1 RdfParser_SystemXml.cs,NONE,1.1 |
Date: |
Sat, 08 Feb 2003 04:20:44 -0500 |
Update of /cvsroot/dotgnu-libs/dotgnu.rdf
In directory subversions:/tmp/cvs-serv22560
Added Files:
RdfParser.cs RdfParser_SystemXml.cs
Log Message:
--- NEW FILE ---
/*
* RdfNode.cs - Implementation of the "DotGNU.Rdf.RdfNode" class.
*
* Copyright (C) 2003 Adam Ballai, Cannibutter Software.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Thanks to Redland http://www.redland.opensource.ac.uk for the design
interface.
*
*/
namespace DotGNU.Rdf
{
using System;
abstract class RdfParser
{
// *factory
abstract delegate void Factory(RdfParserFactory parser_factory);
// librdf_parser_register_factory
abstract void ParserRegisterFactory(RdfWorld world, String
name, String mime_type, String uri_string, Factory parser_factory);
// librdf_get_parser_factory
abstract RdfParserFactory GetParserFactory(RdfWorld world,
String name, String mime_type, String, RdfUri type_uri);
// librdf_new_parser
abstract RdfParser(RdfWorld world, String name, String
mime_type, RdfUri type_uri);
// librdf_new_parser_from_factory
abstract RdfParser(RdfWorld world, RdfParserFactory
parser_factory);
// librdf_free_parser
abstract void ParserFree(RdfParser parser);
// librdf_parser_parse_as_stream
abstract RdfStream ParserParseAsStream(RdfParser parser, RdfUri
uri, RdfUri base_uri);
// librdf_parser_parse_into_model
// non-zero on failure
abstract int ParserParseIntoModel(RdfParser parser, RdfUri uri,
RdfUri base_uri, RdfModel model);
// librdf_init_parser
abstract void ParserInit(RdfWorld world);
// librdf_finish_parser
abstract void ParserFinish(RdfWorld world);
// *error_fn
abstract delegate void ErrorFn(IntPtr user_data, String msg,
Object[] params);
// librdf_parser_set_error
abstract void ParserSetError(RdfParser parser, ErrorFn errorfn);
// *warning_fn
abstract void WarningFn(IntPtr user_data, String msg, Object[]
params);
// librdf_parser_set_warning
abstract void ParserSetWarning(RdfParser parser, IntPtr
user_data, WarningFn warningfn);
// librdf_parser_get_feature
abstract String Feature(RdfParser parser, RdfUri feature);
// librdf_parser_set_feature
// return non-zero on failure ... negative if no such feature
abstract int Feature(RdfParser parser, RdfUri feature, String
value);
}
}
--- NEW FILE ---
/*
* RDFParser_SystemXml.cs - Implementation of the "DotGNU.Rdf.RdfNode" class.
*
* Copyright (C) 2003 Adam Ballai, Cannibutter Software.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Thanks to Redland http://www.redland.opensource.ac.uk for the design
interface.
*
*/
namespace DotGNU.Rdf
{
using System;
using System.Xml;
public class RdfParser_SystemXml extends RdfParser
{
// *factory
public delegate void Factory(RdfParserFactory parser_factory)
{
// do stuff
}
// librdf_parser_register_factory
public void ParserRegisterFactory(RdfWorld world, String name,
String mime_type, String uri_string, Factory parser_factory)
{
// do stuff
}
// librdf_get_parser_factory
public RdfParserFactory GetParserFactory(RdfWorld world, String
name, String mime_type, String, RdfUri type_uri)
{
// TODO
}
// librdf_new_parser
public RdfParser(RdfWorld world, String name, String mime_type,
RdfUri type_uri)
{
// TODO
}
// librdf_new_parser_from_factory
public RdfParser(RdfWorld world, RdfParserFactory
parser_factory)
{
// TODO
}
// librdf_free_parser
public void ParserFree(RdfParser parser)
{
// TODO
}
// librdf_parser_parse_as_stream
public RdfStream ParserParseAsStream(RdfParser parser, RdfUri
uri, RdfUri base_uri)
{
// TODO
}
// librdf_parser_parse_into_model
// non-zero on failure
public int ParserParseIntoModel(RdfParser parser, RdfUri uri,
RdfUri base_uri, RdfModel mode)
{
// TODO
}
// librdf_init_parser
public void ParserInit(RdfWorld world)
{
// TODO
}
// librdf_finish_parser
public void ParserFinish(RdfWorld world)
{
// TODO
}
// *error_fn
public delegate void ErrorFn(IntPtr user_data, String msg,
Object[] params)
{
// TODO
}
// librdf_parser_set_error
public void ParserSetError(RdfParser parser, ErrorFn errorfn)
{
// TODO
}
// *warning_fn
public void WarningFn(IntPtr user_data, String msg, Object[]
params)
{
// TODO
}
// librdf_parser_set_warning
public void ParserSetWarning(RdfParser parser, IntPtr
user_data, WarningFn warningfn)
{
// TODO
}
// librdf_parser_get_feature
public String Feature(RdfParser parser, RdfUri feature)
{
get
{
// TODO
}
}
// librdf_parser_set_feature
// return non-zero on failure ... negative if no such feature
public int Feature(RdfParser parser, RdfUri feature, String
value);
{
set
{
// TODO
}
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-libs-commits] CVS: dotgnu.rdf RdfParser.cs,NONE,1.1 RdfParser_SystemXml.cs,NONE,1.1,
adam ballai <address@hidden> <=
- Prev by Date:
[Dotgnu-libs-commits] CVS: dotgnu.rdf ChangeLog,1.5,1.6
- Next by Date:
[Dotgnu-libs-commits] CVS: dotgnu.rdf RdfEdge.cs,NONE,1.1 RdfNode.cs,NONE,1.1
- Previous by thread:
[Dotgnu-libs-commits] CVS: dotgnu.rdf ChangeLog,1.5,1.6
- Next by thread:
[Dotgnu-libs-commits] CVS: dotgnu.rdf RdfEdge.cs,NONE,1.1 RdfNode.cs,NONE,1.1
- Index(es):