1 /***************************************************************************
2 sopranohandlers.cpp - Soprano specific marshallers
4 begin : Thurs 19 Jun 2008
5 copyright : (C) 2008 by Richard Dale
6 email : Richard_Dale@tipitina.demon.co.uk
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
19 #include <smokeqyoto.h>
20 #include <marshall_macros.h>
22 #include <soprano/soprano.h>
23 #include <soprano/inferencerule.h>
24 #include <soprano/statementpattern.h>
26 DEF_LIST_MARSHALLER( SopranoBackendList
, QList
<const Soprano::Backend
*>, Soprano::Backend
)
27 DEF_LIST_MARSHALLER( SopranoParserList
, QList
<const Soprano::Parser
*>, Soprano::Parser
)
28 DEF_LIST_MARSHALLER( SopranoSerializerList
, QList
<const Soprano::Serializer
*>, Soprano::Serializer
)
30 DEF_VALUELIST_MARSHALLER( SopranoBindingSetList
, QList
<Soprano::BindingSet
>, Soprano::BindingSet
)
31 DEF_VALUELIST_MARSHALLER( SopranoInferenceRuleList
, QList
<Soprano::Inference::Rule
>, Soprano::Inference::Rule
)
32 DEF_VALUELIST_MARSHALLER( SopranoInferenceStatementPatternList
, QList
<Soprano::Inference::StatementPattern
>, Soprano::Inference::StatementPattern
)
33 DEF_VALUELIST_MARSHALLER( SopranoNodeList
, QList
<Soprano::Node
>, Soprano::Node
)
34 DEF_VALUELIST_MARSHALLER( SopranoStatementList
, QList
<Soprano::Statement
>, Soprano::Statement
)
35 DEF_VALUELIST_MARSHALLER( SopranoBackendSettingList
, QList
<Soprano::BackendSetting
>, Soprano::BackendSetting
)
37 TypeHandler Soprano_handlers
[] = {
38 { "QList<Soprano::BindingSet>", marshall_SopranoBindingSetList
},
39 { "QList<Soprano::Inference::Rule>", marshall_SopranoInferenceRuleList
},
40 { "QList<Soprano::Inference::StatementPattern>", marshall_SopranoInferenceStatementPatternList
},
41 { "QList<Soprano::Node>", marshall_SopranoNodeList
},
42 { "QList<Soprano::Statement>", marshall_SopranoStatementList
},
43 { "QList<const Soprano::Backend*>", marshall_SopranoBackendList
},
44 { "QList<const Soprano::Parser*>", marshall_SopranoParserList
},
45 { "QList<const Soprano::Serializer*>", marshall_SopranoBindingSetList
},
46 { "QList<Soprano::BackendSetting>", marshall_SopranoBackendSettingList
},
47 { "QList<Soprano::BackendSetting>&", marshall_SopranoBackendSettingList
},