File: object-model.txt

package info (click to toggle)
subversion 1.4.2dfsg1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 37,268 kB
  • ctags: 32,888
  • sloc: ansic: 406,472; python: 38,378; sh: 15,248; cpp: 9,604; ruby: 8,313; perl: 5,308; java: 4,576; lisp: 3,860; xml: 3,298; makefile: 856
file content (18 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

		     The Subversion Object Model
                     ---------------------------

Rules of thumb for translating Subverion's C header files
(subversion/include/svn_*.h) into a wrapper language's object model:

* C modules define a Java package, Python module, etc.

* Module functions and callbacks should be methods of an
  interface/mix-in.

* Batons are opaque data structures, and can be represented as empty
  interfaces or callable objects.  Contexts are generally represented
  as class state.

* In languages for which it is applicable, returned svn_error_t's
  should be declared as thrown exceptions.