Manual Pages for UNIX Darwin command on man SVN::Base
MyWebUniversity

Manual Pages for UNIX Darwin command on man SVN::Base

native::Base(3) User Contributed Perl Documentation native::Base(3)

NAME

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

SYNOPSIS

# Load the svnra* functions into the SVN::Ra namespace.

package SVN::Ra;

use SVN::Base qw(Ra svnra);

# Load svnconfigt structure accessors in the magic namcespace

# provided by swig, so we could use it returned by other functions

package psvnconfigt;

use SVN::Base qw(Core svnconfig);

DESCRIPTION

SVN::Base is a module importing the subversion perl bindings raw

symbols created by swig, into proper namespace and make them easier to use. It will also find the accessors for members of a C struct, create an

simpler accessor function like "$data->field()" and

"$data->field($newvalue)".

Once you understand the convention of subversion functions in perl bindings, you could look at the subversion api and write them in perl. The API is available in the source header files or online at

http://svn.collab.net/svn-doxygen/.

IINNTTEERRNNAALLSS The perl bindings of swig wraps raw functions into different perl

modules, for example, SVN::Core, SVN::Repos. Upon import, SVN::Base

bootstrap the requested module if it's not yet loaded, and iterate over the symbols provided in that module, it them puts the function with prefix trimmed in the namespace of the caller for this import. The 3rd through the last parameter is a list of symbol endings that you

wish for SVN::Base not to import into your namespace. This is useful

for cases where you may want to import certaion symbols differently than normally. CCAAVVEEAATTSS

SVN::Base consider a function as structure member accessor if it is

postfixed ``get'' or ``set''. Real functions with this postfixes will need extra handling. AUTHORS

Chia-liang Kao

COPYRIGHT Copyright (c) 2003 CollabNet. All rights reserved. This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also

available at http://subversion.tigris.org/license-1.html. If newer

versions of this license are posted there, you may use a newer version instead, at your option. This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history and logs, available at http://subversion.tigris.org/.

perl v5.8.8 2004-12-04 native::Base(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™