mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
1ab7a2f Set version to 1.0.0-b22
2eb4b0c Fix code sample in websocket.qbk
58802f4 Fix typos in design.qbk
19dc4bb Update documentation examples
10dbc5b Disable Boost.Coroutine deprecation warning
01c76c7 Fix websocket stream read documentation
d152c96 Update README.md example programs
995d86f Avoid copies in handler_alloc
851cb62 Add handler helpers
114175c Implement asio dealloc-before-invoke guarantee:
681db2e Add missing include
7db3c6e Fix broken Intellisense (MSVC)
09c183d Set version to 1.0.0-b21
1cb01fe Remove extraneous includes
62e65ed Set version to 1.0.0-b20
45eaa8c Increase utf8 checker code coverage
9ff1a27 Add zlib module:
a0a3359 Refactor HTTP identifier names (API Change):
79be7f8 Set version to 1.0.0-b19
eda1120 Tidy up internal name
4130ad4 Better buffer_cat:
f94f21d Fix consuming_buffers value_type (API Change):
2c524b4 prepared_buffers is private (API Change)
df2a108 Fix prepare_buffers value_type:
a4af9d6 Use boost::lexical_cast instead of std::to_string
62d670b Fix with_body example:
a63bd84 Increase code coverage
84a6775 Boost library min/max guidance:
02feea5 Add read, async_read for message_headers:
f224585 Add write, async_write, operator<< for message_headers:
ea48bcf Make chunk_encode public:
f6dd744 Refactor message and message_headers declarations:
9fd8aed Move sync_ostream to core/detail
c98b2d3 Optimize mask operations
d4dfc1a Optimize utf8 validation
7b4de4b Set version to 1.0.0-b18
feb5204 Add websocket::stream pong and async_pong
d4ffde5 Close connection during async_read on close frame:
644d518 Move clamp to core
427ba38 Fix write_frame masking and auto-fragment handling
54a51b1 Write buffer option does not change capacity
591dbc0 Meet DynamicBuffer requirements for static_streambuf
46d5e72 Reorganize source files and definitions
efa4b8f Override incremental link flags:
eef6e86 Higher optimization settings for MSVC builds
b6f3a36 Check invariants in parse_op:
47b0fa6 Remove unused field in test
8b8e57e unit_test improvements:
e907252 Clean up message docs
1e3543f Set version to 1.0.0-b17
de97a69 Trim unused code
796b484 Doc fixes
95c37e2 Fix unused parameter warnings and missing includes:
8b0d285 Refactor read_size_helper
97a9dcb Improve websocket example in README.md
236caef Engaged invokable is destructible:
d107ba1 Add headers_parser:
2f90627 Fix handling of body_what::pause in basic_parser_v1
9353d04 Add basic_parser_v1::reset
658e03c Add on_body_what parser callback (API Change):
50bd446 Fix parser traits detection (API Change):
df8d306 Tidy up documentation:
47105f8 Tidy up basic_headers for documentation
ada1f60 Refine message class hierarchy:
cf43f51 Rework HTTP concepts (API Change):
8a261ca HTTP Reader (API Change):
183055a Parser callbacks may not throw (API Change)
ebebe52 Add basic_streambuf::alloc_size
c9cd171 Fix basic_streambuf::capacity
0eb0e48 Tidying:
c5c436d Change implicit_value to default_value
01f939d Set version to 1.0.0-b16
206d0a9 Fix websocket failure tests
6b4fb28 Fix Writer exemplar in docs
4224a3a Relax ForwardIterator requirements in FieldSequence
14d7f8d Refactor base_parser_v1 callback traits:
d812344 Add pause option to on_headers interface:
c59bd53 Improve first line serialization
78ff20b Constrain parser_v1 constructor
2765a67 Refine Parser concept:
c329d33 Fix on_headers called twice from basic_parser_v1
55c4c93 Put back missing Design section in docs
90cec54 Make auto_fragment a boolean option
03642fb Rename to write_buffer_size
0ca8964 Frame processing routines are member functions
d99dfb3 Make value optional in param-list
325f579 Set version to 1.0.0-b15
c54762a Fix handling empty HTTP headers in parser_v1.hpp
c39cc06 Regression test for empty headers
60e637b Tidy up error types:
d54d597 Tidy up DynamicBuffer requirements
707fb5e Fix doc reference section
38af0f7 Fix message_v1 constructor
027c4e8 Add Secure WebSocket example
5baaa49 Add HTTPS example
076456b rfc7230 section 3.3.2 compliance
a09a044 Use bin/sh
1ff192d Update README.md for CppCon 2016 presentation
70b8555 Set version to 1.0.0-b14
b4a8342 Update and tidy documentation
8607af5 Update README.md
4abb43e Use BOOST_ASSERT
b5bffee Don't rely on undefined behavior
8ee7a21 Better WebSocket decorator:
38f0d95 Update build scripts for MSVC, MinGW
2a5b116 Fix error handling in server examples
4c7065a Add missing rebind to handler_alloc
git-subtree-dir: src/beast
git-subtree-split: 1ab7a2f04ca9a0b35f2032877cab78d94e96ebad
1811 lines
66 KiB
XML
1811 lines
66 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
|
<!--
|
|
Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
-->
|
|
|
|
<xsl:output method="text"/>
|
|
<xsl:strip-space elements="*"/>
|
|
<xsl:preserve-space elements="para"/>
|
|
|
|
|
|
<xsl:variable name="newline">
|
|
<xsl:text>
|
|
</xsl:text>
|
|
</xsl:variable>
|
|
|
|
<!--
|
|
Loop over all top-level documentation elements (i.e. classes, functions,
|
|
variables and typedefs at namespace scope). The elements are sorted by name.
|
|
Anything in a "detail" namespace or with "_handler" in the name is skipped.
|
|
-->
|
|
<xsl:template match="/doxygen">
|
|
<xsl:text>[/
|
|
Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
]
|
|
|
|
</xsl:text>
|
|
<xsl:for-each select="
|
|
compounddef[@kind = 'class' or @kind = 'struct'] |
|
|
compounddef[@kind = 'namespace']/sectiondef/memberdef">
|
|
<xsl:sort select="concat((. | ancestor::*)/compoundname, '::', name, ':x')"/>
|
|
<xsl:sort select="name"/>
|
|
<xsl:choose>
|
|
<xsl:when test="@kind='class' or @kind='struct'">
|
|
<xsl:if test="
|
|
contains(compoundname, 'beast::') and
|
|
not(contains(compoundname, 'boost::')) and
|
|
not(contains(compoundname, '::detail')) and
|
|
not(contains(compoundname, 'rfc2616')) and
|
|
not(contains(@prot, 'private'))">
|
|
<xsl:call-template name="class"/>
|
|
</xsl:if>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:if test="
|
|
not(contains(ancestor::*/compoundname, '::detail')) and
|
|
not(contains(compoundname, 'rfc2616'))">
|
|
<xsl:call-template name="namespace-memberdef"/>
|
|
</xsl:if>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
|
|
<!--========== Utilities ==========-->
|
|
|
|
<xsl:template name="strip-beast-ns">
|
|
<xsl:param name="name"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains($name, 'boost::system::is_error_code_enum')">
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, 'beast::')">
|
|
<xsl:value-of select="substring-after($name, 'beast::')"/>
|
|
</xsl:when>
|
|
<xsl:when test="$name = 'beast'">
|
|
<xsl:text></xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="strip-ns">
|
|
<xsl:param name="name"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains($name, 'boost::system::is_error_code_enum')">
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '::') and contains($name, '<')">
|
|
<xsl:choose>
|
|
<xsl:when test="string-length(substring-before($name, '::')) < string-length(substring-before($name, '<'))">
|
|
<xsl:call-template name="strip-ns">
|
|
<xsl:with-param name="name" select="substring-after($name, '::')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '::')">
|
|
<xsl:call-template name="strip-ns">
|
|
<xsl:with-param name="name" select="substring-after($name, '::')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="cleanup-param">
|
|
<xsl:param name="name"/>
|
|
<xsl:variable name="clean">
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:variable>
|
|
<xsl:choose>
|
|
<xsl:when test="' *' = substring($clean, string-length($clean) - 1)">
|
|
<xsl:value-of select="substring($clean, 1, string-length($clean) - 2)"/>
|
|
<xsl:text>*</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="' &' = substring($clean, string-length($clean) - 1)">
|
|
<xsl:value-of select="substring($clean, 1, string-length($clean) - 2)"/>
|
|
<xsl:text>&</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="' &...' = substring($clean, string-length($clean) - 4)">
|
|
<xsl:value-of select="substring($clean, 1, string-length($clean) - 5)"/>
|
|
<xsl:text>&...</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="' &&' = substring($clean, string-length($clean) - 2)">
|
|
<xsl:value-of select="substring($clean, 1, string-length($clean) - 3)"/>
|
|
<xsl:text>&&</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="' &&...' = substring($clean, string-length($clean) - 5)">
|
|
<xsl:value-of select="substring($clean, 1, string-length($clean) - 6)"/>
|
|
<xsl:text>&&...</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$clean"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="cleanup-type">
|
|
<xsl:param name="name"/>
|
|
<xsl:variable name="type">
|
|
<xsl:choose>
|
|
<xsl:when test="contains($name, 'BOOST_ASIO_DECL ')">
|
|
<xsl:value-of select="substring-after($name, 'BOOST_ASIO_DECL ')"/>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, 'BOOST_ASIO_DECL')">
|
|
<xsl:value-of select="substring-after($name, 'BOOST_ASIO_DECL')"/>
|
|
</xsl:when>
|
|
<xsl:when test="$name = 'virtual'"></xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<xsl:variable name="cleaned">
|
|
<xsl:choose>
|
|
<xsl:when test="$type='implementation_defined'">
|
|
<xsl:text>``['implementation-defined]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="$type='void_or_deduced'">
|
|
<xsl:text>__void_or_deduced__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$type"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<xsl:call-template name="cleanup-param">
|
|
<xsl:with-param name="name" select="$cleaned"/>
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="make-id">
|
|
<xsl:param name="name"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains($name, 'boost::system::')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="substring-after($name, 'boost::system::')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, 'boost::asio::error::')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, 'boost::asio::error::'), substring-after($name, 'boost::asio::error::'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '::')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '::'), '__', substring-after($name, '::'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="substring($name, string-length($name) - 1) = '<<'">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '<<'), '_ls_')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="substring($name, string-length($name) - 1) = '>>'">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '>>'), '_rs_')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '=')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '='), '_eq_', substring-after($name, '='))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '!')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '!'), '_not_', substring-after($name, '!'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '->')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '->'), '_arrow_', substring-after($name, '->'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '<')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '<'), '_lt_', substring-after($name, '<'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '>')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '>'), '_gt_', substring-after($name, '>'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '[')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '['), '_lb_', substring-after($name, '['))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, ']')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, ']'), '_rb_', substring-after($name, ']'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '(')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '('), '_lp_', substring-after($name, '('))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, ')')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, ')'), '_rp_', substring-after($name, ')'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '+')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '+'), '_plus_', substring-after($name, '+'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '-')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '-'), '_minus_', substring-after($name, '-'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, '*')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, '*'), '_star_', substring-after($name, '*'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="starts-with($name, '~')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-after($name, '~'), '_dtor_')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, ' ')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, ' '), '_', substring-after($name, ' '))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($name, 'boost__posix_time__ptime')">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name"
|
|
select="concat(substring-before($name, 'boost__posix_time__ptime'), 'ptime', substring-after($name, 'boost__posix_time__ptime'))"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<!--========== Markup ==========-->
|
|
|
|
<xsl:template match="para" mode="markup">
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:apply-templates mode="markup"/>
|
|
<xsl:value-of select="$newline"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="para" mode="markup-nested">
|
|
<xsl:apply-templates mode="markup-nested"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="title" mode="markup">
|
|
<xsl:variable name="title">
|
|
<xsl:value-of select="."/>
|
|
</xsl:variable>
|
|
<xsl:if test="string-length($title) > 0">
|
|
<xsl:text>[heading </xsl:text>
|
|
<xsl:value-of select="."/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ulink" mode="markup">
|
|
<xsl:text>[@</xsl:text>
|
|
<xsl:value-of select="@url"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="."/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="programlisting" mode="markup">
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:apply-templates mode="codeline"/>
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:value-of select="$newline"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="programlisting" mode="markup-nested">
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:text>``</xsl:text>
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:apply-templates mode="codeline"/>
|
|
<xsl:if test="substring(., string-length(.)) = $newline">
|
|
<xsl:value-of select="$newline"/>
|
|
</xsl:if>
|
|
<xsl:text>``</xsl:text>
|
|
<xsl:value-of select="$newline"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="codeline" mode="codeline">
|
|
<xsl:if test="string-length(.) > 0">
|
|
<xsl:text> </xsl:text>
|
|
</xsl:if>
|
|
<xsl:apply-templates mode="codeline"/>
|
|
<xsl:value-of select="$newline"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="sp" mode="markup">
|
|
<xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="sp" mode="markup-nested">
|
|
<xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="sp" mode="codeline">
|
|
<xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="linebreak" mode="markup">
|
|
<xsl:text>

</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="linebreak" mode="markup-nested">
|
|
<xsl:text>

</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="computeroutput" mode="markup">
|
|
<xsl:text>`</xsl:text>
|
|
<xsl:value-of select="."/>
|
|
<xsl:text>`</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="computeroutput" mode="markup-nested">
|
|
<xsl:text>`</xsl:text>
|
|
<xsl:value-of select="."/>
|
|
<xsl:text>`</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="listitem" mode="markup">
|
|
<xsl:text>* </xsl:text>
|
|
<xsl:call-template name="strip-leading-whitespace">
|
|
<xsl:with-param name="text">
|
|
<xsl:apply-templates mode="markup"/>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="bold" mode="markup">[*<xsl:apply-templates mode="markup"/>]</xsl:template>
|
|
|
|
<xsl:template match="emphasis" mode="markup">['<xsl:apply-templates mode="markup"/>]</xsl:template>
|
|
|
|
<xsl:template match="parameterlist" mode="markup">
|
|
<xsl:choose>
|
|
<xsl:when test="@kind='param'">
|
|
<xsl:text>[heading Parameters]
</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='exception'">
|
|
<xsl:text>[heading Exceptions]
</xsl:text>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:text>[variablelist
</xsl:text>
|
|
<xsl:apply-templates mode="markup"/>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="parameteritem" mode="markup">
|
|
<xsl:text> [[</xsl:text>
|
|
<xsl:value-of select="parameternamelist"/>
|
|
<xsl:text>][
 </xsl:text>
|
|
<xsl:apply-templates select="parameterdescription" mode="markup-nested"/>
|
|
<xsl:text>
 ]]
</xsl:text>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="simplesect" mode="markup">
|
|
<xsl:choose>
|
|
<xsl:when test="@kind='return'">
|
|
<xsl:text>[heading Return Value]</xsl:text>
|
|
<xsl:apply-templates mode="markup"/>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='see'">
|
|
<xsl:text>[heading See Also]
</xsl:text>
|
|
<xsl:apply-templates mode="markup"/>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='note'">
|
|
<xsl:text>[heading Remarks]
</xsl:text>
|
|
<xsl:apply-templates mode="markup"/>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='par'">
|
|
<xsl:if test="not(starts-with(title, 'Concepts:'))">
|
|
<xsl:apply-templates mode="markup"/>
|
|
</xsl:if>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates mode="markup"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="text()" mode="markup">
|
|
<xsl:variable name="text" select="."/>
|
|
<xsl:variable name="starts-with-whitespace" select="
|
|
starts-with($text, ' ') or starts-with($text, $newline)"/>
|
|
<xsl:variable name="preceding-node-name">
|
|
<xsl:for-each select="preceding-sibling::*">
|
|
<xsl:if test="position() = last()">
|
|
<xsl:value-of select="local-name()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:variable name="after-newline" select="
|
|
$preceding-node-name = 'programlisting' or
|
|
$preceding-node-name = 'linebreak'"/>
|
|
<xsl:choose>
|
|
<xsl:when test="$starts-with-whitespace and $after-newline">
|
|
<xsl:call-template name="escape-text">
|
|
<xsl:with-param name="text">
|
|
<xsl:call-template name="strip-leading-whitespace">
|
|
<xsl:with-param name="text" select="$text"/>
|
|
</xsl:call-template>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="escape-text">
|
|
<xsl:with-param name="text" select="$text"/>
|
|
</xsl:call-template>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="text()" mode="markup-nested">
|
|
<xsl:variable name="text" select="."/>
|
|
<xsl:variable name="starts-with-whitespace" select="
|
|
starts-with($text, ' ') or starts-with($text, $newline)"/>
|
|
<xsl:variable name="preceding-node-name">
|
|
<xsl:for-each select="preceding-sibling::*">
|
|
<xsl:if test="position() = last()">
|
|
<xsl:value-of select="local-name()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:variable name="after-newline" select="
|
|
$preceding-node-name = 'programlisting' or
|
|
$preceding-node-name = 'linebreak'"/>
|
|
<xsl:choose>
|
|
<xsl:when test="$starts-with-whitespace and $after-newline">
|
|
<xsl:call-template name="escape-text">
|
|
<xsl:with-param name="text">
|
|
<xsl:call-template name="strip-leading-whitespace">
|
|
<xsl:with-param name="text" select="$text"/>
|
|
</xsl:call-template>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="escape-text">
|
|
<xsl:with-param name="text" select="$text"/>
|
|
</xsl:call-template>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template name="strip-leading-whitespace">
|
|
<xsl:param name="text"/>
|
|
<xsl:choose>
|
|
<xsl:when test="starts-with($text, ' ')">
|
|
<xsl:call-template name="strip-leading-whitespace">
|
|
<xsl:with-param name="text" select="substring($text, 2)"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="starts-with($text, $newline)">
|
|
<xsl:call-template name="strip-leading-whitespace">
|
|
<xsl:with-param name="text" select="substring($text, 2)"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$text"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template name="escape-text">
|
|
<xsl:param name="text"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains($text, '_')">
|
|
<xsl:value-of select="substring-before($text, '_')"/>
|
|
<xsl:text>\_</xsl:text>
|
|
<xsl:call-template name="escape-text">
|
|
<xsl:with-param name="text" select="substring-after($text, '_')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$text"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template name="escape-name">
|
|
<xsl:param name="text"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains($text, '[')">
|
|
<xsl:value-of select="substring-before($text, '[')"/>
|
|
<xsl:text>\[</xsl:text>
|
|
<xsl:call-template name="escape-name">
|
|
<xsl:with-param name="text" select="substring-after($text, '[')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="contains($text, ']')">
|
|
<xsl:value-of select="substring-before($text, ']')"/>
|
|
<xsl:text>\]</xsl:text>
|
|
<xsl:call-template name="escape-name">
|
|
<xsl:with-param name="text" select="substring-after($text, ']')"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$text"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="ref[@kindref='compound']" mode="markup">
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="."/>
|
|
</xsl:variable>
|
|
<xsl:choose>
|
|
<xsl:when test="contains(@refid, 'beast')">
|
|
<xsl:variable name="dox-ref-id" select="@refid"/>
|
|
<xsl:variable name="ref-name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name"
|
|
select="(/doxygen//compounddef[@id=$dox-ref-id])[1]/compoundname"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="ref-id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$ref-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<!--<xsl:text>|1|</xsl:text>-->
|
|
<!--
|
|
<xsl:text>[role red ref-name='</xsl:text>
|
|
<xsl:value-of select="$ref-name"/>
|
|
<xsl:text>'|ref-id='</xsl:text>
|
|
<xsl:value-of select="$ref-id"/>
|
|
<xsl:text>']|</xsl:text>
|
|
-->
|
|
<xsl:text>[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$ref-id"/>
|
|
<xsl:text> `</xsl:text>
|
|
<xsl:value-of name="text" select="$ref-name"/>
|
|
<xsl:text>`]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[role red |1|</xsl:text>
|
|
<xsl:value-of select="."/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ref[@kindref='member']" mode="markup">
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="."/>
|
|
</xsl:variable>
|
|
<xsl:variable name="dox-ref-id" select="@refid"/>
|
|
<xsl:variable name="memberdefs" select="/doxygen//compounddef/sectiondef/memberdef[@id=$dox-ref-id]"/>
|
|
<xsl:variable name="def-kind" select="($memberdefs)/../../@kind"/>
|
|
<xsl:variable name="sec-kind" select="($memberdefs)/../@kind"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains(@refid, 'beast') and count($memberdefs) > 0">
|
|
<xsl:variable name="dox-compound-name" select="($memberdefs)[1]/../../compoundname"/>
|
|
<xsl:variable name="dox-name" select="($memberdefs)[1]/name"/>
|
|
<xsl:variable name="ref-name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="$dox-compound-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="ref-id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$ref-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<!--<xsl:text>|2|</xsl:text>-->
|
|
<!--
|
|
<xsl:text>[role red def-kind='</xsl:text>
|
|
<xsl:value-of select="$def-kind"/>
|
|
<xsl:text>', sec-kind='</xsl:text>
|
|
<xsl:value-of select="$sec-kind"/>
|
|
<xsl:text>', ref-id='</xsl:text>
|
|
<xsl:value-of select="$ref-id"/>
|
|
<xsl:text>'] </xsl:text>
|
|
-->
|
|
<xsl:choose>
|
|
<xsl:when test="$def-kind = 'namespace'">
|
|
<xsl:text>[link beast.ref.</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="string-length($ref-id) > 0">
|
|
<xsl:value-of select="concat($ref-id,'__',$dox-name)"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$dox-name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:text> `</xsl:text>
|
|
<xsl:value-of name="text" select="$dox-name"/>
|
|
<xsl:text>`]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="$def-kind = 'class' or $def-kind = 'struct'">
|
|
<xsl:text>[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="concat($ref-id,'.',$dox-name)"/>
|
|
<xsl:text> `</xsl:text>
|
|
<xsl:value-of name="text" select="$name"/>
|
|
<xsl:text>`]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[role red </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[role red </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ref[@kindref='compound']" mode="markup-nested">
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="."/>
|
|
</xsl:variable>
|
|
<xsl:text>[role red |3|</xsl:text>
|
|
<xsl:value-of select="."/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ref[@kindref='member']" mode="markup-nested">
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="."/>
|
|
</xsl:variable>
|
|
<xsl:variable name="dox-ref-id" select="@refid"/>
|
|
<xsl:variable name="memberdefs" select="/doxygen//compounddef/sectiondef/memberdef[@id=$dox-ref-id]"/>
|
|
<xsl:variable name="def-kind" select="($memberdefs)/../../@kind"/>
|
|
<xsl:variable name="sec-kind" select="($memberdefs)/../@kind"/>
|
|
<xsl:choose>
|
|
<xsl:when test="contains(@refid, 'beast') and count($memberdefs) > 0">
|
|
<xsl:variable name="dox-compound-name" select="($memberdefs)[1]/../../compoundname"/>
|
|
<xsl:variable name="dox-name" select="($memberdefs)[1]/name"/>
|
|
<xsl:variable name="ref-name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="$dox-compound-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="ref-id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$ref-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<!--<xsl:text>|2|</xsl:text>-->
|
|
<!--
|
|
<xsl:text>[role red def-kind='</xsl:text>
|
|
<xsl:value-of select="$def-kind"/>
|
|
<xsl:text>', sec-kind='</xsl:text>
|
|
<xsl:value-of select="$sec-kind"/>
|
|
<xsl:text>', ref-id='</xsl:text>
|
|
<xsl:value-of select="$ref-id"/>
|
|
<xsl:text>'] </xsl:text>
|
|
-->
|
|
<xsl:choose>
|
|
<xsl:when test="$def-kind = 'namespace'">
|
|
<xsl:text>[link beast.ref.</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="string-length($ref-id) > 0">
|
|
<xsl:value-of select="concat($ref-id,'__',$dox-name)"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$dox-name"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:text> `</xsl:text>
|
|
<xsl:value-of name="text" select="$dox-name"/>
|
|
<xsl:text>`]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="$def-kind = 'class' or $def-kind = 'struct'">
|
|
<xsl:text>[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="concat($ref-id,'.',$dox-name)"/>
|
|
<xsl:text> `</xsl:text>
|
|
<xsl:value-of name="text" select="$name"/>
|
|
<xsl:text>`]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[role red </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[role red </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="header-requirements">
|
|
<xsl:param name="file"/>
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:text>[heading Requirements]
</xsl:text>
|
|
<xsl:text>['Header: ][^</xsl:text>
|
|
<xsl:value-of select="substring-after($file, 'include/')"/>
|
|
<xsl:text>] 

</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="contains($file, 'beast/core')">
|
|
<xsl:text>['Convenience header: ][^beast/core.hpp]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="contains($file, 'beast/http')">
|
|
<xsl:text>['Convenience header: ][^beast/http.hpp]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="contains($file, 'beast/websocket')">
|
|
<xsl:text>['Convenience header: ][^beast/websocket.hpp]</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="contains($file, 'beast/')">
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$file"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:value-of select="$newline"/>
|
|
</xsl:template>
|
|
|
|
|
|
<!--========== Class ==========-->
|
|
|
|
<xsl:template name="class">
|
|
<xsl:variable name="class-name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="compoundname"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="unqualified-class-name">
|
|
<xsl:call-template name="strip-ns">
|
|
<xsl:with-param name="name" select="compoundname"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="class-id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$class-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="class-file" select="location/@file"/>
|
|
<xsl:text>[section:</xsl:text>
|
|
<xsl:value-of select="$class-id"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="$class-name"/>
|
|
<xsl:text>]
</xsl:text>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
<xsl:text>
```
</xsl:text>
|
|
<xsl:apply-templates select="templateparamlist" mode="class-detail"/>
|
|
<xsl:value-of select="@kind"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="$unqualified-class-name"/>
|
|
<xsl:if test="count(basecompoundref[not(contains(.,'::detail'))]) > 0">
|
|
<xsl:text> :</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>
</xsl:text>
|
|
<xsl:for-each select="basecompoundref[not(contains(.,'::detail'))]">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:if test="@prot='public'">
|
|
<xsl:text>public </xsl:text>
|
|
</xsl:if>
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="."/>
|
|
</xsl:call-template>
|
|
<xsl:if test="not(position() = last())">
|
|
<xsl:text>,</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:call-template name="class-tables">
|
|
<xsl:with-param name="class-name" select="$class-name"/>
|
|
<xsl:with-param name="class-id" select="$class-id"/>
|
|
</xsl:call-template>
|
|
<xsl:apply-templates select="detaileddescription" mode="markup"/>
|
|
<xsl:call-template name="header-requirements">
|
|
<xsl:with-param name="file" select="$class-file"/>
|
|
</xsl:call-template>
|
|
<xsl:call-template name="class-members">
|
|
<xsl:with-param name="class-name" select="$class-name"/>
|
|
<xsl:with-param name="class-id" select="$class-id"/>
|
|
<xsl:with-param name="class-file" select="$class-file"/>
|
|
</xsl:call-template>
|
|
<xsl:text>[endsect]



</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="class-tables">
|
|
<xsl:param name="class-name"/>
|
|
<xsl:param name="class-id"/>
|
|
<xsl:if test="
|
|
count(
|
|
sectiondef[@kind='public-type'] |
|
|
innerclass[@prot='public' and not(contains(., '_handler'))]) > 0">
|
|
<xsl:text>[heading Types]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="
|
|
sectiondef[@kind='public-type']/memberdef |
|
|
innerclass[@prot='public' and not(contains(., '_handler'))]" mode="class-table">
|
|
<xsl:sort select="concat(name, (.)[not(name)])"/>
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="count(name) > 0">
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>
|
|
<xsl:text>.</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:call-template name="escape-name">
|
|
<xsl:with-param name="text" select="briefdescription"/>
|
|
</xsl:call-template>
|
|
<xsl:text>
 ]
</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:variable name="type-name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="."/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="unqualified-type-name">
|
|
<xsl:call-template name="strip-ns">
|
|
<xsl:with-param name="name" select="."/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="type-id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$type-name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="type-ref-id" select="@refid"/>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$type-id"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="$unqualified-type-name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="(/doxygen//compounddef[@id=$type-ref-id])[1]/briefdescription"/>
|
|
<xsl:text>
 ]
</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:text> ]
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='public-func' or @kind='public-static-func']) > 0">
|
|
<xsl:text>[heading Member Functions]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='public-func' or @kind='public-static-func']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="name"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="escaped-name">
|
|
<xsl:call-template name="escape-name">
|
|
<xsl:with-param name="text" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-position = 1">
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="$id"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="$escaped-name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="not($overload-position = 1) and not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:text>

 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-position = $overload-count">
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='protected-func' or @kind='protected-static-func']) > 0">
|
|
<xsl:text>[heading Protected Member Functions]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='protected-func' or @kind='protected-static-func']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="name"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-position = 1">
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="$id"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="not($overload-position = 1) and not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:text>

 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-position = $overload-count">
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='private-func' or @kind='protected-private-func']) < 0">
|
|
<xsl:text>[heading Private Member Functions]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='private-func']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="name"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-position = 1">
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="$id"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="not($overload-position = 1) and not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:text>

 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-position = $overload-count">
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='public-static-attrib']) > 0">
|
|
<xsl:text>[heading Static Data Members]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='public-static-attrib']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="name"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='public-attrib']) > 0">
|
|
<xsl:text>[heading Data Members]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='public-attrib']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="name"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='protected-attrib' or @kind='protected-static-attrib']) > 0">
|
|
<xsl:text>[heading Protected Data Members]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='protected-attrib' or @kind='protected-static-attrib']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="name"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='private-attrib' or @kind='private-static-attrib']) < 0">
|
|
<xsl:text>[heading Private Data Members]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='private-attrib' or @kind='private-static-attrib']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="name"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='friend']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]) > 0">
|
|
<xsl:text>[heading Friends]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='friend']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="name"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-position = 1">
|
|
<xsl:text> [
</xsl:text>
|
|
<xsl:text> [[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>.<xsl:value-of select="$id"/>
|
|
<xsl:text> [*</xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]]]
 [
 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="not($overload-position = 1) and not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:text>

 </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-position = $overload-count">
|
|
<xsl:text>
 ]
 ]
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if test="count(sectiondef[@kind='related']/memberdef) > 0">
|
|
<xsl:text>[heading Related Functions]
</xsl:text>
|
|
<xsl:text>[table
 [[Name][Description]]
</xsl:text>
|
|
<xsl:for-each select="sectiondef[@kind='related']/memberdef" mode="class-table">
|
|
<xsl:sort select="name"/>
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="name"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-position = 1">
|
|
[
|
|
[[link beast.ref.<xsl:value-of select="$class-id"/>.<xsl:value-of select="$id"/>
|
|
<xsl:text> </xsl:text>[*<xsl:value-of select="$name"/><xsl:text>]]]
|
|
[</xsl:text><xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="not($overload-position = 1) and not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:value-of select="$newline"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-position = $overload-count">
|
|
<xsl:text>]
|
|
]
|
|
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
]
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="class-members">
|
|
<xsl:param name="class-name"/>
|
|
<xsl:param name="class-id"/>
|
|
<xsl:param name="class-file"/>
|
|
<xsl:apply-templates select="sectiondef[@kind='public-type' or @kind='public-func' or @kind='public-static-func' or @kind='public-attrib' or @kind='public-static-attrib' or @kind='protected-func' or @kind='protected-static-func' or @kind='protected-attrib' or @kind='protected-static-attrib' or @kind='friend' or @kind='related']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]" mode="class-detail">
|
|
<xsl:sort select="name"/>
|
|
<xsl:with-param name="class-name" select="$class-name"/>
|
|
<xsl:with-param name="class-id" select="$class-id"/>
|
|
<xsl:with-param name="class-file" select="$class-file"/>
|
|
</xsl:apply-templates>
|
|
<xsl:if test="$class-name = 'io_service::service'">
|
|
<xsl:apply-templates select="sectiondef[@kind='private-func']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]" mode="class-detail">
|
|
<xsl:sort select="name"/>
|
|
<xsl:with-param name="class-name" select="$class-name"/>
|
|
<xsl:with-param name="class-id" select="$class-id"/>
|
|
<xsl:with-param name="class-file" select="$class-file"/>
|
|
</xsl:apply-templates>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- Class detail -->
|
|
|
|
<xsl:template match="memberdef" mode="class-detail">
|
|
<xsl:param name="class-name"/>
|
|
<xsl:param name="class-id"/>
|
|
<xsl:param name="class-file"/>
|
|
<xsl:variable name="name">
|
|
<xsl:value-of select="name"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="escaped-name">
|
|
<xsl:call-template name="escape-name">
|
|
<xsl:with-param name="text" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-count > 1 and $overload-position = 1">
|
|
<xsl:text>[section:</xsl:text>
|
|
<xsl:value-of select="$id"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="$class-name"/>
|
|
<xsl:text>::</xsl:text>
|
|
<xsl:value-of select="$escaped-name"/>
|
|
<xsl:text>]
</xsl:text>
|
|
<xsl:text>[indexterm2 </xsl:text>
|
|
<xsl:value-of select="$escaped-name"/>
|
|
<xsl:text>..</xsl:text>
|
|
<xsl:value-of select="$class-name"/>
|
|
<xsl:text>]
</xsl:text>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:for-each select="../memberdef[name = $name]">
|
|
<xsl:if test="position() > 1">
|
|
<xsl:text>
</xsl:text>
|
|
<xsl:if test=" not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
<xsl:text>```
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="templateparamlist" mode="class-detail"/>
|
|
<xsl:if test="@explicit='yes'">explicit
</xsl:if>
|
|
<xsl:if test="@friend='yes'">friend
</xsl:if>
|
|
<xsl:if test="@static='yes'">static
</xsl:if>
|
|
<xsl:if test="@virt='virtual'">virtual
</xsl:if>
|
|
<xsl:variable name="stripped-type">
|
|
<xsl:call-template name="cleanup-type">
|
|
<xsl:with-param name="name" select="type"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:if test="string-length($stripped-type) > 0">
|
|
<xsl:value-of select="$stripped-type"/>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>``[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$class-id"/>
|
|
<xsl:text>.</xsl:text>
|
|
<xsl:value-of select="$id"/>
|
|
<xsl:text>.overload</xsl:text>
|
|
<xsl:value-of select="position()"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]``(</xsl:text>
|
|
<xsl:apply-templates select="param" mode="class-detail"/>
|
|
<xsl:text>)</xsl:text>
|
|
<xsl:if test="@const='yes'">
|
|
<xsl:text> const</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>;
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>```
</xsl:text>
|
|
</xsl:if>
|
|
|
|
<!-- Member function detail -->
|
|
|
|
<xsl:text>[section:</xsl:text>
|
|
<xsl:if test="$overload-count = 1">
|
|
<xsl:value-of select="$id"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-count > 1">
|
|
<xsl:text>overload</xsl:text>
|
|
<xsl:value-of select="$overload-position"/>
|
|
</xsl:if>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="$class-name"/>
|
|
<xsl:text>::</xsl:text>
|
|
<xsl:value-of select="$escaped-name"/>
|
|
<xsl:if test="$overload-count > 1">
|
|
<xsl:text> (</xsl:text>
|
|
<xsl:value-of select="$overload-position"/>
|
|
<xsl:text> of </xsl:text>
|
|
<xsl:value-of select="$overload-count"/>
|
|
<xsl:text> overloads)</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>]
</xsl:text>
|
|
<xsl:if test="not(starts-with($doxygen-id, ../../@id))">
|
|
<xsl:variable name="inherited-from" select="/doxygen/compounddef[starts-with($doxygen-id, @id)]/compoundname"/>
|
|
<xsl:if test="not(contains($inherited-from, '::detail'))">
|
|
<xsl:text>['Inherited from </xsl:text>
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="$inherited-from"/>
|
|
</xsl:call-template>
|
|
<xsl:text>.]
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-count = 1">
|
|
<xsl:text>[indexterm2 </xsl:text>
|
|
<xsl:value-of select="$escaped-name"/>
|
|
<xsl:text>..</xsl:text>
|
|
<xsl:value-of select="$class-name"/>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
<xsl:choose>
|
|
<xsl:when test="@kind='typedef'">
|
|
<xsl:call-template name="typedef" mode="class-detail">
|
|
<xsl:with-param name="class-name" select="$class-name"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='variable'">
|
|
<xsl:call-template name="variable" mode="class-detail"/>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='enum'">
|
|
<xsl:call-template name="enum" mode="class-detail">
|
|
<xsl:with-param name="enum-name" select="$class-name"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='function'">
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:call-template name="function" mode="class-detail"/>
|
|
<xsl:text>```
</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='friend'">
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:call-template name="function" mode="class-detail"/>
|
|
<xsl:text>```
</xsl:text>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:apply-templates select="detaileddescription" mode="markup"/>
|
|
<xsl:if test="@kind='typedef' or @kind='friend'">
|
|
<xsl:call-template name="header-requirements">
|
|
<xsl:with-param name="file" select="$class-file"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
<xsl:choose>
|
|
<xsl:when test="$overload-count > 1 and $overload-position = $overload-count">
|
|
<xsl:text>[endsect]
[endsect]



</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[endsect]
</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="typedef">
|
|
<xsl:param name="class-name"/>
|
|
<xsl:text>```
using </xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text> = </xsl:text>
|
|
<xsl:variable name="stripped-type">
|
|
<xsl:call-template name="cleanup-type">
|
|
<xsl:with-param name="name" select="type"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:if test="string-length($stripped-type) > 0">
|
|
<xsl:value-of select="$stripped-type"/>
|
|
</xsl:if>
|
|
<xsl:text>;
```
</xsl:text>
|
|
<xsl:if test="count(type/ref) > 0 and not(contains(type, '*'))">
|
|
<xsl:variable name="class-refid">
|
|
<xsl:for-each select="type/ref[1]">
|
|
<xsl:value-of select="@refid"/>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:variable name="name" select="name"/>
|
|
<xsl:for-each select="/doxygen/compounddef[@id=$class-refid]">
|
|
<xsl:call-template name="class-tables">
|
|
<xsl:with-param name="class-name">
|
|
<xsl:value-of select="concat($class-name, '::', $name)"/>
|
|
</xsl:with-param>
|
|
<xsl:with-param name="class-id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="compoundname"/>
|
|
</xsl:call-template>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
<xsl:apply-templates select="detaileddescription" mode="markup"/>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="variable">
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:if test="@static='yes'">
|
|
<xsl:text>static
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:value-of select="type"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:if test="count(initializer) = 1">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="initializer"/>
|
|
</xsl:if>
|
|
<xsl:text>;
```
</xsl:text>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="enum">
|
|
<xsl:param name="enum-name"/>
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:text>enum </xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>
```
</xsl:text>
|
|
<xsl:if test="count(enumvalue) > 0">
|
|
<xsl:text>
</xsl:text>
|
|
<xsl:for-each select="enumvalue">
|
|
<xsl:text>[indexterm2 </xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>..</xsl:text>
|
|
<xsl:value-of select="$enum-name"/>
|
|
<xsl:text>]</xsl:text>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>[heading Values]
</xsl:text>
|
|
<xsl:text>[variablelist
</xsl:text>
|
|
<xsl:for-each select="enumvalue">
|
|
<xsl:text> [[</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]
 [</xsl:text>
|
|
<xsl:value-of select="briefdescription"/>
|
|
<xsl:text>]]
</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="function">
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:choose>
|
|
<xsl:when test="count(/doxygen//memberdef[@id=$doxygen-id]/templateparamlist) = 1">
|
|
<xsl:apply-templates select="/doxygen//memberdef[@id=$doxygen-id]/templateparamlist" mode="class-detail"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates select="templateparamlist" mode="class-detail"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:variable name="stripped-type">
|
|
<xsl:call-template name="cleanup-type">
|
|
<xsl:with-param name="name" select="type"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:if test="@static='yes'">static
</xsl:if>
|
|
<xsl:if test="@virt='virtual'">virtual
</xsl:if>
|
|
<xsl:if test="string-length($stripped-type) > 0">
|
|
<xsl:value-of select="$stripped-type"/>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>(</xsl:text>
|
|
<xsl:apply-templates select="param" mode="class-detail"/>
|
|
<xsl:text>)</xsl:text>
|
|
<xsl:if test="@const='yes'"> const</xsl:if>
|
|
<xsl:text>;
</xsl:text>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="templateparamlist" mode="class-detail">
|
|
<xsl:text>template<
</xsl:text>
|
|
<xsl:apply-templates select="param" mode="class-detail-template"/>
|
|
<xsl:text>>
</xsl:text>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="param" mode="class-detail-template">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="type = 'class AsyncStream'">
|
|
<xsl:text>class ``[link beast.ref.streams.AsyncStream [*AsyncStream]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="type = 'class AsyncReadStream'">
|
|
<xsl:text>class __AsyncReadStream__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="type = 'class AsyncWriteStream'">
|
|
<xsl:text>class __AsyncWriteStream__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="type = 'class Body'">
|
|
<xsl:text>class ``[link beast.ref.Body [*Body]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="type = 'class BufferSequence'">
|
|
<xsl:text>class ``[link beast.ref.BufferSequence [*BufferSequence]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="(type = 'class' or type = 'class...') and declname = 'BufferSequence'">
|
|
<xsl:value-of select="type"/>
|
|
<xsl:text> ``[link beast.ref.BufferSequence [*BufferSequence]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'CompletionHandler' or type = 'class CompletionHandler'">
|
|
<xsl:text>class __CompletionHandler__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'ConstBufferSequence' or type = 'class ConstBufferSequence'">
|
|
<xsl:text>class __ConstBufferSequence__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'DynamicBuffer' or type = 'class DynamicBuffer'">
|
|
<xsl:text>class ``[link beast.ref.DynamicBuffer [*DynamicBuffer]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'MutableBufferSequence' or type = 'class MutableBufferSequence'">
|
|
<xsl:text>class __MutableBufferSequence__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'Parser' or type = 'class Parser'">
|
|
<xsl:text>class ``[link beast.ref.Parser [*Parser]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'Stream' or type = 'class Stream'">
|
|
<xsl:text>class ``[link beast.ref.streams.Stream [*Stream]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="type = 'class SyncStream'">
|
|
<xsl:text>class ``[link beast.ref.streams.SyncStream [*SyncStream]]``</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'SyncReadStream' or type = 'class SyncReadStream'">
|
|
<xsl:text>class __SyncReadStream__</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'SyncWriteStream' or type = 'class SyncWriteStream'">
|
|
<xsl:text>class __SyncWriteStream__</xsl:text>
|
|
</xsl:when>
|
|
|
|
<xsl:when test="declname = 'T'">
|
|
<xsl:value-of select="declname"/>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'T1'">
|
|
<xsl:value-of select="declname"/>
|
|
</xsl:when>
|
|
<xsl:when test="declname = 'TN'">
|
|
<xsl:value-of select="declname"/>
|
|
</xsl:when>
|
|
<xsl:when test="count(declname) > 0">
|
|
<xsl:value-of select="type"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="declname"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="type"/>
|
|
<!--<xsl:value-of select="concat(' ``[link beast.ref.', declname, ' ', declname, ']``')"/>-->
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:if test="count(defval) > 0">
|
|
<xsl:text> = </xsl:text>
|
|
<xsl:value-of select="defval"/>
|
|
</xsl:if>
|
|
<xsl:if test="not(position() = last())">
|
|
<xsl:text>,
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="param" mode="class-detail">
|
|
<xsl:text>
 </xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="string-length(array) > 0">
|
|
<xsl:value-of select="substring-before(type, '&')"/>
|
|
<xsl:text>(&</xsl:text>
|
|
<xsl:value-of select="declname"/>
|
|
<xsl:text>)</xsl:text>
|
|
<xsl:value-of select="array"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="cleanup-param">
|
|
<xsl:with-param name="name" select="type"/>
|
|
</xsl:call-template>
|
|
<xsl:if test="count(declname) > 0">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="declname"/>
|
|
</xsl:if>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:if test="count(defval) > 0">
|
|
<xsl:text> = </xsl:text>
|
|
<xsl:value-of select="defval"/>
|
|
</xsl:if>
|
|
<xsl:if test="not(position() = last())">
|
|
<xsl:text>,</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="*" mode="class-detail"/>
|
|
|
|
<!--========== Namespace ==========-->
|
|
|
|
<xsl:template name="namespace-memberdef">
|
|
<xsl:variable name="name">
|
|
<xsl:call-template name="strip-beast-ns">
|
|
<xsl:with-param name="name" select="concat(../../compoundname, '::', name)"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="unqualified-name">
|
|
<xsl:call-template name="strip-ns">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="make-id">
|
|
<xsl:with-param name="name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="doxygen-id">
|
|
<xsl:value-of select="@id"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-count">
|
|
<xsl:value-of select="count(../memberdef[name = $unqualified-name])"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="overload-position">
|
|
<xsl:for-each select="../memberdef[name = $unqualified-name]">
|
|
<xsl:if test="@id = $doxygen-id">
|
|
<xsl:value-of select="position()"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
<xsl:if test="$overload-count > 1 and $overload-position = 1">
|
|
<xsl:text>[section:</xsl:text>
|
|
<xsl:value-of select="$id"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]
</xsl:text>
|
|
<xsl:text>[indexterm1 </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="count(/doxygen/compounddef[@kind='group' and compoundname=$name]) > 0">
|
|
<xsl:for-each select="/doxygen/compounddef[@kind='group' and compoundname=$name]">
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
</xsl:for-each>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:for-each select="../memberdef[name = $unqualified-name]">
|
|
<xsl:if test="position() > 1">
|
|
<xsl:text>
</xsl:text>
|
|
<xsl:if test=" not(briefdescription = preceding-sibling::*/briefdescription)">
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
<xsl:text>```
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<xsl:variable name="stripped-type">
|
|
<xsl:call-template name="cleanup-type">
|
|
<xsl:with-param name="name" select="type"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:apply-templates select="templateparamlist" mode="class-detail"/>
|
|
<xsl:if test="string-length($stripped-type) > 0">
|
|
<xsl:value-of select="$stripped-type"/>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>``[link beast.ref.</xsl:text>
|
|
<xsl:value-of select="$id"/>
|
|
<xsl:text>.overload</xsl:text>
|
|
<xsl:value-of select="position()"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>]``(</xsl:text>
|
|
<xsl:apply-templates select="param" mode="class-detail"/>
|
|
<xsl:text>);

</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text>```
</xsl:text>
|
|
<xsl:for-each select="/doxygen/compounddef[@kind='group' and compoundname=$name]">
|
|
<xsl:apply-templates select="detaileddescription" mode="markup"/>
|
|
</xsl:for-each>
|
|
<xsl:call-template name="header-requirements">
|
|
<xsl:with-param name="file" select="location/@file"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-count = 1">
|
|
<xsl:text>[section:</xsl:text>
|
|
<xsl:value-of select="$id"/>
|
|
</xsl:if>
|
|
<xsl:if test="$overload-count > 1">
|
|
<xsl:text>[section:</xsl:text>
|
|
<xsl:text>overload</xsl:text>
|
|
<xsl:value-of select="$overload-position"/>
|
|
</xsl:if>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:if test="$overload-count > 1">
|
|
<xsl:text> (</xsl:text>
|
|
<xsl:value-of select="$overload-position"/>
|
|
<xsl:text> of </xsl:text>
|
|
<xsl:value-of select="$overload-count"/>
|
|
<xsl:text> overloads)</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>]
</xsl:text>
|
|
<xsl:if test="$overload-count = 1">
|
|
<xsl:text>[indexterm1 </xsl:text>
|
|
<xsl:value-of select="$name"/>
|
|
<xsl:text>]
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="briefdescription" mode="markup"/>
|
|
<xsl:choose>
|
|
<xsl:when test="@kind='typedef'">
|
|
<xsl:call-template name="typedef">
|
|
<xsl:with-param name="class-name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='variable'">
|
|
<xsl:call-template name="variable"/>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='enum'">
|
|
<xsl:call-template name="enum">
|
|
<xsl:with-param name="enum-name" select="$name"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:when test="@kind='function'">
|
|
<xsl:text>
```
</xsl:text>
|
|
<xsl:call-template name="function"/>
|
|
<xsl:text>
```
</xsl:text>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:apply-templates select="detaileddescription" mode="markup"/>
|
|
<xsl:if test="$overload-count = 1">
|
|
<xsl:call-template name="header-requirements">
|
|
<xsl:with-param name="file" select="location/@file"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
<xsl:choose>
|
|
<xsl:when test="$overload-count > 1 and $overload-position = $overload-count">
|
|
<xsl:text>[endsect]
[endsect]



</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>[endsect]
</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|