Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / log / doc / html / boost / log / extract_idp35820144.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template extract</title>
5 <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Log v2">
8 <link rel="up" href="../../attributes.html#header.boost.log.attributes.value_extraction_hpp" title="Header &lt;boost/log/attributes/value_extraction.hpp&gt;">
9 <link rel="prev" href="extract_idp35812848.html" title="Function template extract">
10 <link rel="next" href="extract_idp35827168.html" title="Function template extract">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td></tr></table>
14 <hr>
15 <div class="spirit-nav">
16 <a accesskey="p" href="extract_idp35812848.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../attributes.html#header.boost.log.attributes.value_extraction_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="extract_idp35827168.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
17 </div>
18 <div class="refentry">
19 <a name="boost.log.extract_idp35820144"></a><div class="titlepage"></div>
20 <div class="refnamediv">
21 <h2><span class="refentrytitle">Function template extract</span></h2>
22 <p>boost::log::extract</p>
23 </div>
24 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
25 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../attributes.html#header.boost.log.attributes.value_extraction_hpp" title="Header &lt;boost/log/attributes/value_extraction.hpp&gt;">boost/log/attributes/value_extraction.hpp</a>&gt;
26
27 </span>
28 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> DescriptorT<span class="special">,</span> <span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">typename</span> <span class="special">&gt;</span> <span class="keyword">class</span> ActorT<span class="special">&gt;</span> 
29   <a class="link" href="result_of/extract.html" title="Struct template extract">result_of::extract</a><span class="special">&lt;</span> <span class="keyword">typename</span> <span class="identifier">DescriptorT</span><span class="special">::</span><span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">DescriptorT</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
30   <span class="identifier">extract</span><span class="special">(</span><span class="identifier">expressions</span><span class="special">::</span><span class="identifier">attribute_keyword</span><span class="special">&lt;</span> <span class="identifier">DescriptorT</span><span class="special">,</span> <span class="identifier">ActorT</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> keyword<span class="special">,</span> 
31           <span class="identifier">record</span> <span class="keyword">const</span> <span class="special">&amp;</span> rec<span class="special">)</span><span class="special">;</span></pre></div>
32 <div class="refsect1">
33 <a name="idp93182368"></a><h2>Description</h2>
34 <p>The function extracts an attribute value from the view. The user has to explicitly specify the type or set of possible types of the attribute value to be extracted.</p>
35 <p>
36
37 </p>
38 <div class="variablelist"><table border="0" class="variablelist compact">
39 <colgroup>
40 <col align="left" valign="top">
41 <col>
42 </colgroup>
43 <tbody>
44 <tr>
45 <td><p><span class="term">Parameters:</span></p></td>
46 <td><div class="variablelist"><table border="0" class="variablelist compact">
47 <colgroup>
48 <col align="left" valign="top">
49 <col>
50 </colgroup>
51 <tbody>
52 <tr>
53 <td><p><span class="term"><code class="computeroutput">keyword</code></span></p></td>
54 <td><p>The keyword of the attribute value to extract. </p></td>
55 </tr>
56 <tr>
57 <td><p><span class="term"><code class="computeroutput">rec</code></span></p></td>
58 <td><p>A log record. The attribute value will be sought among those associated with the record. </p></td>
59 </tr>
60 </tbody>
61 </table></div></td>
62 </tr>
63 <tr>
64 <td><p><span class="term">Returns:</span></p></td>
65 <td><p>A <code class="computeroutput">value_ref</code> that refers to the extracted value, if found. An empty value otherwise. </p></td>
66 </tr>
67 </tbody>
68 </table></div>
69 </div>
70 </div>
71 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
72 <td align="left"></td>
73 <td align="right"><div class="copyright-footer">Copyright &#169; 2007-2014 Andrey Semashev<p>
74         Distributed under the Boost Software License, Version 1.0. (See accompanying
75         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
76       </p>
77 </div></td>
78 </tr></table>
79 <hr>
80 <div class="spirit-nav">
81 <a accesskey="p" href="extract_idp35812848.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../attributes.html#header.boost.log.attributes.value_extraction_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="extract_idp35827168.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
82 </div>
83 </body>
84 </html>