mirror of
https://github.com/paboyle/Grid.git
synced 2026-09-30 21:18:05 +01:00
Add function to say whether or not a module exists in application class
This commit is contained in:
1 parent
d35d87d2c2
commit
522f6bf91a
2 files changed
+6
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user