# phpman > perldoc > SVN::Base

## NAME
    [SVN::Base](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) - Base class for importing symbols for svn modules

## SYNOPSIS
        # Load the svn_ra_* functions into the [SVN::Ra](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ARa/markdown) namespace.
        package [SVN::Ra](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ARa/markdown);
        use [SVN::Base](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) qw(Ra svn_ra_);

        # Load svn_config_t structure accessors in the magic namcespace
        # provided by swig, so we could use it returned by other functions
        package _p_svn_config_t;
        use [SVN::Base](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) qw(Core svn_config_);

## DESCRIPTION
    [SVN::Base](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) 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($new_value)".

    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 <<https://subversion.apache.org/docs/api/latest/>>.

## INTERNALS
    The perl bindings of swig wraps raw functions into different perl modules, for example,
    [SVN::_Core](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ACore/markdown), [SVN::_Repos](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ARepos/markdown). Upon import, [SVN::Base](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) not
    to import into your namespace. This is useful for cases where you may want to import certain
    symbols differently than normally.

## CAVEATS
    [SVN::Base](https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ABase/markdown) 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 <<clkao@clkao.org>>

## COPYRIGHT
        Licensed to the Apache Software Foundation (ASF) under one
        or more contributor license agreements.  See the NOTICE file
        distributed with this work for additional information
        regarding copyright ownership.  The ASF licenses this file
        to you under the Apache License, Version 2.0 (the
        "License"); you may not use this file except in compliance
        with the License.  You may obtain a copy of the License at

          <http://www.apache.org/licenses/LICENSE-2.0>

        Unless required by applicable law or agreed to in writing,
        software distributed under the License is distributed on an
        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
        KIND, either express or implied.  See the License for the
        specific language governing permissions and limitations
        under the License.

