~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/docs/ref/upgrade.4.0/cxx.html

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--$Id$-->
2
 
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
 
<!--All rights reserved.-->
4
 
<!--See the file LICENSE for redistribution information.-->
5
 
<html>
6
 
<head>
7
 
<title>Berkeley DB Reference Guide: Release 4.0: C++ ostream objects</title>
8
 
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
 
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
10
 
</head>
11
 
<body bgcolor=white>
12
 
<table width="100%"><tr valign=top>
13
 
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td>
14
 
<td align=right><a href="../../ref/upgrade.4.0/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.4.0/asr.html"><img src="../../images/next.gif" alt="Next"></a>
15
 
</td></tr></table>
16
 
<p>
17
 
<h1 align=center>Release 4.0: C++ ostream objects</h1>
18
 
<p>In the 4.0 release, the Berkeley DB C++ API has been changed to use the ISO
19
 
standard C++ API in preference to the older, less portable interfaces,
20
 
where available.  This means the Berkeley DB methods that used to take an
21
 
ostream object as a parameter now expect a std::ostream.  Specifically,
22
 
the following methods have changed:
23
 
<p><blockquote><pre>DbEnv::set_error_stream
24
 
Db::set_error_stream
25
 
Db::verify</pre></blockquote>
26
 
<p>On many platforms, the old and the new C++ styles are interchangeable;
27
 
on some platforms (notably Win32), they are incompatible. If your code
28
 
uses these methods and you have trouble with the 4.0 release, you should
29
 
update code that looks like this:
30
 
<p><blockquote><pre>#include &lt;iostream.h&gt;
31
 
#include &lt;db_cxx.h&gt;
32
 
<p>
33
 
void foo(Db db) {
34
 
        db.set_error_stream(&cerr);
35
 
}</pre></blockquote>
36
 
<p>to look like this:
37
 
<p><blockquote><pre>#include &lt;iostream&gt;
38
 
#include &lt;db_cxx.h&gt;
39
 
<p>
40
 
using std::cerr;
41
 
<p>
42
 
void foo(Db db) {
43
 
        db.set_error_stream(&cerr);
44
 
}</pre></blockquote>
45
 
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/upgrade.4.0/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.4.0/asr.html"><img src="../../images/next.gif" alt="Next"></a>
46
 
</td></tr></table>
47
 
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
48
 
</body>
49
 
</html>