mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-10 19:36:56 +01:00
Add function to say whether or not a module exists in application class
This commit is contained in:
@ -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