3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function format_named_scope</title>
5 <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../../index.html" title="Chapter 1. Boost.Log v2">
8 <link rel="up" href="../../../expressions.html#header.boost.log.expressions.formatters.named_scope_hpp" title="Header <boost/log/expressions/formatters/named_scope.hpp>">
9 <link rel="prev" href="format_n_idm45711347691632.html" title="Function template format_named_scope">
10 <link rel="next" href="stream_type.html" title="Type definition stream_type">
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>
15 <div class="spirit-nav">
16 <a accesskey="p" href="format_n_idm45711347691632.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../expressions.html#header.boost.log.expressions.formatters.named_scope_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="stream_type.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
18 <div class="refentry">
19 <a name="boost.log.expressions.format_n_idm45711347683232"></a><div class="titlepage"></div>
20 <div class="refnamediv">
21 <h2><span class="refentrytitle">Function format_named_scope</span></h2>
22 <p>boost::log::expressions::format_named_scope</p>
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: <<a class="link" href="../../../expressions.html#header.boost.log.expressions.formatters.named_scope_hpp" title="Header <boost/log/expressions/formatters/named_scope.hpp>">boost/log/expressions/formatters/named_scope.hpp</a>>
28 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">></span>
29 <span class="identifier">unspecified</span> <span class="identifier">format_named_scope</span><span class="special">(</span><span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&</span> name<span class="special">,</span>
30 <span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&</span> args<span class="special">)</span><span class="special">;</span>
31 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> DescriptorT<span class="special">,</span> <span class="keyword">template</span><span class="special"><</span> <span class="keyword">typename</span> <span class="special">></span> <span class="keyword">class</span> ActorT<span class="special">,</span>
32 <span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">></span>
33 <span class="identifier">unspecified</span> <span class="identifier">format_named_scope</span><span class="special">(</span><a class="link" href="attribute_keyword.html" title="Struct template attribute_keyword">attribute_keyword</a><span class="special"><</span> <span class="identifier">DescriptorT</span><span class="special">,</span> <span class="identifier">ActorT</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> keyword<span class="special">,</span>
34 <span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&</span> args<span class="special">)</span><span class="special">;</span>
35 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> FallbackPolicyT<span class="special">,</span> <span class="keyword">typename</span> TagT<span class="special">,</span>
36 <span class="keyword">template</span><span class="special"><</span> <span class="keyword">typename</span> <span class="special">></span> <span class="keyword">class</span> ActorT<span class="special">,</span> <span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">></span>
37 <span class="identifier">unspecified</span> <span class="identifier">format_named_scope</span><span class="special">(</span><a class="link" href="attribute_actor.html" title="Class template attribute_actor">attribute_actor</a><span class="special"><</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">FallbackPolicyT</span><span class="special">,</span> <span class="identifier">TagT</span><span class="special">,</span> <span class="identifier">ActorT</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> placeholder<span class="special">,</span>
38 <span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&</span> args<span class="special">)</span><span class="special">;</span></pre></div>
39 <div class="refsect1">
40 <a name="idm45554744383776"></a><h2>Description</h2>
41 <p>Formatter generator. Construct the named scope formatter with the specified formatting parameters.</p>
44 <div class="variablelist"><table border="0" class="variablelist compact">
46 <col align="left" valign="top">
50 <td><p><span class="term">Parameters:</span></p></td>
51 <td><div class="variablelist"><table border="0" class="variablelist compact">
53 <col align="left" valign="top">
58 <td><p><span class="term"><code class="computeroutput">args</code></span></p></td>
60 <p>An set of named parameters. Supported parameters: </p>
61 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
62 <li class="listitem"><p><code class="computeroutput">format</code> - A format string for named scopes. The string can contain "%n", "%f" and "%l" placeholders for the scope name, file and line number, respectively. This parameter is mandatory. </p></li>
63 <li class="listitem"><p><code class="computeroutput">delimiter</code> - A string that is used to delimit the formatted scope names. Default: "->" or "<-", depending on the iteration direction. </p></li>
64 <li class="listitem"><p><code class="computeroutput">incomplete_marker</code> - A string that is used to indicate that the list was printed incomplete because of depth limitation. Default: "...". </p></li>
65 <li class="listitem"><p><code class="computeroutput">empty_marker</code> - A string that is output in case if the scope list is empty. Default: "", i.e. nothing is output. </p></li>
66 <li class="listitem"><p><code class="computeroutput">iteration</code> - Iteration direction, see <code class="computeroutput">scope_iteration_direction</code> enumeration. Default: forward. </p></li>
67 <li class="listitem"><p><code class="computeroutput">depth</code> - Iteration depth. Default: unlimited. </p></li>
74 <td><p><span class="term"><code class="computeroutput">name</code></span></p></td>
75 <td><p>Attribute name </p></td>
83 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
84 <td align="left"></td>
85 <td align="right"><div class="copyright-footer">Copyright © 2007-2016 Andrey Semashev<p>
86 Distributed under the Boost Software License, Version 1.0. (See accompanying
87 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>).
92 <div class="spirit-nav">
93 <a accesskey="p" href="format_n_idm45711347691632.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../expressions.html#header.boost.log.expressions.formatters.named_scope_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="stream_type.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>