~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/bindings/java/javahl/native/Path.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @copyright
 
3
 * ====================================================================
 
4
 * Copyright (c) 2003-2004 CollabNet.  All rights reserved.
 
5
 *
 
6
 * This software is licensed as described in the file COPYING, which
 
7
 * you should have received as part of this distribution.  The terms
 
8
 * are also available at http://subversion.tigris.org/license-1.html.
 
9
 * If newer versions of this license are posted there, you may use a
 
10
 * newer version instead, at your option.
 
11
 *
 
12
 * This software consists of voluntary contributions made by many
 
13
 * individuals.  For exact contribution history, see the revision
 
14
 * history and logs, available at http://subversion.tigris.org/.
 
15
 * ====================================================================
 
16
 * @endcopyright
 
17
 *
 
18
 * @file Path.h
 
19
 * @brief Interface of the class Path
 
20
 */
 
21
 
 
22
#if !defined(AFX_PATH_H__A143CB2A_1115_4770_8CD5_AA33CCD285FA__INCLUDED_)
 
23
#define AFX_PATH_H__A143CB2A_1115_4770_8CD5_AA33CCD285FA__INCLUDED_
 
24
 
 
25
#if _MSC_VER > 1000
 
26
#pragma once
 
27
#endif // _MSC_VER > 1000
 
28
#include <string>
 
29
struct svn_error_t;
 
30
/**
 
31
 * Encapsulation for Subversion Path handling
 
32
 */
 
33
class Path  
 
34
{
 
35
private:
 
36
    // the path to be stored
 
37
    std::string m_path;
 
38
 
 
39
    svn_error_t *m_error_occured;
 
40
 
 
41
    /**
 
42
     * initialize the class
 
43
     *
 
44
     * @param pi_path Path string
 
45
     */
 
46
    void init (const char * pi_path);
 
47
public:
 
48
    /**
 
49
     * Constructor that takes a string as parameter.
 
50
     * The string is converted to subversion internal
 
51
     * representation. The string is copied.
 
52
     *
 
53
     * @param pi_path Path string
 
54
     */
 
55
    Path (const std::string & pi_path = "");
 
56
    
 
57
    /**
 
58
     * Constructor
 
59
     *
 
60
     * @see Path::Path (const std::string &)
 
61
     * @param pi_path Path string
 
62
     */
 
63
    Path (const char * pi_path);
 
64
 
 
65
    /**
 
66
     * Copy constructor
 
67
     *
 
68
     * @param pi_path Path to be copied
 
69
     */
 
70
    Path (const Path & pi_path);
 
71
 
 
72
    /**
 
73
     * Assignment operator
 
74
     */
 
75
    Path& operator=(const Path&);
 
76
 
 
77
    /**
 
78
     * @return Path string
 
79
     */
 
80
    const std::string &
 
81
    path () const;
 
82
 
 
83
    /**
 
84
     * @return Path string as c string
 
85
     */
 
86
    const char * 
 
87
    c_str() const;
 
88
 
 
89
    svn_error_t * 
 
90
    error_occured() const;
 
91
};
 
92
 
 
93
// !defined(AFX_PATH_H__A143CB2A_1115_4770_8CD5_AA33CCD285FA__INCLUDED_)
 
94
#endif