Add function to say whether or not a module exists in application class

This commit is contained in:
Lanny91 committed 2017-02-01 16:36:08 +00:00
1 parent d35d87d2c2
commit 522f6bf91a
2 files changed
+6

No files matched your search

+5
View File
@@ -91,6 +91,11 @@ const Application::GlobalPar & Application::getPar(void)
return par_;
}
bool Application::hasModule(const std::string name)
{
return env().hasModule(name);
}
// execute /////////////////////////////////////////////////////////////////////
void Application::run(void)
{
+1
View File
@@ -86,6 +86,7 @@ public:
void createModule(const std::string name);
template <typename M>
void createModule(const std::string name, const typename M::Par &par);
bool hasModule(const std::string name);
// execute
void run(void);
// XML parameter file I/O