From 596ec0a3f5f3d6eae4084def3450e4d14c9ebce0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Mar 2011 14:29:26 +0200 Subject: Language changes --- doc/manual.xhtml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/doc/manual.xhtml b/doc/manual.xhtml index 85f03df..bfda407 100644 --- a/doc/manual.xhtml +++ b/doc/manual.xhtml @@ -6913,17 +6913,18 @@ namespace odb

11 Profiles Introduction

-

ODB profiles are a generic mechanism for integrating ODB with other - C++ frameworks and libraries. A profile provides glue code, packaged - into a profile library, which allows you to seamlesly persist various - components, such as smart pointers, containers, and value types from - your favorite C++ framework or library. For example, the Boost profile - implementation is provided by the libodb-boost profile - library.

- -

While we will need to link the profile library to our application, - it is also necessary to let the ODB compiler know which profiles we - are using. This is acomplished with the --profile +

ODB profiles are a generic mechanism for integrating ODB with + widely-used C++ frameworks and libraries. A profile provides glue + code which allows you to seamlessly persist various components, such + as smart pointers, containers, and value types found in these + frameworks or libraries. The code necessary to implement a profile + is packaged into the so called profile library. For example, the + Boost profile implementation is provided by the libodb-boost + profile library.

+ +

Besides linking the profile library to our application, it is also + necessary to let the ODB compiler know which profiles we + are using. This is accomplished with the --profile (or -p alias) option. For example:

@@ -6931,8 +6932,8 @@ odb --profile boost ...
   

Some profiles, especially those covering frameworks or libraries that - consist of multiple sub-libraries, provide sub-profiles which allow you - to pick and chooses which components you would like to use in your + consist of multiple sub-libraries, provide sub-profiles that allow you + to pick and choose which components you would like to use in your application. For example, the boost profile contains the boost/data-time sub-profile. If we are only interested in the date_time types, then we can @@ -6953,18 +6954,18 @@ odb --profile boost/date-time ... the --profile option.

  • C++ compiler: if necessary, specify the path to the profile library headers (normally -I option).
  • -
  • Linker: link the application with the profile library.
  • +
  • Linker: link the profile library to the application.
  • The remaining chapters in this part of the manual describe the - individual profiles supported by ODB.

    + standard profiles provided by ODB.


    12 Boost Profile

    The ODB profile implementation for Boost is provided by the - libodb-boost profile library. To enable all supported Boost - sub-libraries, specify boost as the profile name in + libodb-boost profile library. To enable all the supported + Boost sub-libraries, specify boost as the profile name in the --profile ODB compiler option. Alternatively you can enable only specific sub-profiles. The available sub-profiles are discussed in the following sections.

    -- cgit v1.1