Permalink
Browse files

Add accessor to Application's full command path.

  • Loading branch information...
1 parent 5c6cb79 commit 6083c9353a7411d276707f80c3dfe0f230ccc247 @pprindeville committed Dec 31, 2012
Showing with 9 additions and 0 deletions.
  1. +3 −0 Util/include/Poco/Util/Application.h
  2. +6 −0 Util/src/Application.cpp
@@ -251,6 +251,9 @@ class Util_API Application: public Subsystem
std::string commandName() const;
/// Returns the command name used to invoke the application.
+ std::string commandPath() const;
+ /// Returns the command path used to invoke the application.
+
LayeredConfiguration& config() const;
/// Returns the application's configuration.
@@ -303,6 +303,12 @@ std::string Application::commandName() const
}
+std::string Application::commandPath() const
+{
+ return _pConfig->getString("application.path");
+}
+
+
void Application::stopOptionsProcessing()
{
_stopOptionsProcessing = true;

0 comments on commit 6083c93

Please sign in to comment.