Commit 234371a52d3ac19a25dcf4f3cac7b51e8c5bb672
1 parent
8ede43dc
added method to retrieve GApplicationPars -object from GApplication
Showing
2 changed files
with
15 additions
and
0 deletions
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& 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 */ | ... | ... |