From 0e56fe29a9afeee00e02e722496678df89d37d50 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 17 Nov 2009 13:59:39 +0200 Subject: Complete the implementation of the option documentation Add the man page generator. Port CLI usage, HTML documentation and the man page to the auto-generated version. Update examples and documentation. --- cli/html.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/html.cxx') diff --git a/cli/html.cxx b/cli/html.cxx index b147703..be675c7 100644 --- a/cli/html.cxx +++ b/cli/html.cxx @@ -162,6 +162,17 @@ namespace virtual void traverse (type& c) { + string const& n (options.class_ ()); + + if (!n.empty ()) + { + string fqn (fq_name (c, false)); + fqn = string (fqn, 2, fqn.size () - 2); // Get rid of leading ::. + + if (n != fqn) + return; + } + os << "
" << endl; names (c, names_option_); @@ -170,6 +181,7 @@ namespace } private: + bool generated_; option option_; traversal::names names_option_; }; -- cgit v1.1