Commit 234371a52d3ac19a25dcf4f3cac7b51e8c5bb672

Authored by mimayer
1 parent 8ede43dc

added method to retrieve GApplicationPars -object from GApplication

include/GApplication.hpp
@@ -84,6 +84,7 @@ public: @@ -84,6 +84,7 @@ public:
84 void log_trailer(void); 84 void log_trailer(void);
85 void log_parameters(void); 85 void log_parameters(void);
86 std::string print(const GChatter& chatter = NORMAL) const; 86 std::string print(const GChatter& chatter = NORMAL) const;
  87 + const GApplicationPars& pars(void) const;
87 88
88 // Public members 89 // Public members
89 GLog log; //!< Application logger 90 GLog log; //!< Application logger
@@ -209,4 +210,17 @@ const std::string&amp; GApplication::log_filename(void) const @@ -209,4 +210,17 @@ const std::string&amp; GApplication::log_filename(void) const
209 return (m_logfile); 210 return (m_logfile);
210 } 211 }
211 212
  213 +
  214 +/***********************************************************************//**
  215 + * @brief Returns application parameters
  216 + *
  217 + * @return Application parameters.
  218 + ***************************************************************************/
  219 +inline
  220 +const GApplicationPars& GApplication::pars(void) const
  221 +{
  222 + // Return
  223 + return (m_pars);
  224 +}
  225 +
212 #endif /* GAPPLICATION_HPP */ 226 #endif /* GAPPLICATION_HPP */
pyext/GApplication.i
@@ -70,6 +70,7 @@ public: @@ -70,6 +70,7 @@ public:
70 void log_header(void); 70 void log_header(void);
71 void log_trailer(void); 71 void log_trailer(void);
72 void log_parameters(void); 72 void log_parameters(void);
  73 + const GApplicationPars& pars(void) const;
73 74
74 // Public members 75 // Public members
75 GLog log; //!< Application logger 76 GLog log; //!< Application logger