Skip to content
Snippets Groups Projects
Commit dbe30ee7 authored by g0dil's avatar g0dil
Browse files

Console: Remove senf_console_add_node() overloads from documentation

Further detailed doc reformatting
parent 67841a64
No related branches found
No related tags found
No related merge requests found
......@@ -253,6 +253,8 @@ prefix_ senf::console::SimpleCommandNode::cptr senf::console::SimpleCommandNode:
return boost::static_pointer_cast<SimpleCommandNode const>(shared_from_this());
}
#ifndef DOXYGEN
prefix_ senf::console::SimpleCommandNode &
senf::console::senf_console_add_node(DirectoryNode & node, std::string const & name,
SimpleCommandNode::Function fn, int)
......@@ -260,6 +262,7 @@ senf::console::senf_console_add_node(DirectoryNode & node, std::string const & n
return node.add(name, SimpleCommandNode::create(fn));
}
#endif
///////////////////////////////cci.e///////////////////////////////////////
#undef prefix_
......
......@@ -375,6 +375,8 @@ namespace detail {
}}}
#ifndef DOXYGEN
template <class Function>
typename senf::console::detail::ParsedCommandTraits<Function>::Attributor
senf::console::senf_console_add_node(DirectoryNode & node, std::string const & name,
......@@ -401,6 +403,8 @@ senf::console::senf_console_add_node(DirectoryNode & node, Owner & owner, std::s
node, name, senf::membind(fn,&owner));
}
#endif
///////////////////////////////cti.e///////////////////////////////////////
#undef prefix_
......
......@@ -70,6 +70,8 @@ senf::console::ScopedDirectory<Owner>::add(std::string const & name, Object & ob
return OwnerNodeCreateTraits<Owner, Object>::Creator::create(node(), *owner_, name, ob);
}
#ifndef DOXYGEN
template <class Owner, class Function>
prefix_ senf::console::SimpleCommandNode & senf::console::
senf_console_add_node(DirectoryNode & node, Owner & , std::string const & name,
......@@ -94,6 +96,8 @@ senf_console_add_node(DirectoryNode & dir, std::string const & name, Node const
return dir.add(name, node.node().thisptr());
}
#endif
///////////////////////////////////////////////////////////////////////////
// senf::console::ScopedDirectory<void>
......
......@@ -177,6 +177,8 @@ senf::console::detail::VariableNodeCreator<Variable, true>::add(DirectoryNode &
return ConstVariableAttributor<Variable>(queryOverload);
}
#ifndef DOXYGEN
template <class Variable>
prefix_ senf::console::VariableAttributor<Variable> senf::console::
senf_console_add_node(DirectoryNode & node, std::string const & name, Variable & var, int,
......@@ -193,6 +195,8 @@ senf::console::senf_console_add_node(DirectoryNode & node, std::string const & n
return detail::VariableNodeCreator<Variable>::add(node, name, var.get());
}
#endif
///////////////////////////////cti.e///////////////////////////////////////
#undef prefix_
......
......@@ -42,6 +42,8 @@ namespace console {
class ScopedDirectoryBase;
template <class Variable> class VariableAttributor;
#ifndef DOXYGEN
template <class Variable>
VariableAttributor<Variable> senf_console_add_node(
DirectoryNode & node, std::string const & name, Variable & var, int,
......@@ -52,6 +54,8 @@ namespace console {
senf_console_add_node(DirectoryNode & node, std::string const & name,
boost::reference_wrapper<Variable> var, int);
#endif
/** \brief Variable command attributes (const)
\see VariableAttributor
......
......@@ -205,9 +205,15 @@
<!-- Reformat detailed member documentation -->
<xsl:template match="table[@class='memname'][contains(preceding::h1[1],' Class ')][contains(preceding::h1[1],' Reference')]">
<xsl:variable name="name"><xsl:value-of select="str:split(tr/td[@class='memname'],'::')[position()=last()]"/></xsl:variable>
<table class="memname">
<xsl:template match="table[@class='memname']">
<xsl:variable name="name1"><xsl:value-of select="str:split(tr/td[@class='memname'],'::')[position()=last()]"/></xsl:variable>
<xsl:variable name="name2"><xsl:value-of select="str:split(tr/td[@class='memname'],' ')[position()=last()]"/></xsl:variable>
<xsl:variable name="name"><xsl:value-of select="substring($name1,string-length($name1)-string-length($name2))"/></xsl:variable>
<xsl:element name="table">
<xsl:attribute name="class">
<xsl:text>memname</xsl:text>
<xsl:if test="contains(tr/td[@class='memname'],'#define')"><xsl:text> macro</xsl:text></xsl:if>
</xsl:attribute>
<tr>
<td class="memtype" colspan="5">
<xsl:for-each select="tr/td[@class='memname']/*|tr/td[@class='memname']/text()">
......@@ -254,9 +260,13 @@
</xsl:otherwise>
</xsl:choose>
<tr>
<td colspan="5" class="memattrs"><xsl:copy-of select="tr/td[@width='100%']/code"/></td>
<td colspan="5" class="memattrs"><xsl:copy-of select="tr/td[@width='100%']/*|tr/td[@width='100%']/text()"/></td>
</tr>
</table>
</xsl:element>
</xsl:template>
<!-- no idea, where these &nbsp;'s come frome ... -->
<xsl:template match="div[@class='memproto']/text()[.='&#160;&#x0a;']">
</xsl:template>
<!-- Add grouping to all-members page -->
......@@ -480,7 +490,7 @@
</xsl:template>
<!-- Add CSS class to the brief documentation paragraph of the member documentation -->
<xsl:template match="div[@class='memdoc']/p[1]">
<xsl:template match="div[@class='memdoc']/p[1][not(contains(.,'Definition at line'))]">
<xsl:call-template name="add-class">
<xsl:with-param name="class">memtitle</xsl:with-param>
</xsl:call-template>
......
......@@ -585,6 +585,16 @@ table.memname td.memattrs {
text-align: right;
}
table.memname.macro td.paramtype {
text-align: left;
color: #602020;
font-style: italic;
}
table.memname.macro td.memattrs {
display: none;
}
/*
* Local Variables:
* indent-tabs-mode: nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment