~ubuntu-branches/ubuntu/gutsy/soprano/gutsy

« back to all changes in this revision

Viewing changes to soprano/redland/redlandutil.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-12 14:43:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071012144348-yajzi51v4k23ahxf
Tags: 1.95.0~beta2-1ubuntu1
* Sync with Debian
* Add versioned build-dep on raptor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * This file is part of Soprano Project
3
 
 *
4
 
 * Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
5
 
 * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Library General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2 of the License, or (at your option) any later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Library General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU Library General Public
18
 
 * License along with this library; see the file COPYING.LIB.  If not,
19
 
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
20
 
 * Fifth Floor, Boston, MA 02110-1301, USA.
21
 
 */
22
 
 
23
 
#ifndef SOPRANO_BACKEND_REDLAND_UTIL_H
24
 
#define SOPRANO_BACKEND_REDLAND_UTIL_H
25
 
 
26
 
#include <redland.h>
27
 
 
28
 
namespace Soprano
29
 
{
30
 
 
31
 
  class Node;
32
 
  class Query;
33
 
  class Statement;
34
 
 
35
 
  namespace Redland
36
 
    {
37
 
 
38
 
      namespace Util
39
 
        {
40
 
          Soprano::Node createNode( librdf_node *node );
41
 
 
42
 
          librdf_node *createNode( const Node &node );
43
 
 
44
 
          Soprano::Statement createStatement( librdf_statement *st );
45
 
  
46
 
          librdf_statement *createStatement( const Statement &statement );
47
 
 
48
 
          const char *queryType( const Query &query );
49
 
 
50
 
          /**
51
 
           * Calls librdf_free_node if \a node is not null.
52
 
           * The only reason for this method are the stupid asserts that clutter stderr.
53
 
           */
54
 
          void freeNode( librdf_node* node );
55
 
 
56
 
          /**
57
 
           * Calls librdf_free_statement if \a statement is not null.
58
 
           * The only reason for this method are the stupid asserts that clutter stderr.
59
 
           */
60
 
          void freeStatement( librdf_statement* statement );
61
 
        }
62
 
 
63
 
    }
64
 
}
65
 
 
66
 
#endif // SOPRANO_BACKEND_REDLAND_UTIL_H