From 3feaf15f639d1c0628caa53c19b0d02f60ac1e16 Mon Sep 17 00:00:00 2001
From: wolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Thu, 7 Jul 2005 20:27:22 +0000
Subject: [PATCH] Add a way to figure out whether a parameter is documented.

git-svn-id: https://svn.dealii.org/trunk@11104 0785d39b-7218-0410-832d-ea1e28bc413d
---
 deal.II/base/include/base/parameter_handler.h |  6 ++++++
 deal.II/base/source/parameter_handler.cc      | 13 +++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/deal.II/base/include/base/parameter_handler.h b/deal.II/base/include/base/parameter_handler.h
index 0e7325ef2c..c97c055d87 100644
--- a/deal.II/base/include/base/parameter_handler.h
+++ b/deal.II/base/include/base/parameter_handler.h
@@ -1532,6 +1532,12 @@ class ParameterHandler
             std::string            value;
             std::string            documentation;
             Patterns::PatternBase *pattern;
+
+                                             /**
+                                              * Return whether this entry has
+                                              * some form of documentation.
+                                              */
+            bool has_documentation () const;
         };
         
                                          /**
diff --git a/deal.II/base/source/parameter_handler.cc b/deal.II/base/source/parameter_handler.cc
index 30d2a6657f..8c5cdae149 100644
--- a/deal.II/base/source/parameter_handler.cc
+++ b/deal.II/base/source/parameter_handler.cc
@@ -1002,6 +1002,7 @@ ParameterHandler::print_parameters_section (std::ostream      &out,
        ptrss != pd->subsections.end(); ++ptrss)
     if (ptrss->second->accumulated_no_of_entries() != 0)
       {
+                                         // first print the subsection header
         switch (style) 
           {
             case Text:
@@ -1019,6 +1020,9 @@ ParameterHandler::print_parameters_section (std::ostream      &out,
             default:
                   Assert (false, ExcNotImplemented());
           };
+
+                                         // then the contents of the
+                                         // subsection
         enter_subsection (ptrss->first);
         print_parameters_section (out, style, indent_level+1);
         leave_subsection ();
@@ -1375,6 +1379,15 @@ ParameterHandler::Section::memory_consumption () const
 
 
 
+bool
+ParameterHandler::Section::EntryContent::
+has_documentation () const
+{
+  return documentation != "";
+}
+
+
+
 MultipleParameterLoop::UserClass::~UserClass ()
 {}
 
-- 
2.39.5