* Converted the webapplet to use the script engine api, and renamed it
[kdebindings.git] / ruby / soprano / sopranohandlers.cpp
blob84543f006070e576942c91196c09f79ba349503b
1 /***************************************************************************
2 sopranohandlers.cpp - Soprano specific marshallers
3 -------------------
4 begin : Sun Sep 28 2003
5 copyright : (C) 2003 by Richard Dale
6 email : Richard_Dale@tipitina.demon.co.uk
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #include <ruby.h>
20 #include <qtruby.h>
21 #include <smokeruby.h>
22 #include <marshall_macros.h>
24 #include <soprano/soprano.h>
25 #include <soprano/inferencerule.h>
26 #include <soprano/statementpattern.h>
28 DEF_LIST_MARSHALLER( SopranoBackendList, QList<const Soprano::Backend*>, Soprano::Backend )
29 DEF_LIST_MARSHALLER( SopranoParserList, QList<const Soprano::Parser*>, Soprano::Parser )
30 DEF_LIST_MARSHALLER( SopranoSerializerList, QList<const Soprano::Serializer*>, Soprano::Serializer )
32 DEF_VALUELIST_MARSHALLER( SopranoBindingSetList, QList<Soprano::BindingSet>, Soprano::BindingSet )
33 DEF_VALUELIST_MARSHALLER( SopranoInferenceRuleList, QList<Soprano::Inference::Rule>, Soprano::Inference::Rule )
34 DEF_VALUELIST_MARSHALLER( SopranoInferenceStatementPatternList, QList<Soprano::Inference::StatementPattern>, Soprano::Inference::StatementPattern )
35 DEF_VALUELIST_MARSHALLER( SopranoNodeList, QList<Soprano::Node>, Soprano::Node )
36 DEF_VALUELIST_MARSHALLER( SopranoStatementList, QList<Soprano::Statement>, Soprano::Statement )
38 TypeHandler Soprano_handlers[] = {
39 { "QList<Soprano::BindingSet>", marshall_SopranoBindingSetList },
40 { "QList<Soprano::Inference::Rule>", marshall_SopranoInferenceRuleList },
41 { "QList<Soprano::Inference::StatementPattern>", marshall_SopranoInferenceStatementPatternList },
42 { "QList<Soprano::Node>", marshall_SopranoNodeList },
43 { "QList<Soprano::Statement>", marshall_SopranoStatementList },
44 { "QList<const Soprano::Backend*>", marshall_SopranoBackendList },
45 { "QList<const Soprano::Parser*>", marshall_SopranoParserList },
46 { "QList<const Soprano::Serializer*>", marshall_SopranoBindingSetList },
47 { 0, 0 }