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 84 void log_trailer(void);
85 85 void log_parameters(void);
86 86 std::string print(const GChatter& chatter = NORMAL) const;
  87 + const GApplicationPars& pars(void) const;
87 88  
88 89 // Public members
89 90 GLog log; //!< Application logger
... ... @@ -209,4 +210,17 @@ const std::string&amp; GApplication::log_filename(void) const
209 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 226 #endif /* GAPPLICATION_HPP */
... ...
pyext/GApplication.i
... ... @@ -70,6 +70,7 @@ public:
70 70 void log_header(void);
71 71 void log_trailer(void);
72 72 void log_parameters(void);
  73 + const GApplicationPars& pars(void) const;
73 74  
74 75 // Public members
75 76 GLog log; //!< Application logger
... ...