~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to korundum/modules/soprano/sopranohandlers.cpp

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 ***************************************************************************/
 
8
 
 
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
 ***************************************************************************/
 
17
 
 
18
#include <ruby.h>
 
19
 
 
20
#include <qtruby.h>
 
21
#include <smokeruby.h>
 
22
#include <marshall_macros.h>
 
23
 
 
24
#include <soprano/soprano.h>
 
25
#include <soprano/inferencerule.h>
 
26
#include <soprano/statementpattern.h>
 
27
 
 
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 )
 
31
 
 
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 )
 
37
DEF_VALUELIST_MARSHALLER( SopranoBackendSettingList, QList<Soprano::BackendSetting>, Soprano::BackendSetting )
 
38
 
 
39
TypeHandler Soprano_handlers[] = {
 
40
        { "QList<Soprano::BindingSet>", marshall_SopranoBindingSetList },
 
41
        { "QList<Soprano::Inference::Rule>", marshall_SopranoInferenceRuleList },
 
42
        { "QList<Soprano::Inference::StatementPattern>", marshall_SopranoInferenceStatementPatternList },
 
43
        { "QList<Soprano::Node>", marshall_SopranoNodeList },
 
44
        { "QList<Soprano::Statement>", marshall_SopranoStatementList  },
 
45
        { "QList<const Soprano::Backend*>", marshall_SopranoBackendList },
 
46
        { "QList<const Soprano::Parser*>", marshall_SopranoParserList  },
 
47
    { "QList<const Soprano::Serializer*>", marshall_SopranoBindingSetList },
 
48
    { "QList<Soprano::BackendSetting>", marshall_SopranoBackendSettingList },
 
49
    { "QList<Soprano::BackendSetting>&", marshall_SopranoBackendSettingList },
 
50
    { 0, 0 }
 
51
};
 
52
 
 
53
// kate: space-indent on; indent-width 4; replace-tabs on; mixed-indent off;