[mathic] 44/62: Expose topic from HelpAction to subclasses.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Wed Apr 1 11:36:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository mathic.

commit a311c408ab01b2545527f68436b5be227c88b733
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Thu Dec 13 18:05:16 2012 +0100

    Expose topic from HelpAction to subclasses.
---
 src/mathic/HelpAction.cpp | 5 ++++-
 src/mathic/HelpAction.h   | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/mathic/HelpAction.cpp b/src/mathic/HelpAction.cpp
index 32c7b9d..70e3bf1 100755
--- a/src/mathic/HelpAction.cpp
+++ b/src/mathic/HelpAction.cpp
@@ -29,7 +29,6 @@ namespace mathic {
     return "Return information about the command line interface.";
   }
 
-
   void HelpAction::directOptions(
     std::vector<std::string> tokens,
     CliParser& parser
@@ -110,4 +109,8 @@ namespace mathic {
   const char* HelpAction::staticName() {
     return "help";
   }
+
+  const std::string& HelpAction::topic() const {
+    return _topic;
+  }
 }
diff --git a/src/mathic/HelpAction.h b/src/mathic/HelpAction.h
index e724afd..499b46e 100755
--- a/src/mathic/HelpAction.h
+++ b/src/mathic/HelpAction.h
@@ -23,6 +23,9 @@ namespace mathic {
 
     static const char* staticName();
 
+  protected:
+    const std::string& topic() const;
+
   private:
     void displayActionHelp(Action& action);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathic.git



More information about the debian-science-commits mailing list