1native::Base(3)       User Contributed Perl Documentation      native::Base(3)
2
3
4

NAME

6       SVN::Base - Base class for importing symbols for svn modules
7

SYNOPSIS

9           # Load the svn_ra_* functions into the SVN::Ra namespace.
10           package SVN::Ra;
11           use SVN::Base qw(Ra svn_ra_);
12
13           # Load svn_config_t structure accessors in the magic namcespace
14           # provided by swig, so we could use it returned by other functions
15           package _p_svn_config_t;
16           use SVN::Base qw(Core svn_config_);
17

DESCRIPTION

19       SVN::Base is a module importing the subversion perl bindings raw
20       symbols created by swig, into proper namespace and make them easier to
21       use.
22
23       It will also find the accessors for members of a C struct, create an
24       simpler accessor function like "$data->field()" and
25       "$data->field($new_value)".
26
27       Once you understand the convention of subversion functions in perl
28       bindings, you could look at the subversion api and write them in perl.
29       The API is available in the source header files or online at
30       http://svn.collab.net/svn-doxygen/.
31

INTERNALS

33       The perl bindings of swig wraps raw functions into different perl
34       modules, for example, SVN::_Core, SVN::_Repos. Upon import, SVN::Base
35       bootstrap the requested module if it's not yet loaded, and iterate over
36       the symbols provided in that module, it them puts the function with
37       prefix trimmed in the namespace of the caller for this import.
38
39       The 3rd through the last parameter is a list of symbol endings that you
40       wish for SVN::Base not to import into your namespace.  This is useful
41       for cases where you may want to import certaion symbols differently
42       than normally.
43

CAVEATS

45       SVN::Base consider a function as structure member accessor if it is
46       postfixed ``_get'' or ``_set''. Real functions with this postfixes will
47       need extra handling.
48

AUTHORS

50       Chia-liang Kao <clkao@clkao.org>
51
53       Copyright (c) 2003 CollabNet.  All rights reserved.
54
55       This software is licensed as described in the file COPYING, which you
56       should have received as part of this distribution.  The terms are also
57       available at http://subversion.tigris.org/license-1.html.  If newer
58       versions of this license are posted there, you may use a newer version
59       instead, at your option.
60
61       This software consists of voluntary contributions made by many
62       individuals.  For exact contribution history, see the revision history
63       and logs, available at http://subversion.tigris.org/.
64
65
66
67perl v5.10.1                      2004-12-04                   native::Base(3)
Impressum